Add 'meta' scope to objreg.
This commit is contained in:
parent
78949a8c1b
commit
1e7861660e
@ -93,6 +93,8 @@ def _get_registry(scope):
|
||||
if widget is None:
|
||||
raise RegistryUnavailableError(scope)
|
||||
return widget.registry
|
||||
elif scope == 'meta':
|
||||
return meta_registry
|
||||
else:
|
||||
raise ValueError("Invalid scope '{}'!".format(scope))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user