equal
deleted
inserted
replaced
29 |
29 |
30 def score_entity(self, entity): |
30 def score_entity(self, entity): |
31 # if user has no update right but it can modify some relation, |
31 # if user has no update right but it can modify some relation, |
32 # display action anyway |
32 # display action anyway |
33 form = entity._cw.vreg['forms'].select('edition', entity._cw, |
33 form = entity._cw.vreg['forms'].select('edition', entity._cw, |
34 entity=entity) |
34 entity=entity) |
35 for dummy in form.editable_relations(): |
35 for dummy in form.editable_relations(): |
36 return 1 |
36 return 1 |
37 try: |
37 try: |
38 editableattrs = form.editable_attributes(strict=True) |
38 editableattrs = form.editable_attributes(strict=True) |
39 except TypeError: |
39 except TypeError: |