[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/ Fixed the evolver and added note about the new database generation

Dmitry Vasiliev dima at hlabs.spb.ru
Fri Nov 4 07:17:04 EST 2005


Log message for revision 39886:
  Fixed the evolver and added note about the new database generation
  

Changed:
  U   Zope3/trunk/src/zope/app/authentication/principalfolder.py
  U   Zope3/trunk/src/zope/app/zopeappgenerations/evolve2.py

-=-
Modified: Zope3/trunk/src/zope/app/authentication/principalfolder.py
===================================================================
--- Zope3/trunk/src/zope/app/authentication/principalfolder.py	2005-11-04 11:48:50 UTC (rev 39885)
+++ Zope3/trunk/src/zope/app/authentication/principalfolder.py	2005-11-04 12:17:03 UTC (rev 39886)
@@ -110,8 +110,13 @@
 
     interface.implements(IInternalPrincipal, IInternalPrincipalContained)
 
-    _passwordManagerName = "Plain Text"
+    # If you're searching for self._passwordManagerName, or self._password
+    # probably you just need to evolve the database to new generation
+    # at /++etc++process/@@generations.html
 
+    # NOTE: All changes needs to be synchronized with the evolver at
+    # zope.app.zopeappgenerations.evolve2
+
     def __init__(self, login, password, title, description=u'',
             passwordManagerName="Plain Text"):
         self._login = login

Modified: Zope3/trunk/src/zope/app/zopeappgenerations/evolve2.py
===================================================================
--- Zope3/trunk/src/zope/app/zopeappgenerations/evolve2.py	2005-11-04 11:48:50 UTC (rev 39885)
+++ Zope3/trunk/src/zope/app/zopeappgenerations/evolve2.py	2005-11-04 12:17:03 UTC (rev 39886)
@@ -36,8 +36,8 @@
     for site in findObjectsProviding(root, ISite):
         sm = site.getSiteManager()
         for principal in findObjectsProviding(sm, IInternalPrincipal):
-            if not hasattr(principal, "passwordManagerName"):
-                principal.passwordManagerName = "Plain Text"
+            if not hasattr(principal, "_passwordManagerName"):
+                principal._passwordManagerName = "Plain Text"
             if not hasattr(principal, "_password"):
                 principal._password = principal.__dict__["password"]
                 del principal.__dict__["password"]



More information about the Zope3-Checkins mailing list