Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
0fd2ed99
Commit
0fd2ed99
authored
Aug 04, 2012
by
Rocky Duan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client side function for user operations
parent
69e28e39
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
lms/lib/comment_client.py
+9
-0
No files found.
lms/lib/comment_client.py
View file @
0fd2ed99
...
...
@@ -29,6 +29,12 @@ def search_threads(course_id, recursive=False, query_params={}, *args, **kwargs)
attributes
,
*
args
,
**
kwargs
)
return
response
.
get
(
'collection'
,
[]),
response
.
get
(
'page'
,
1
),
response
.
get
(
'num_pages'
,
1
)
def
create_user
(
attributes
,
*
args
,
**
kwargs
):
return
_perform_request
(
'post'
,
_url_for_users
(),
attributes
,
*
args
,
**
kwargs
)
def
update_user
(
user_id
,
attributes
,
*
args
,
**
kwargs
):
return
_perform_request
(
'put'
,
_url_for_user
(
user_id
),
attributes
,
*
args
,
**
kwargs
)
def
get_threads_tags
(
*
args
,
**
kwargs
):
return
_perform_request
(
'get'
,
_url_for_threads_tags
(),
{},
*
args
,
**
kwargs
)
...
...
@@ -158,3 +164,6 @@ def _url_for_threads_tags():
def
_url_for_threads_tags_autocomplete
():
return
"{prefix}/threads/tags/autocomplete"
.
format
(
prefix
=
PREFIX
)
def
_url_for_users
():
return
"{prefix}/users"
.
format
(
prefix
=
PREFIX
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment