Package pulp :: Package server :: Package api :: Module user :: Class UserApi
[hide private]
[frames] | no frames]

Class UserApi

source code

  object --+    
           |    
base.BaseApi --+
               |
              UserApi

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_getcollection(self) source code
 
_ensure_default_admin(self) source code
 
create(self, login, password=None, name=None, id=None)
Create a new User object and return it
source code
 
users(self, spec=None, fields=None)
List all users.
source code
 
user(self, login, fields=None)
Return a single User object
source code
 
clean(self)
Delete all the Users in the database except the default admin user.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

    Inherited from base.BaseApi
 
_indexes(self) source code
 
_unique_indexes(self) source code
 
delete(self, **kwargs)
Delete a single stored Object
source code
 
insert(self, object, check_keys=False)
Insert the object document to the database
source code
 
update(self, object)
Write the object document to the database
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_getcollection(self)

source code 
Overrides: base.BaseApi._getcollection

create(self, login, password=None, name=None, id=None)

source code 

Create a new User object and return it

Decorators:
  • @audit(params= ['login'])

clean(self)

source code 

Delete all the Users in the database except the default admin user. default user can not be deleted

Decorators:
  • @audit()
Overrides: base.BaseApi.clean