fix access to container: use getContainer instead of create
This commit is contained in:
parent
f4248dcb73
commit
6738203219
1 changed files with 2 additions and 1 deletions
|
|
@ -148,7 +148,8 @@ def records(context, name, factory, storage=None):
|
|||
if name in (opts.scopes.storage.records or []):
|
||||
if storage is None:
|
||||
storage = getStorage(context)
|
||||
return storage.create(factory)
|
||||
#return storage.create(factory)
|
||||
return storage.getContainer(factory.itemFactory)
|
||||
return root.getRecordManager()[name]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue