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, )
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, )
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]