[Checkins] SVN: zc.selenium/branches/wosc-zope2/src/zc/selenium/dbs.py loosen DemoStorage requirement for Zope2
Wolfgang Schnerring
wosc at wosc.de
Wed Feb 25 05:28:21 EST 2009
Log message for revision 97245:
loosen DemoStorage requirement for Zope2
Changed:
U zc.selenium/branches/wosc-zope2/src/zc/selenium/dbs.py
-=-
Modified: zc.selenium/branches/wosc-zope2/src/zc/selenium/dbs.py
===================================================================
--- zc.selenium/branches/wosc-zope2/src/zc/selenium/dbs.py 2009-02-25 10:09:22 UTC (rev 97244)
+++ zc.selenium/branches/wosc-zope2/src/zc/selenium/dbs.py 2009-02-25 10:28:21 UTC (rev 97245)
@@ -49,6 +49,15 @@
db = property(get_db, set_db)
def is_demo_db(self):
+ try:
+ import Zope2
+ # Zope2 stores authentication infos inside the ZODB,
+ # so insisting on a DemoStorage is a bit beside the point.
+ # XXX this is a security risk
+ return True
+ except ImportError:
+ pass
+
for db in self.db.databases.values():
if not self.is_demo_storage(db._storage):
return False
More information about the Checkins
mailing list