Ejemplo n.º 1
0
 def properties(self):
     props = ProtectedProperties(self, DEFAULT_NODE_PROPERTY_PERMISSIONS)
     props.in_navtree = True
     props.action_edit = True
     props.action_delete = True
     props.action_up = True
     return props
Ejemplo n.º 2
0
 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