appobject.py
branchstable
changeset 5093 8d073d2e089d
parent 5018 2f2d9bc6dca4
child 5147 70181998897f
--- a/appobject.py	Wed Mar 31 09:45:14 2010 +0200
+++ b/appobject.py	Wed Mar 31 09:55:19 2010 +0200
@@ -14,6 +14,7 @@
 from warnings import warn
 
 from logilab.common.deprecation import deprecated
+from logilab.common.decorators import classproperty
 from logilab.common.logging_ext import set_log_methods
 
 
@@ -245,6 +246,12 @@
     __regid__ = None
     __select__ = yes()
 
+    @classproperty
+    def __registries__(cls):
+        if cls.__registry__ is None:
+            return ()
+        return (cls.__registry__,)
+
     @classmethod
     def __registered__(cls, registry):
         """called by the registry when the appobject has been registered.