I am using the standalone zodbbrowser 0.11.1 with a ZODB3 database. I can access the database fine but when I insert objects of unknown type into the ZODB the browser only displays:
I'd like to see a formatted printout from repr (or str) instead. The short user guide on pypi at Help! Broken objects everywhere recommends to make sure your application objects are importable from the Python path. But I don't know how.
How do I make the Account class (from the tutorial):
class Account(Persistent):
def __str__(self):
...
known to zodbbrowser in standalone mode so that the persistent broken type are replaced with a str representation of the object instance?
I am using the standalone zodbbrowser 0.11.1 with a ZODB3 database. I can access the database fine but when I insert objects of unknown type into the ZODB the browser only displays:
I'd like to see a formatted printout from repr (or str) instead. The short user guide on pypi at Help! Broken objects everywhere recommends to make sure your application objects are importable from the Python path. But I don't know how.
How do I make the Account class (from the tutorial):
known to zodbbrowser in standalone mode so that the persistent broken type are replaced with a str representation of the object instance?
NB: cross posted http://stackoverflow.com/questions/27573993/how-to-inject-types-for-standalone-zodbbrowser