Пример #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
Пример #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
Пример #3
0
 def properties(self):
     props = ProtectedProperties(self, DEFAULT_NODE_PROPERTY_PERMISSIONS)
     props.in_navtree = True
     props.editable = False
     props.icon = 's3-static/images/s3_16_16.png'
     return props
Пример #4
0
 def properties(self):
     props = ProtectedProperties(self, DEFAULT_NODE_PROPERTY_PERMISSIONS)
     props.in_navtree = True
     props.editable = False
     return props