web/views/actions.py
branchstable
changeset 9198 c32a21bf88bb
parent 8666 1dd655788ece
child 9291 4894bb92558a
equal deleted inserted replaced
9197:9905d9efa4a3 9198:c32a21bf88bb
    48         # display action anyway
    48         # display action anyway
    49         form = entity._cw.vreg['forms'].select('edition', entity._cw,
    49         form = entity._cw.vreg['forms'].select('edition', entity._cw,
    50                                                entity=entity, mainform=False)
    50                                                entity=entity, mainform=False)
    51         for dummy in form.editable_relations():
    51         for dummy in form.editable_relations():
    52             return 1
    52             return 1
    53         editableattrs = form.editable_attributes(strict=True)
    53         for dummy in form.inlined_relations():
    54         for rschema, role in editableattrs:
    54             return 1
       
    55         for dummy in form.editable_attributes(strict=True):
    55             return 1
    56             return 1
    56         return 0
    57         return 0
    57 
    58 
    58 @objectify_predicate
    59 @objectify_predicate
    59 def match_searched_etype(cls, req, rset=None, **kwargs):
    60 def match_searched_etype(cls, req, rset=None, **kwargs):