Ejemplo n.º 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,
         )
Ejemplo n.º 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,
     )
Ejemplo n.º 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]
Ejemplo n.º 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]