changeset 1909:f2bd5b0c1094 beta

create user api_doc update
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 17 Jan 2012 20:51:42 +0200
parents b3a3890b7160
children 0bd97250cd36
files docs/api/api.rst rhodecode/controllers/api/api.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/docs/api/api.rst	Tue Jan 17 20:41:30 2012 +0200
+++ b/docs/api/api.rst	Tue Jan 17 20:51:42 2012 +0200
@@ -147,8 +147,8 @@
 create_user
 -----------
 
-Creates new user in RhodeCode. This command can be executed only using api_key
-belonging to user with admin rights.
+Creates new user or updates current one if such user exists. This command can 
+be executed only using api_key belonging to user with admin rights.
 
 INPUT::
 
--- a/rhodecode/controllers/api/api.py	Tue Jan 17 20:41:30 2012 +0200
+++ b/rhodecode/controllers/api/api.py	Tue Jan 17 20:51:42 2012 +0200
@@ -134,7 +134,7 @@
     def create_user(self, apiuser, username, password, firstname,
                     lastname, email, active=True, admin=False, ldap_dn=None):
         """
-        Create new user
+        Create new user or updates current one
 
         :param apiuser:
         :param username: