cwvreg.py
changeset 213 6842c3dee34b
parent 169 0e031b66cb0b
child 354 2dd04e5bd38a
equal deleted inserted replaced
212:21aecf9239c9 213:6842c3dee34b
   173         supposing they support the 'visible' and 'order' properties (as most
   173         supposing they support the 'visible' and 'order' properties (as most
   174         visualizable objects)
   174         visualizable objects)
   175         """
   175         """
   176         return [x for x in sorted(self.possible_objects(registry, *args, **kwargs),
   176         return [x for x in sorted(self.possible_objects(registry, *args, **kwargs),
   177                                   key=lambda x: x.propval('order'))
   177                                   key=lambda x: x.propval('order'))
   178                 if x.propval('visible')]    
   178                 if x.propval('visible')]
   179         
   179         
   180     def possible_actions(self, req, rset, **kwargs):
   180     def possible_actions(self, req, rset, **kwargs):
   181         if rset is None:
   181         if rset is None:
   182             actions = self.possible_vobjects('actions', req, rset)
   182             actions = self.possible_vobjects('actions', req, rset)
   183         else:
   183         else: