web/views/actions.py
branchstable
changeset 4583 356f08325072
parent 4490 d45cde54d464
child 4932 dce5ebe5d598
equal deleted inserted replaced
4582:d12b81facd1d 4583:356f08325072
    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: