Cheshire3 Object Model - User


class cheshire3.baseObjects.User(session, config, parent=None)[source]

A User represents a user of the system.

An object representing a user of the system to allow for convenient access to properties such as username, password, rights and permissions metadata.

Users may be stores and retrieved from an ObjectStore like any other configured or created C3Object.

has_flag(session, flag, object=None)[source]

Does the User have the specified flag?

Check whether or not the User has the specified flag. This flag may be set regarding a particular object, for example write access to a particular ObjectStore.


The following implementations are included in the distribution by default:

class cheshire3.user.SimpleUser(session, config, parent)[source]
check_password(session, password)[source]

Check the supplied en-clair password.

Check the supplied en-clair password by obfuscating it using the same algorithm and comparing it with the stored version. Return True/False.