src/pyams_utils/registry.py
changeset 30 80ae7e361ee3
parent 20 4bbf6181e1cf
child 69 0b859bda300e
equal deleted inserted replaced
29:4bbddbc10590 30:80ae7e361ee3
    65     """Define local registry when an object implementing ISite is traversed"""
    65     """Define local registry when an object implementing ISite is traversed"""
    66     set_local_registry(event.object.getSiteManager())
    66     set_local_registry(event.object.getSiteManager())
    67 
    67 
    68 
    68 
    69 def get_registries():
    69 def get_registries():
    70     """Get iterator on components registries"""
    70     """Get iterator of components registries"""
    71     registry = local_registry.get_registry()
    71     registry = local_registry.get_registry()
    72     if registry is not None:
    72     if registry is not None:
    73         yield registry
    73         yield registry
    74     for entry in reversed(manager.stack):
    74     for entry in reversed(manager.stack):
    75         registry = entry.get('registry')
    75         registry = entry.get('registry')
    76         if entry is not None:
    76         if registry is not None:
    77             yield registry
    77             yield registry
    78 
    78 
    79 
    79 
    80 def registered_utilities():
    80 def registered_utilities():
    81     """Get utilities registrations as generator"""
    81     """Get utilities registrations as generator"""