How to inject types for standalone zodbbrowser?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ZODB Browser |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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:
Attributes
data: {u'account-1': <persistent broken __main__.Account instance '\x00\x00\
}
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(
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?
NB: cross posted http://
Changed in zodbbrowser: | |
status: | New → Invalid |
I'veput this to github. Don't know how to delete the bug here...