Index: waeup/branches/ulif-rewrite/src/waeup/authentication.py
===================================================================
--- waeup/branches/ulif-rewrite/src/waeup/authentication.py	(revision 4086)
+++ waeup/branches/ulif-rewrite/src/waeup/authentication.py	(revision 4087)
@@ -77,6 +77,12 @@
 
 class Account(grok.Model):
-    def __init__(self, name, password):
+    def __init__(self, name, password, title=None, description=None):
         self.name = name
+        if title is None:
+            title = name
+        if description is None:
+            description = title
+        self.title = title
+        self.description = description
         self.setPassword(password)
 
@@ -121,4 +127,19 @@
         if login == 'grok':
             return Account('grok', 'grok')
-        return
-        #... look up the account object and return it ...
+
+        # ... look up the account object and return it ...
+        usercontainer = self.getUserContainer()
+        if usercontainer is None:
+            return
+        return usercontainer.get(login, None)
+
+    def addAccount(self, account):
+        usercontainer = self.getUserContainer()
+        if usercontainer is None:
+            return
+        # XXX: complain if name already exists...
+        usercontainer.addAccount(account)
+
+    def getUserContainer(self):
+        site = grok.getSite()
+        return getAttribute(site, 'users', None)
