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'] |