Example #1
0
 def get(self, id):
     if not id:
         id = 1
     section = Section.get(id)
     params = dict ((p.key, p.value) for p in SectionParam.getSection(id))
     widgets = Widget.getSection(section_id=id)
     packs = Widget.getSectionPacks(section_id=id)
     self.render('base.html',
         section = section,
         params = params,
         widgets = widgets,
         packs = packs,
         )
Example #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,
         )
Example #3
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,
     )
Example #4
0
 def get(self, id):
     if not id:
         id = 1
     section = Section.get(id)
     widgets = Widget.getSection(section_id=id)
     packs = Widget.getSectionPacks(section_id=id)
     instances = WidgetInstance.getSection(section_id=id)
     for j, i in enumerate(instances):
         i.optionsdict = WidgetInstance.getOptionsDict(id=i.id)
     params = Section.getParamsDict(id)
     self.render('base.html',
         section = section,
         params = params,
         widgets = widgets,
         packs = packs,
         instances = instances,
         )