Loading ccserver/handlers.py +13 −0 Original line number Diff line number Diff line Loading @@ -221,6 +221,19 @@ class CliHandler(OnlineCCHandler): else: raise BadRoleError('%r is not a legal role.' % role) @listed def copyaccount(self, conn, copy_login, login, password=None): ''' Create a new account with specified login. :param copy_login: the login of the account to copy :param login: the login of the new account :param password: the password of the new account (default None) ''' self._check(conn, 'addaccount') self._server.conf.copy_account(copy_login, login, password) @listed def addtag(self, conn, query, tag_name, tag_value): ''' Loading Loading
ccserver/handlers.py +13 −0 Original line number Diff line number Diff line Loading @@ -221,6 +221,19 @@ class CliHandler(OnlineCCHandler): else: raise BadRoleError('%r is not a legal role.' % role) @listed def copyaccount(self, conn, copy_login, login, password=None): ''' Create a new account with specified login. :param copy_login: the login of the account to copy :param login: the login of the new account :param password: the password of the new account (default None) ''' self._check(conn, 'addaccount') self._server.conf.copy_account(copy_login, login, password) @listed def addtag(self, conn, query, tag_name, tag_value): ''' Loading