I am pretty sure this should say "isinstance(connection, basestring)",
not "type".
def __call__(self, connection=None):
db, aname, version_support = self._stuff
if connection is None:
connection=db.open()
elif isinstance(type, basestring):
connection=db.open(connection)
return connection.root()[aname]
--
Software Engineering is Programming when you can't. --E. W. Dijkstra
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/
ZODB-Dev mailing list - ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev