Wiking branch, master, updated. 6a0f73e06fb0bcb46a66d49f36c5b52865f16b73

Milan Zamazal pdm at devel.brailcom.org
Sat Oct 16 11:41:52 CEST 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Wiking".

The branch, master has been updated
       via  6a0f73e06fb0bcb46a66d49f36c5b52865f16b73 (commit)
      from  d39b42538a178812de6386b25fb8e83d705f723c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6a0f73e06fb0bcb46a66d49f36c5b52865f16b73
Author: Milan Zamazal <pdm at brailcom.org>
Date:   Sat Oct 16 11:41:31 2010 +0200

    Confirm flag information in User class

-----------------------------------------------------------------------

Summary of changes:
 lib/wiking/cms/users.py |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/lib/wiking/cms/users.py b/lib/wiking/cms/users.py
index 5a7f181..28f3d04 100644
--- a/lib/wiking/cms/users.py
+++ b/lib/wiking/cms/users.py
@@ -613,13 +613,16 @@ class Users(UserManagementModule):
     class User(wiking.User):
         """CMS specific User class."""
 
-        def __init__(self, login, state=None, **kwargs):
+        def __init__(self, login, state=None, confirm=None, **kwargs):
             """
             @type state: string
             @param state: User's account state.
+            @type confirm: boolean
+            @param confirm: Value of the user's 'confirm' flag.
             """
             wiking.User.__init__(self, login, **kwargs)
             self._state = state
+            self._confirm = confirm
         
         def state(self):
             """
@@ -628,6 +631,13 @@ class Users(UserManagementModule):
             """
             return self._state
 
+        def confirm(self):
+            """
+            @rtype: boolean or 'None'
+            @return: Value of the user's 'confirm' flag.
+            """
+            return self._confirm
+
     class Roles(Roles):
         """Definition of the 'Roles' class used by the application.
 
@@ -945,7 +955,8 @@ class Users(UserManagementModule):
                     roles.append(r)
         return dict(login=login, name=record['user'].value(), uid=uid,
                     uri=uri, email=record['email'].value(), data=record, roles=roles,
-                    state=record['state'].value(), lang=record['lang'].value())
+                    state=record['state'].value(), lang=record['lang'].value(),
+                    confirm=record['confirm'].value())
 
     def _make_user(self, kwargs):
         return self.User(**kwargs)


hooks/post-receive
-- 
Wiking



More information about the Wiking-cvs mailing list