selectors.py
branchtls-sprint
changeset 1178 8d9b705168d3
parent 1138 22f634977c95
child 1263 01152fffd593
--- a/selectors.py	Fri Mar 27 12:24:47 2009 +0100
+++ b/selectors.py	Fri Mar 27 12:25:24 2009 +0100
@@ -655,26 +655,6 @@
         self.target_etype = getattr(cls, 'etype', None)
 
 
-class has_editable_relation(EntitySelector):
-    """accept if some relations for an entity found in the result set is
-    editable by the logged user.
-
-    See `EntitySelector` documentation for behaviour when row is not specified.
-    """
-        
-    def score_entity(self, entity):
-        # if user has no update right but it can modify some relation,
-        # display action anyway
-        for dummy in entity.srelations_by_category(('generic', 'metadata'),
-                                                   'add'):
-            return 1
-        for rschema, targetschemas, role in entity.relations_by_category(
-            ('primary', 'secondary'), 'add'):
-            if not rschema.is_final():
-                return 1
-        return 0
-
-
 class may_add_relation(EntitySelector):
     """accept if the relation can be added to an entity found in the result set
     by the logged user.