zodb / relstorage

A backend for ZODB that stores pickles in a relational database.
Other
54 stars 46 forks source link

Error opening database from config file in 3.0a8 #334

Closed lungj closed 5 years ago

lungj commented 5 years ago

The example code (when populated with some values) fails with the exception module 'relstorage' has no attribute 'config':

conf = """
%%import relstorage
<zodb main>
  <relstorage>
   <mysql>
     db %s
     user %s
     passwd %s
   </mysql>
 </relstorage>
</zodb>
""" % (dbname, user, passwd)

db = ZODB.config.databaseFromString(conf)

This occurs in the 3.x code but not the 2.x code.

lungj commented 5 years ago

Fixed by https://github.com/zodb/relstorage/pull/335