Package CMFCore :: Package tests :: Package base :: Module security :: Class UserWithRoles
[show private | hide private]
[frames | no frames]

Type UserWithRoles

object --+        
         |        
      Base --+    
             |    
      Acquirer --+
                 |
                UserWithRoles


User with roles specified in constructor for unit testing purposes.
Method Summary
  __init__(self, *roles)
  allowed(self, object, object_roles)
  getId(self)
  getRoles(self)
  getUserName(self)
    Inherited from Acquirer
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __of__(context)
__of__(context) -- return the object in a context
    Inherited from Base
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __getnewargs__(...)
Get arguments to be passed to __new__
  __getstate__(...)
Get the object serialization state
  __reduce__(...)
Reduce an object to contituent parts for serialization
  __setstate__(...)
Set the object serialization state The state should be in one of 3 forms: - None Ignored - A dictionary In this case, the object's instance dictionary will be cleared and updated with the new state.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Generated by Epydoc 2.1 on Wed Nov 30 03:58:30 2005 http://epydoc.sf.net