R deprecate CWRegistry.possible_vobjects
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Thu, 13 Aug 2009 10:49:14 +0200
changeset 2805 c6d10de521bc
parent 2800 31c3a045e04d
child 2813 0cf6c8005bf6
R deprecate CWRegistry.possible_vobjects
cwvreg.py
--- a/cwvreg.py	Thu Aug 13 10:02:18 2009 +0200
+++ b/cwvreg.py	Thu Aug 13 10:49:14 2009 +0200
@@ -75,7 +75,7 @@
             return selected
         return None
 
-    def possible_vobjects(self, *args, **kwargs):
+    def poss_visible_objects(self, *args, **kwargs):
         """return an ordered list of possible app objects in a given registry,
         supposing they support the 'visible' and 'order' properties (as most
         visualizable objects)
@@ -83,6 +83,7 @@
         return sorted([x for x in self.possible_objects(*args, **kwargs)
                        if x.propval('visible')],
                       key=lambda x: x.propval('order'))
+    possible_vobjects = deprecated('[3.5] use poss_visible_objects()')(poss_visible_objects)
 
 
 VRegistry.REGISTRY_FACTORY[None] = CWRegistry