Changeset 4088 for waeup


Ignore:
Timestamp:
26 Apr 2009, 01:59:11 (16 years ago)
Author:
uli
Message:

Add an interface for user containers.

Location:
waeup/branches/ulif-rewrite/src/waeup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/app.py

    r4084 r4088  
    1010from waeup.viewlets import MainArea, LeftSidebar, Index, Manage, FormWrapMixin
    1111from waeup.authentication import setup_authentication
     12from waeup.users import UserContainer
    1213
    1314class University(grok.Application, grok.Container):
     
    3031        self.hostels = createObject(u'waeup.HostelContainer')
    3132        self.faculties = createObject(u'waeup.FacultyContainer')
     33        self.users = UserContainer()
    3234
    3335    def traverse(self, name):
  • waeup/branches/ulif-rewrite/src/waeup/interfaces.py

    r4049 r4088  
    103103        Returns a Python object.
    104104        """
     105
     106class IUserContainer(IWAeUPObject):
     107    """A container for users (principals).
     108
     109    These users are used for authentication purposes.
     110    """
     111
     112    def addUser(name, password, title=None, description=None):
     113        """Add a user.
     114        """
     115
     116    def delUser(name):
     117        """Delete a user if it exists.
     118        """
Note: See TracChangeset for help on using the changeset viewer.