Beispiel #1
0
 def get(self, id):
     if not id:
         id = 1
     section = Section.get(id)
     packs = Widget.getSectionPacks(section_id=id)
     params = Section.getParamsDict(id)
     sections = Section.getTree()
     self.render('base.html',
         section = section,
         params = params,
         packs = packs,
         sections = sections,
         )
Beispiel #2
0
 def get(self, id):
     if not id:
         id = 1
     section = Section.get(id)
     packs = Widget.getSectionPacks(section_id=id)
     params = Section.getParamsDict(id)
     sections = Section.getTree()
     self.render(
         'base.html',
         section=section,
         params=params,
         packs=packs,
         sections=sections,
     )
Beispiel #3
0
 def WSSectionGettree(self, data):
     root = Section.getTree()
     j = to_json(root)
     j["childs"] = self.json_childs(root, 1)
     j["level"] = 0
     return ['section-tree', j]
Beispiel #4
0
 def WSSectionGettree(self, data):
     root = Section.getTree()
     j = to_json(root)
     j["childs"] = self.json_childs(root, 1)
     j["level"] = 0
     return ['section-tree', j]