predicates.py
changeset 10903 da30851f9706
parent 10826 dff28956f37e
child 11081 70733b2dfd2a
equal deleted inserted replaced
10902:41bd01ebebb4 10903:da30851f9706
   832         self.target_etype = getattr(cls, 'target_etype', None)
   832         self.target_etype = getattr(cls, 'target_etype', None)
   833 
   833 
   834 
   834 
   835 class has_related_entities(EntityPredicate):
   835 class has_related_entities(EntityPredicate):
   836     """Return 1 if entity support the specified relation and has some linked
   836     """Return 1 if entity support the specified relation and has some linked
   837     entities by this relation , optionaly filtered according to the specified
   837     entities by this relation , optionally filtered according to the specified
   838     target type.
   838     target type.
   839 
   839 
   840     The relation is specified by the following initializer arguments:
   840     The relation is specified by the following initializer arguments:
   841 
   841 
   842     * `rtype`, the name of the relation
   842     * `rtype`, the name of the relation