entity.py
changeset 5870 d3ec7c4bb373
parent 5797 7183f32fad13
child 5980 6dc04e75c8e1
--- a/entity.py	Fri Jul 02 15:26:59 2010 +0200
+++ b/entity.py	Fri Jul 02 17:49:23 2010 +0200
@@ -1099,6 +1099,11 @@
     def clear_related_cache(self, rtype=None, role=None):
         self.cw_clear_relation_cache(rtype, role)
 
+    @deprecated('[3.9] use entity.cw_related_rql(rtype, [role, [targettypes]])')
+    def related_rql(self, rtype, role='subject', targettypes=None):
+        return self.cw_related_rql(rtype, role, targettypes)
+
+
 # attribute and relation descriptors ##########################################
 
 class Attribute(object):