コード例 #1
0
 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)}
コード例 #2
0
 def makePanel(self, pagelist):
     return tablesectwrapper.format(style='focusstyle', flipid='xfcs', fields=self.allfields(pagelist,allfielddefs), title='focus stepper controls')
コード例 #3
0
ファイル: piCamStreamWeb.py プロジェクト: pootle/piCameraWeb
 def makePanel(self, pagelist):
     return tablesectwrapper.format(style='camstreamstyle',
                                    flipid='xstrmset',
                                    fields=self.allfields(
                                        pagelist, allStreamDefs),
                                    title='Live streaming Settings')
コード例 #4
0
 def makePanel(self, pagelist):
     return tablesectwrapper.format(style='gpio_triggerstyle',
                                    flipid='xgptrig',
                                    fields=self.allfields(
                                        pagelist, allfielddefs),
                                    title='gpio trigging')
コード例 #5
0
ファイル: piCamMovecpuWeb.py プロジェクト: pootle/piCameraWeb
 def makePanel(self, pagelist):
     return tablesectwrapper.format(style='cpumovestyle',
                                    flipid='xcpum',
                                    fields=self.allfields(
                                        pagelist, allRecordDefs),
                                    title='cpu movement detection settings')
コード例 #6
0
 def makePanel(self, pagelist):
     return tablesectwrapper.format(style='trig_recordstyle',
                                    flipid='xtrvset',
                                    fields=self.allfields(
                                        pagelist, allfields),
                                    title='triggered recording Settings')