Steve Piercy
2017-07-27 c3ca82935c6ecfbd1464e8adbf36554dff1f3b3e
commit | author | age
88995e 1 from persistent.mapping import PersistentMapping
SP 2
3
4 class MyModel(PersistentMapping):
5     __parent__ = __name__ = None
6
7
8 def appmaker(zodb_root):
9     if 'app_root' not in zodb_root:
10         app_root = MyModel()
11         zodb_root['app_root'] = app_root
12     return zodb_root['app_root']