# HG changeset patch # User Nicolas Chauvat # Date 1250153354 -7200 # Node ID c6d10de521bc88afc32de742b1546bc0ddd5eb07 # Parent 31c3a045e04d1d0f1f7c6f6649e00002c600a7e1 R deprecate CWRegistry.possible_vobjects diff -r 31c3a045e04d -r c6d10de521bc 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