Commit 0ae0fa28 authored by Amos Latteier's avatar Amos Latteier

changed UserFolderAPI.py to UserFolder.py and fixed some formatting nits

parent 42c7a945
class UserFolderAPI: class UserFolder:
""" """
User Folder objects are containers for user objects. Programmers can User Folder objects are containers for user objects. Programmers can
work with collections of user objects using the API shared by User work with collections of user objects using the API shared by User
Folder implementations. Folder implementations.
""" """
def getUser(self, name): def getUser(name):
""" """
Returns the user object specified by name. If there is no Returns the user object specified by name. If there is no
user named 'name' in the user folder, return None. user named 'name' in the user folder, return None.
Permission -- Manage users Permission -- Manage users
""" """
def getUsers(self): def getUsers():
""" """
Returns a sequence of all user objects which reside in the user Returns a sequence of all user objects which reside in the user
folder. folder.
Permission -- Manage users Permission -- Manage users
""" """
def getUserNames(self): def getUserNames():
""" """
Returns a sequence of names of the users which reside in the user Returns a sequence of names of the users which reside in the user
folder. folder.
Permission -- Manage users Permission -- Manage users
""" """
def manage_addUser(self, name, password, roles, domains): def manage_addUser(name, password, roles, domains):
""" """
API method for creating a new user object. Note that not all API method for creating a new user object. Note that not all
user folder implementations support dynamic creation of user user folder implementations support dynamic creation of user
...@@ -40,11 +37,9 @@ class UserFolderAPI: ...@@ -40,11 +37,9 @@ class UserFolderAPI:
of user objects will raise an error for this method. of user objects will raise an error for this method.
Permission -- Manage users Permission -- Manage users
""" """
def manage_editUser(name, password, roles, domains):
def manage_editUser(self, name, password, roles, domains):
""" """
API method for changing user object attributes. Note that not API method for changing user object attributes. Note that not
all user folder implementations support changing of user object all user folder implementations support changing of user object
...@@ -52,11 +47,9 @@ class UserFolderAPI: ...@@ -52,11 +47,9 @@ class UserFolderAPI:
object attributes will raise an error for this method. object attributes will raise an error for this method.
Permission -- Manage users Permission -- Manage users
""" """
def manage_delUsers(names):
def manage_delUsers(self, names):
""" """
API method for deleting one or more user objects. Note that not API method for deleting one or more user objects. Note that not
all user folder implementations support deletion of user objects. all user folder implementations support deletion of user objects.
...@@ -64,5 +57,4 @@ class UserFolderAPI: ...@@ -64,5 +57,4 @@ class UserFolderAPI:
will raise an error for this method. will raise an error for this method.
Permission -- Manage users Permission -- Manage users
""" """
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment