コード例 #1
0
ファイル: ugm.py プロジェクト: bluedynamics/bda.bfg.ugm
 def properties(self):
     props = Properties()
     props.in_navtree = False
     props.editable = False
     props.mainmenu_empty_title = True
     props.default_child = 'users'
     return props
コード例 #2
0
ファイル: authoring.py プロジェクト: attilaolah/bda.bfg.app
 def items(self):
     ret = list()
     addables = self.model.nodeinfo.addables
     if not addables:
         return ret
     for addable in addables:
         info = getNodeInfo(addable)
         if not info:
             continue
         query = make_query(factory=addable)
         url = make_url(self.request, node=self.model,
                        resource='add', query=query)
         target = make_url(self.request, node=self.model, query=query)
         props = Properties()
         props.url = url
         props.target = target
         props.title = info.title
         props.icon = info.icon
         ret.append(props)
     return ret
コード例 #3
0
ファイル: user.py プロジェクト: bluedynamics/bda.bfg.ugm
 def properties(self):
     props = Properties()
     props.editable = True
     return props