def properties(self): props = ProtectedProperties(self, DEFAULT_NODE_PROPERTY_PERMISSIONS) props.in_navtree = True props.action_edit = True props.action_delete = True props.action_add_reference = True props.action_up = True props.action_view = True props.action_list = True return props
def properties(self): props = ProtectedProperties(self, DEFAULT_NODE_PROPERTY_PERMISSIONS) props.in_navtree = True props.action_edit = self.state == u'working_copy' props.action_delete = self.state == u'working_copy' props.action_up = True props.action_view = True props.wf_name = u'revision' props.leaf = True # XXX: check in repoze.workflow the intended way for naming # transitions props.wf_transition_names = transition_names return props