[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/authentication/session.py
Added BBB to SessionCredentials to support loading of
persisted objects prior to the new-style class change. This
can be removed for the second beta of 3.1.
Garrett Smith
garrett at mojave-corp.com
Wed Jun 22 18:14:18 EDT 2005
Log message for revision 30896:
Added BBB to SessionCredentials to support loading of persisted objects prior to the new-style class change. This can be removed for the second beta of 3.1.
Changed:
U Zope3/trunk/src/zope/app/authentication/session.py
-=-
Modified: Zope3/trunk/src/zope/app/authentication/session.py
===================================================================
--- Zope3/trunk/src/zope/app/authentication/session.py 2005-06-22 22:11:24 UTC (rev 30895)
+++ Zope3/trunk/src/zope/app/authentication/session.py 2005-06-22 22:14:17 UTC (rev 30896)
@@ -68,7 +68,11 @@
"""
implements(ISessionCredentials)
- def __init__(self, login, password):
+ # BBB the __init__ signature below that makes login and password optional
+ # is to allow old-style class SessionCredentials that are already persisted
+ # to load. Remove the default args for login and password for the second
+ # beta of 3.1.
+ def __init__(self, login=None, password=None):
self.login = login
self.password = password
More information about the Zope3-Checkins
mailing list