[Zodb-checkins] CVS: ZODB3/ZEO/auth - base.py:1.6

Christian Reis kiko at async.com.br
Thu Dec 18 21:04:16 EST 2003


Update of /cvs-repository/ZODB3/ZEO/auth
In directory cvs.zope.org:/tmp/cvs-serv16943/auth

Modified Files:
	base.py 
Log Message:
Reapply fixes to zeopasswd.py that allow a user to specify the
authentication database details via commandline parameters (in lieu of
the default ZConfig). Also fixed some minor bugs -- missing import,
missing realm, etc.

For no extra charge did some usage cleanups and added a check to
Database to make sure the realm is consistent.


=== ZODB3/ZEO/auth/base.py 1.5 => 1.6 ===
--- ZODB3/ZEO/auth/base.py:1.5	Thu Oct  2 14:17:21 2003
+++ ZODB3/ZEO/auth/base.py	Thu Dec 18 21:04:15 2003
@@ -59,8 +59,12 @@
         """
         self._users = {}
         self.filename = filename
-        self.realm = realm
         self.load()
+        if self.realm and self.realm != realm:
+            raise ValueError, ("Specified realm %r differs from "
+                               "database realm %r" % (realm or '', self.realm))
+        else:
+            self.realm = realm
 
     def save(self, fd=None):
         filename = self.filename




More information about the Zodb-checkins mailing list