def makeMainPage(self, pagelist, qp, pp, page, parts): panels=[self.activities[p].makePanel(pagelist) for p in parts] fvars={ 'pageid' : pagelist.pageid, 'camstat' : pagelink.wwlink(wable=self.cam_summary, pagelist=pagelist, updators=myagents.app, label = 'camera state', shelp='shows if camera is active').webitem(fformat=spanfieldinputhtml), 'prevbut' : pagelink.wwenumbtn(wable=self.live_view, pagelist=pagelist, updators=myagents.user).webitem( fformat={'all': '{wfield}', 'fieldu': '<div class="btnlike" style="border-left:15px; width: 135px;" {tattrs}>{wl.webvalue}</div>'}), 'camsettings' : tablesectwrapper.format(style='camsetstyle', flipid='xcamset', fields=self.allfields(pagelist=pagelist, fielddefs=allfielddefs), title='Camera Settings'), 'actparts' : ''.join(panels), } with open(page,'r') as pf: templ=pf.read() return {'resp':200, 'headers': (('Content-Type', 'text/html; charset=utf-8'),), 'data':templ.format(**fvars)}
def makePanel(self, pagelist): return tablesectwrapper.format(style='focusstyle', flipid='xfcs', fields=self.allfields(pagelist,allfielddefs), title='focus stepper controls')
def makePanel(self, pagelist): return tablesectwrapper.format(style='camstreamstyle', flipid='xstrmset', fields=self.allfields( pagelist, allStreamDefs), title='Live streaming Settings')
def makePanel(self, pagelist): return tablesectwrapper.format(style='gpio_triggerstyle', flipid='xgptrig', fields=self.allfields( pagelist, allfielddefs), title='gpio trigging')
def makePanel(self, pagelist): return tablesectwrapper.format(style='cpumovestyle', flipid='xcpum', fields=self.allfields( pagelist, allRecordDefs), title='cpu movement detection settings')
def makePanel(self, pagelist): return tablesectwrapper.format(style='trig_recordstyle', flipid='xtrvset', fields=self.allfields( pagelist, allfields), title='triggered recording Settings')