예제 #1
0
    def case_sensitive_checked(self, **KWS):

        ## CHEETAH: generated from #def $case_sensitive_checked at line 8, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        if VFFSL(SL, "getVar", False)('case_sensitive',
                                      None):  # generated from line 9, col 1
            write(u'''checked''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #2
0
    def body(self, **KWS):



        ## CHEETAH: generated from #def body at line 4, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''<h1>''')
        _v = VFFSL(SL,"title",True) # u'$title' on line 5, col 5
        if _v is not None: write(_filter(_v, rawExpr=u'$title')) # from line 5, col 5.
        write(u'''</h1>

''')
        _v = VFFSL(SL,"search_books_form",False)(searchList=VFFSL(SL,"searchList",True)) # u'$search_books_form(searchList=$searchList)' on line 8, col 1
        if _v is not None: write(_filter(_v, rawExpr=u'$search_books_form(searchList=$searchList)')) # from line 8, col 1.
        write(u'''
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #3
0
    def use_filters_check(self, **KWS):

        ## CHEETAH: generated from #def $use_filters_check at line 13, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        if VFFSL(SL, "getVar",
                 False)('use_filters',
                        VFN(VFFSL(SL, "get_config", False)(), "getint",
                            False)('filters', 'use_in_search_forms',
                                   1)):  # generated from line 14, col 1
            write(u'''checked''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #4
0
    def bodyContent(self, **KWS):

        ## CHEETAH: generated from #block bodyContent at line 27, col 9.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(u'''        <!-- PLACEHOLER BODYCONTENT -->
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #5
0
    def title(self, **KWS):

        ## CHEETAH: generated from #def title at line 17, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        _v = VFFSL(SL, "appname", True)  # u'$appname' on line 18, col 1
        if _v is not None:
            write(_filter(_v, rawExpr=u'$appname'))  # from line 18, col 1.
        write(u''' translation for ''')
        _v = VFFSL(SL, "language", True)  # u'$language' on line 18, col 26
        if _v is not None:
            write(_filter(_v, rawExpr=u'$language'))  # from line 18, col 26.
        write(u'''
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #6
0
    def body(self, **KWS):

        ## CHEETAH: generated from #def body at line 7, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(u'''<p>
  ''')
        _v = VFFSL(SL, "question", True)  # u'$question' on line 9, col 3
        if _v is not None:
            write(_filter(_v, rawExpr=u'$question'))  # from line 9, col 3.
        write(u'''
</p>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #7
0
파일: style.py 프로젝트: lzimm/360io
    def respond(self, trans=None):

        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        _v = VFN(VFFSL(SL, "simplejson", True), "dumps", False)(VFFSL(
            SL, "req.result",
            True))  # u'$simplejson.dumps($req.result)' on line 2, col 1
        if _v is not None:
            write(_filter(_v, rawExpr=u'$simplejson.dumps($req.result)')
                  )  # from line 2, col 1.

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #8
0
    def title(self, **KWS):

        ## CHEETAH: generated from #def title at line 10, col 1.
        trans = KWS.get("trans")
        if not trans and not self._CHEETAH__isBuffering and not callable(self.transaction):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(
            u"""
"""
        )

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #9
0
    def body(self, **KWS):



        ## CHEETAH: generated from #def body at line 7, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''<h2>''')
        _v = VFSL([locals()]+SL+[globals(), builtin],"user.name",True) # u'$user.name' on line 8, col 5
        if _v is not None: write(_filter(_v, rawExpr=u'$user.name')) # from line 8, col 5.
        write(u'''</h2>
<h2>Bem vindo, ''')
        _v = VFSL([locals()]+SL+[globals(), builtin],"user.name",True) # u'$user.name' on line 9, col 16
        if _v is not None: write(_filter(_v, rawExpr=u'$user.name')) # from line 9, col 16.
        write(u'''!</h2>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #10
0
    def writeBody(self, **KWS):



        ## CHEETAH: generated from #block writeBody at line 36, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(u'''This skeleton page has no flesh. Its body needs to be implemented.
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #11
0
파일: error.py 프로젝트: daisy/lion
    def body(self, **KWS):



        ## CHEETAH: generated from #def body at line 6, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''<h1>General error</h1>
<p>Dear user: Sorry!</p>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #12
0
    def body(self, **KWS):

        ## CHEETAH: generated from #def body at line 5, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(u'''<h1>Upload Completed</h1>
<p>File upload completed!  If there are any issues with your file, you will be contacted by a member of our team.</p>
<p><a href="../../MainMenu">Return to the tasks menu</a></p>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
    def headscripts(self, **KWS):

        ## CHEETAH: generated from #def headscripts at line 6, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        _v = VFN(VFFSL(SL, "EditTemplate", True), "headscripts", False)(VFFSL(
            SL, "self",
            True))  # '$EditTemplate.headscripts($self)' on line 7, col 1
        if _v is not None:
            write(_filter(_v, rawExpr="$EditTemplate.headscripts($self)")
                  )  # from line 7, col 1.
        write("""
""")

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #14
0
파일: mainmenu.py 프로젝트: daisy/lion
    def writeBody(self, **KWS):

        ## CHEETAH: main method generated for this template
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        #
        # Template variables:
        # 	user = user's real name
        # 	language = language name
        # 	actions = list of menu links
        #     addldocsuri = URI for additional documents download
        #     addldocsdesc = description of the additional documents
        write(u'''
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #15
0
    def writeBody(self, **KWS):

        ## CHEETAH: main method generated for this template
        trans = KWS.get("trans")
        if (
            not trans
            and not self._CHEETAH__isBuffering
            and not callable(self.transaction)
        ):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(
            """


"""
        )

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #16
0
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''Hello, ''')
        _v = VFFSL(SL,"user",True) # u'$user' on line 1, col 8
        if _v is not None: write(_filter(_v, rawExpr=u'$user')) # from line 1, col 8.
        write(u''' firstName.
Your order (#''')
        _v = VFFSL(SL,"order",True) # u'$order' on line 2, col 14
        if _v is not None: write(_filter(_v, rawExpr=u'$order')) # from line 2, col 14.
        write(u''' id) has shipped:
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #17
0
    def title(self, **KWS):

        ## CHEETAH: generated from #def title at line 8, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(u'''Login
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #18
0
파일: translate.py 프로젝트: daisy/lion
    def title(self, **KWS):

        ## CHEETAH: generated from #def title at line 17, col 1.
        trans = KWS.get("trans")
        if not trans and not self._CHEETAH__isBuffering and not callable(self.transaction):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        _v = VFFSL(SL, "appname", True)  # u'$appname' on line 18, col 1
        if _v is not None:
            write(_filter(_v, rawExpr=u"$appname"))  # from line 18, col 1.
        write(u""" translation for """)
        _v = VFFSL(SL, "language", True)  # u'$language' on line 18, col 26
        if _v is not None:
            write(_filter(_v, rawExpr=u"$language"))  # from line 18, col 26.
        write(
            u"""
"""
        )

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #19
0
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''A[] forall (i : int[0,numOfTasks-1]) forall (j : int[0,numOfTasks-1]) (i==j)||(tasks[i].partition_id != tasks[j].partition_id)|| not (tasks[j].executing && tasks[i].executing)
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #20
0
    def getFieldName(self, name, **KWS):



        ## CHEETAH: generated from #def getFieldName($name) at line 26, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        name = string.capwords(VFSL([locals()]+SL+[globals(), builtin],"name",True), sep="_").replace("_", "")
        name = VFN(VFSL([locals()]+SL+[globals(), builtin],"name",True)[0],"lower",False)() + VFSL([locals()]+SL+[globals(), builtin],"name",True)[1:]
        return VFSL([locals()]+SL+[globals(), builtin],"name",True)
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #21
0
    def respond(self, trans=None):

        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(u'''First Test
Welcome, ''')
        _v = VFFSL(SL, "name", True)  # u'$name' on line 2, col 10
        if _v is not None:
            write(_filter(_v, rawExpr=u'$name'))  # from line 2, col 10.
        write(u'''!''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
    def body(self, **KWS):

        ## CHEETAH: generated from #def body at line 14, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write("""<h1>Edit a type</h1>
<form class=\'editform\' method="get" action="/admin/kindedit">
""")
        _v = VFFSL(SL, "kind.object_to_form",
                   True)  # '$kind.object_to_form' on line 17, col 1
        if _v is not None:
            write(_filter(
                _v, rawExpr="$kind.object_to_form"))  # from line 17, col 1.
        write("""
</form>
""")

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #23
0
    def head(self, **KWS):



        ## CHEETAH: generated from #def head at line 5, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=pt-br"></script>
<script type="text/javascript">
  function initialize() {
    var hotel = new google.maps.LatLng(''')
        _v = VFSL([locals()]+SL+[globals(), builtin],"site.latitude",True) # u'$site.latitude' on line 9, col 40
        if _v is not None: write(_filter(_v, rawExpr=u'$site.latitude')) # from line 9, col 40.
        write(u''', ''')
        _v = VFSL([locals()]+SL+[globals(), builtin],"site.longitude",True) # u'$site.longitude' on line 9, col 56
        if _v is not None: write(_filter(_v, rawExpr=u'$site.longitude')) # from line 9, col 56.
        write(u''');
    var myOptions = {
      zoom: 16,
      center: hotel,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
    var hotelMarker = new google.maps.Marker({
      position: hotel, 
      map: map, 
      title:"''')
        _v = VFSL([locals()]+SL+[globals(), builtin],"site.name",True) # u'$site.name' on line 19, col 14
        if _v is not None: write(_filter(_v, rawExpr=u'$site.name')) # from line 19, col 14.
        write(u'''"
\t});
\t
\tvar content = "S\xedtio Tur\xedstico: ''')
        _v = VFSL([locals()]+SL+[globals(), builtin],"site.name",True) # u'$site.name' on line 22, col 34
        if _v is not None: write(_filter(_v, rawExpr=u'$site.name')) # from line 22, col 34.
        write(u'''<br>"
\tvar infoWindow = new google.maps.InfoWindow({content: content});
\tinfoWindow.setPosition(hotel);
    infoWindow.open(map);
  }

</script>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #24
0
파일: main.py 프로젝트: pli3/Openwebif
    def infoMenu(self, **KWS):



        ## CHEETAH: generated from #def infoMenu at line 81, col 4.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''\t\t\t<ul>\r
\t\t\t\t<li><a href="#" onclick="load_maincontent(\'ajax/boxinfo\'); return false">Box Info</a></li>\r
\t\t\t\t<li><a href="#" onclick="load_maincontent(\'ajax/about\'); return false">About</a></li>\r
\t\t\t</ul>\r
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #25
0
파일: main.py 프로젝트: pli3/Openwebif
    def searchMenu(self, **KWS):



        ## CHEETAH: generated from #def searchMenu at line 100, col 4.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''\t\t\t<form action="" onSubmit="open_epg_search_pop(); return false;">\r
\t\t\t\t<div style="width:100%; text-align:center; padding-top:5px;"><input type="text" id="epgSearch" size="14" /></div>\r
\t\t\t\t<div style="width:100%; text-align:center;padding-top:5px; padding-bottom:7px;" class="epgsearch"><button>Search</button></div>\r
\t\t\t</form>\r
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #26
0
파일: main.py 프로젝트: pli3/Openwebif
    def volumeMenu(self, **KWS):



        ## CHEETAH: generated from #def volumeMenu at line 61, col 4.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''\t\t\t<div class="volslider">\r
\t\t\t\t\t<p style="text-align:center; padding-bottom:8px;"> \r
\t\t\t\t\t\t<label for="amount">Volume:</label>\r
\t\t\t\t\t\t<input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold; width:40px;" />\r
\t\t\t\t\t</p>\r
\t\t\t\t<div id="slider" style="width:130px;"></div>\r
\t\t\t</div>\r
\t\t\t<div style="width:100%; text-align:center; padding-top:5px; padding-bottom:10px;"><img id="volimage" src="images/volume.png" title="" border="0"></div>\r
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #27
0
파일: main.py 프로젝트: pli3/Openwebif
    def controlMenu(self, **KWS):



        ## CHEETAH: generated from #def controlMenu at line 72, col 4.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''\t\t\t<ul>\r
\t\t\t\t<li><a href=\'#\' onclick="load_maincontent(\'ajax/powerstate\'); return false;">Power Control</a></li>\r
\t\t\t\t<li><a href=\'#\' onclick="load_maincontent(\'ajax/screenshot\'); return false;">Grab Screenshot</a></li>\r
\t\t\t\t<li><a href=\'#\' onclick="load_maincontent(\'ajax/message\'); return false;">Send a Message</a></li>\r
\t\t\t\t<li><a href=\'#\' onclick="load_maincontent(\'ajax/timers\'); return false;">Timers</a></li>\r
\t\t\t</ul>\r
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #28
0
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''#ifndef __COMMON__H_
#define __COMMON__H_

#include <vector>

''')
        _v = VFFSL(SL,"nta.declaration",True) # u'$nta.declaration' on line 6, col 1
        if _v is not None: write(_filter(_v, rawExpr=u'$nta.declaration')) # from line 6, col 1.
        write(u'''

#endif
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #29
0
    def respond(self, trans=None):

        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(u'''#include "message.h"
#include <stdio.h>

void message(const char* message)
{
    printf("DEBUG: %s\\n", message);
}
/* -*- vim: set ts=4 sw=4 tw=78 ft=c: -*- */

''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #30
0
파일: callback.py 프로젝트: lzimm/360io
    def respond(self, trans=None):

        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(u'''<script type="text/javascript">
    document.domain = "360.io";
    window.opener.io360.twitter.callback(''')
        _v = VFN(VFFSL(SL, "simplejson", True), "dumps", False)(VFFSL(
            SL, "req.result",
            True))  # u'$simplejson.dumps($req.result)' on line 4, col 42
        if _v is not None:
            write(_filter(_v, rawExpr=u'$simplejson.dumps($req.result)')
                  )  # from line 4, col 42.
        write(u''');
</script>''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #31
0
파일: callback.py 프로젝트: lzimm/360io
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''<script type="text/javascript">
    document.domain = "360.io";
    window.opener.io360.twitter.callback(''')
        _v = VFN(VFFSL(SL,"simplejson",True),"dumps",False)(VFFSL(SL,"req.result",True)) # u'$simplejson.dumps($req.result)' on line 4, col 42
        if _v is not None: write(_filter(_v, rawExpr=u'$simplejson.dumps($req.result)')) # from line 4, col 42.
        write(u''');
</script>''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #32
0
    def writeBody(self, **KWS):

        ## CHEETAH: main method generated for this template
        trans = KWS.get("trans")
        if not trans and not self._CHEETAH__isBuffering and not callable(self.transaction):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        #
        # Template variables:
        # 	user = user's real name
        # 	language = language name
        # 	actions = list of menu links
        write(
            u"""
"""
        )

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #33
0
    def bodyContent(self, **KWS):



        ## CHEETAH: generated from #block bodyContent at line 27, col 9.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''        <!-- PLACEHOLER BODYCONTENT -->
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #34
0
    def body(self, **KWS):

        ## CHEETAH: generated from #def body at line 40, col 1.
        trans = KWS.get("trans")
        if (
            not trans
            and not self._CHEETAH__isBuffering
            and not callable(self.transaction)
        ):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(
            """<h1>Staffing Calendar</h1>
<div id='calendar'></div>
"""
        )

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #35
0
    def banner(self, **KWS):



        ## CHEETAH: generated from #def banner at line 13, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        _v = VFFSL(SL,"title",True) # u'$title' on line 14, col 1
        if _v is not None: write(_filter(_v, rawExpr=u'$title')) # from line 14, col 1.
        write(u'''
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #36
0
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''http://''')
        _v = VFFSL(SL,"host",True) # u'$host' on line 1, col 8
        if _v is not None: write(_filter(_v, rawExpr=u'$host')) # from line 1, col 8.
        write(u''':31339/0,''')
        _v = VFFSL(SL,"ppid",True) # u'$ppid' on line 1, col 22
        if _v is not None: write(_filter(_v, rawExpr=u'$ppid')) # from line 1, col 22.
        write(u''',''')
        _v = VFFSL(SL,"vpid",True) # u'$vpid' on line 1, col 28
        if _v is not None: write(_filter(_v, rawExpr=u'$vpid')) # from line 1, col 28.
        write(u''',''')
        _v = VFFSL(SL,"apid",True) # u'$apid' on line 1, col 34
        if _v is not None: write(_filter(_v, rawExpr=u'$apid')) # from line 1, col 34.
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #37
0
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''<div style="height: 30px; width:250px">
\t<div>
\t\t<img src="images/spinner.gif" width="64" height="64" border="0" alt="''')
        _v = VFFSL(SL,"tstrings",True)['loading'] # u"$tstrings['loading']" on line 4, col 72
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['loading']")) # from line 4, col 72.
        write(u''' ..." style=" position:absolute; top:50%; left:50%; margin-top:-25px; margin-left:-25px;">
\t</div>
</div>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #38
0
    def body(self, **KWS):



        ## CHEETAH: generated from #def body at line 5, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''<h1>Upload Completed</h1>
<p>File upload completed!  If there are any issues with your file, you will be contacted by a member of our team.</p>
<p><a href="../../MainMenu">Return to the tasks menu</a></p>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #39
0
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''<script type="text/javascript">
\t$(document).ready(function() {
\t\tload_maincontent(\'ajax/tv\');
\t});
</script>''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #40
0
파일: getipv6.py 프로젝트: pli3/e2-openwbif
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''<html>
<body>
My IP address is: ''')
        _v = VFFSL(SL,"firstpublic",True) # u'$firstpublic' on line 3, col 19
        if _v is not None: write(_filter(_v, rawExpr=u'$firstpublic')) # from line 3, col 19.
        write(u'''
</body>
</html>''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #41
0
    def body(self, **KWS):



        ## CHEETAH: generated from #def body at line 8, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''<h2>Editar Usuario</h2>
<form method="post" action="/users/edit">
''')
        _v = VFSL([locals()]+SL+[globals(), builtin],"fs",True) # u'$fs' on line 11, col 1
        if _v is not None: write(_filter(_v, rawExpr=u'$fs')) # from line 11, col 1.
        write(u'''
<input type="submit" value="Salvar" />
</form>

''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #42
0
파일: register.py 프로젝트: lzimm/360io
    def respond(self, trans=None):

        ## CHEETAH: main method generated for this template
        if not trans and not self._CHEETAH__isBuffering and not callable(self.transaction):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        _v = VFN(VFFSL(SL, "simplejson", True), "dumps", False)(
            VFFSL(SL, "req.result", True)
        )  # u'$simplejson.dumps($req.result)' on line 2, col 1
        if _v is not None:
            write(_filter(_v, rawExpr=u"$simplejson.dumps($req.result)"))  # from line 2, col 1.

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #43
0
파일: main.py 프로젝트: pli3/e2-openwbif
    def infoMenu(self, **KWS):



        ## CHEETAH: generated from #def infoMenu at line 84, col 4.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''\t\t\t<ul>\r
\t\t\t\t<li><a href="#" onclick="load_maincontent(\'ajax/boxinfo\'); return false">''')
        _v = VFFSL(SL,"tstrings",True)['box_info'] # u"$tstrings['box_info']" on line 86, col 78
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['box_info']")) # from line 86, col 78.
        write(u'''</a></li>\r
\t\t\t\t<li><a href="#" onclick="load_maincontent(\'ajax/about\'); return false">''')
        _v = VFFSL(SL,"tstrings",True)['about'] # u"$tstrings['about']" on line 87, col 76
        if _v is not None: write(_filter(_v, rawExpr=u"$tstrings['about']")) # from line 87, col 76.
        write(u'''</a></li>\r
\t\t\t</ul>\r
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #44
0
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''
You say:
\tHello, ''')
        _v = VFFSL(SL,"name",True) # u'$name' on line 6, col 9
        if _v is not None: write(_filter(_v, rawExpr=u'$name')) # from line 6, col 9.
        write(u'''!''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
    def respond(self, trans=None):

        ## CHEETAH: main method generated for this template
        if not trans and not self._CHEETAH__isBuffering and not callable(self.transaction):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(
            u"""<p>
\t"""
        )
        _v = VFFSL(SL, "description", True)  # u'$description' on line 2, col 2
        if _v is not None:
            write(_filter(_v, rawExpr=u"$description"))  # from line 2, col 2.
        write(
            u"""
</p>
"""
        )

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #46
0
    def writeBody(self, **KWS):



        ## CHEETAH: main method generated for this template
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''

''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #47
0
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        _orig_filter_47080177 = _filter
        filterName = u'WebSafe'
        if self._CHEETAH__filters.has_key("WebSafe"):
            _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName]
        else:
            _filter = self._CHEETAH__currentFilter = \
			self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter
        write(u'''<?xml version="1.0" encoding="UTF-8"?>
<e2servicelist>
''')
        for service in VFFSL(SL,"services",True): # generated from line 4, col 2
            write(u'''\t<e2service>
\t\t<e2servicereference>''')
            _v = VFFSL(SL,"service.servicereference",True) # u'$service.servicereference' on line 6, col 23
            if _v is not None: write(_filter(_v, rawExpr=u'$service.servicereference')) # from line 6, col 23.
            write(u'''</e2servicereference>
\t\t<e2servicename>''')
            _v = VFFSL(SL,"service.servicename",True) # u'$service.servicename' on line 7, col 18
            if _v is not None: write(_filter(_v, rawExpr=u'$service.servicename')) # from line 7, col 18.
            write(u'''</e2servicename>
\t\t<e2serviceisgroup>''')
            _v = VFFSL(SL,"service.isgroup",True) # u'$service.isgroup' on line 8, col 21
            if _v is not None: write(_filter(_v, rawExpr=u'$service.isgroup')) # from line 8, col 21.
            write(u'''</e2serviceisgroup>
\t\t<e2serviceismarker>''')
            _v = VFFSL(SL,"service.ismarker",True) # u'$service.ismarker' on line 9, col 22
            if _v is not None: write(_filter(_v, rawExpr=u'$service.ismarker')) # from line 9, col 22.
            write(u'''</e2serviceismarker>
\t\t<e2serviceisprotected>''')
            _v = VFFSL(SL,"service.isprotected",True) # u'$service.isprotected' on line 10, col 25
            if _v is not None: write(_filter(_v, rawExpr=u'$service.isprotected')) # from line 10, col 25.
            write(u'''</e2serviceisprotected>
\t</e2service>
''')
        write(u'''</e2servicelist>
''')
        _filter = self._CHEETAH__currentFilter = _orig_filter_47080177
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #48
0
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''
<script>
\t

\t $("#accordionS").accordion({
                active:false,
                change:function(event, ui) {
                        ui.newContent.load(ui.newHeader.find(\'a\').attr(\'id\'));
                },
                autoHeight: false,
\t\t collapsible: true
            });


</script>

<div id="accordionS">

''')
        for satellite in VFFSL(SL,"satellites",True): # generated from line 20, col 1
            write(u'''\t<h1><a href="#" id="ajax/channels?id=''')
            _v = VFFSL(SL,"quote",False)(VFFSL(SL,"satellite.service",True)) # u'$quote($satellite.service)' on line 21, col 39
            if _v is not None: write(_filter(_v, rawExpr=u'$quote($satellite.service)')) # from line 21, col 39.
            write(u'''&stype=''')
            _v = VFFSL(SL,"stype",True) # u'$stype' on line 21, col 72
            if _v is not None: write(_filter(_v, rawExpr=u'$stype')) # from line 21, col 72.
            write(u'''">''')
            _v = VFFSL(SL,"satellite.name",True) # u'$satellite.name' on line 21, col 80
            if _v is not None: write(_filter(_v, rawExpr=u'$satellite.name')) # from line 21, col 80.
            write(u'''</a></h1>
<div>
loading...
\t</div>
''')
        write(u'''
</div>''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #49
0
    def headscripts(self, **KWS):

        ## CHEETAH: generated from #def headscripts at line 4, col 1.
        trans = KWS.get("trans")
        if (
            not trans
            and not self._CHEETAH__isBuffering
            and not callable(self.transaction)
        ):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(
            """<link rel='stylesheet' type='text/css' href='/javascript/fullcalendar-1.5.4/fullcalendar.css' />
<script type='text/javascript' src='/javascript/fullcalendar-1.5.4/fullcalendar.js'></script>
<script type='text/javascript' src='/javascript/fullcalendar-1.5.4/gcal.js'></script>
<script type='text/javascript'>                                         
jQuery(document).ready( function(){        
       //set up ajax error handling
//         jQuery.ajaxSetup({  'cache':false,
//                             'error':function(XMLHttpRequest,textStatus, errorThrown) {   
//                                 alert(textStatus + '\\r' +
//                                      errorThrown + '\\r')
//                             }
//         });
       
        //set up calendar
       jQuery('#calendar').fullCalendar({
            header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,agendaWeek,agendaDay'
            },
            events: {
               url: 'http://www.google.com/calendar/feeds/woodenshoe.tech%40gmail.com/public/basic',
            },
            minTime: 12,
            maxTime: 22,
            editable: true
        });
   });
</script>
"""
        )

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #50
0
    def respond(self, trans=None):

        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(
            u'''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- THIS PAGE IS AUTOMATICALLY GENERATED USING CheetahTemplate. DO NOT EDIT. -->
<head>
<meta HTTP-Equiv="Content-Type" content="text/html; charset=utf-8">
<title>''')
        _v = VFFSL(SL, "title", True)  # u'$title' on line 9, col 8
        if _v is not None:
            write(_filter(_v, rawExpr=u'$title'))  # from line 9, col 8.
        write(u''' \u2014 m_Librarian</title>
<meta name="author" content="Oleg Broytman">
<meta name="copyright" content="&copy; 2018 PhiloSoft Design">
<link rev="made" href="mailto:[email protected]">
<meta name="generator" content="CheetahTemplate">
<meta name="MSSmartTagsPreventParsing" content="TRUE"> <!-- MUST DIE -->
<link rel="stylesheet" type="text/css" media="screen" href="/static/style.css">
</head>
<body bgcolor="#FFFFFF" text="#000000"
      link="#0000bb"  vlink="#551a8b" alink="#ff0000">
<table style="width: 100%">
<tr style="width: 100%">
  <td style="width: 50%"><p><a href="/">m_Librarian</a></p></td>
  <td style="width: 50%; text-align: right"><a href="/quit">\u0412\u044b\u0445\u043e\u0434</a></td>
</tr>
</table>
''')
        _v = VFFSL(SL, "body", True)  # u'$body' on line 25, col 1
        if _v is not None:
            write(_filter(_v, rawExpr=u'$body'))  # from line 25, col 1.
        write(u'''
</body>
</html>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #51
0
    def respond(self, trans=None):

        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write('''<html>
  <head>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
    <link rel="stylesheet" href="style.css">
    <title>Repoclosure</title>
  </head>
  <body>
    <nav class="navbar navbar-inverse navbar-expand-lg">
      <a class="navbar-brand mr-2 px-0" href="https://abf.openmandriva.org">
        <img src="logo-mini.png" />
      </a>
      <div class="collapse navbar-collapse">
''')
        self.links(trans=trans)
        write('''      </div>
    </nav>
    <main role="main" class="container-fluid">
      <div class="row">
        <div class="col-md-12 d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center border-bottom pt-3 pb-2 mb-3">
          <h1 class="h2">Repoclosure - ''')
        _v = VFFSL(SL, "title", True)  # '$title' on line 20, col 40
        if _v is not None:
            write(_filter(_v, rawExpr='$title'))  # from line 20, col 40.
        write('''</h1>
          <div class="mr-2">
''')
        self.rightTitle(trans=trans)
        write('''          </div>
        </div>
      </div>
''')
        self.mainContent(trans=trans)
        write('''    </main>
  </body>
</html>''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #52
0
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''<html>
<head>
<script type="text/javascript" src ="jquery.js"></script>
<script type="text/javascript" src ="site.js"></script>



</script>
</head>
<body>
<a href="#" onclick="jQuery.ajax(\'startregistration\')">Start registration </a>
<a href="#" onclick= "jQuery.ajax(\'restart\')"> Restart </a><br/>

<select id="lesson">

''')
        for lesson in VFFSL(SL,"lessons",True): # generated from line 16, col 1
            write(u'''
<option value="''')
            _v = VFFSL(SL,"lesson",True) # u'$lesson' on line 18, col 16
            if _v is not None: write(_filter(_v, rawExpr=u'$lesson')) # from line 18, col 16.
            write(u'''"> ''')
            _v = VFFSL(SL,"lesson",True) # u'$lesson' on line 18, col 26
            if _v is not None: write(_filter(_v, rawExpr=u'$lesson')) # from line 18, col 26.
            write(u'''</option>

''')
        write(u'''</select>
<a href="#" onclick="setlesson()"">Set lesson</a></br>
<a href="#" onclick="jQuery.ajax(\'startlesson\')">Start Lesson</a></br>
<a href="#" onclick="jQuery.ajax(\'teachernext\')">Next Question</a> <br/>
</body>
</html>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #53
0
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''#ifndef ''')
        _v = VFN(VFFSL(SL,"state.name",True),"upper",False)() # u'${state.name.upper()}' on line 1, col 10
        if _v is not None: write(_filter(_v, rawExpr=u'${state.name.upper()}')) # from line 1, col 10.
        write(u'''_STATE_INTERNAL_H
#define ''')
        _v = VFN(VFFSL(SL,"state.name",True),"upper",False)() # u'${state.name.upper()}' on line 2, col 10
        if _v is not None: write(_filter(_v, rawExpr=u'${state.name.upper()}')) # from line 2, col 10.
        write(u'''_STATE_INTERNAL_H

/*
 We need a shared definition of our incomplete type
 exposed in the API. One strategy is to define it
 in an include file like this that we can share
 between the different translation units.
 The advantage is that we keep the definition out
 of the API.
*/

/* Simplify the code by using typedefs for the function pointers. */
typedef void (*EventFunc) (''')
        _v = VFN(VFFSL(SL,"state.name",True),"capitalize",False)() # u'${state.name.capitalize()}' on line 14, col 28
        if _v is not None: write(_filter(_v, rawExpr=u'${state.name.capitalize()}')) # from line 14, col 28.
        write(u'''StatePtr);

struct ''')
        _v = VFN(VFFSL(SL,"state.name",True),"capitalize",False)() # u'${state.name.capitalize()}' on line 16, col 8
        if _v is not None: write(_filter(_v, rawExpr=u'${state.name.capitalize()}')) # from line 16, col 8.
        write(u'''State
{
    EventFunc func;
};

#endif
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
예제 #54
0
    def head(self, **KWS):

        ## CHEETAH: generated from #block head at line 11, col 1.
        trans = KWS.get("trans")
        if (
            not trans
            and not self._CHEETAH__isBuffering
            and not callable(self.transaction)
        ):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        # <script src="/javascript/sorttable.js"></script>
        write(
            """<script src="/javascript/functions.js"></script>

<!--This adds jquery & jquery-ui -->

<script type=\'text/javascript\' src=\'/javascript/jquery-1.12.3.min.js\'></script>

<link type="text/css" href="/javascript/jquery-ui-1.12.0-rc.2.custom/jquery-ui.min.css" rel="Stylesheet" />
<script type=\'text/javascript\' src=\'/javascript/jquery-ui-1.12.0-rc.2.custom/jquery-ui.min.js\'></script>

<link type="text/css" href="/javascript/datatables.min.css" rel="Stylesheet" />\t
<script type=\'text/javascript\' src=\'/javascript/datatables.min.js\'></script>
"""
        )
        # <script type='text/javascript' src='/javascript/FixedHeader.js'></script>
        write(
            """
<link href="/style/main.css" type="text/css" rel="stylesheet"/>

"""
        )
        # head scripts should go here.
        self.headscripts(trans=trans)
        write(
            """
"""
        )

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #55
0
    def headscripts(self, **KWS):

        ## CHEETAH: generated from #def headscripts at line 5, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(
            """<script type='text/javascript'>                                         
\tjQuery(document).ready( function(){
\t    //give focus to first field of notes form
        jQuery('form:first input:first').focus();    \t    

//set up ajax error handling
//         jQuery.ajaxSetup({  'cache':false,
//                             'error': function( XMLHttpRequest,textStatus,
//                                 errorThrown) {
//                                       alert(textStatus + '\\\\r' +
//                                       errorThrown + '\\\\r' +
//                                       XMLHttpRequest.responseText);
//                                  :}
//         });
        
        //populate table with contents of notes table.
        //dataTable does pagination, etc, for free
        jQuery.getJSON('/notes/get_notes', null, function( json ) {
            jQuery('#message_table').dataTable({    'aaData':json,
                                                    'aSorting':[],
                                                    'bProcessing':true,
                                                    'oSearch': {'sSearch':'', bRegex:false, bSmart:true},
                                                    'iDisplayLength': 15,
                                                    'order':[], 
                                                'sPaginationType':'simple_numbers'});
        });
    });
</script>
""")

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #56
0
    def writeHeadTag(self, **KWS):

        ## CHEETAH: generated from #block writeHeadTag at line 22, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(u'''<head>
<title>''')
        _v = VFSL([locals()] + SL + [globals(), builtin], "title",
                  True)  # u'$title' on line 24, col 8
        if _v is not None:
            write(_filter(_v, rawExpr=u'$title'))  # from line 24, col 8.
        write(u'''</title>
''')
        _v = VFSL([locals()] + SL + [globals(), builtin], "metaTags",
                  True)  # u'$metaTags' on line 25, col 1
        if _v is not None:
            write(_filter(_v, rawExpr=u'$metaTags'))  # from line 25, col 1.
        write(u'''
''')
        _v = VFSL([locals()] + SL + [globals(), builtin], "stylesheetTags",
                  True)  # u'$stylesheetTags' on line 26, col 1
        if _v is not None:
            write(_filter(_v,
                          rawExpr=u'$stylesheetTags'))  # from line 26, col 1.
        write(u'''
''')
        _v = VFSL([locals()] + SL + [globals(), builtin], "javascriptTags",
                  True)  # u'$javascriptTags' on line 27, col 1
        if _v is not None:
            write(_filter(_v,
                          rawExpr=u'$javascriptTags'))  # from line 27, col 1.
        write(u'''
</head>
''')

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #57
0
파일: warnings.py 프로젝트: daisy/lion
    def respond(self, trans=None):



        ## CHEETAH: main method generated for this template
        if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
            trans = self.transaction # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else: _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter
        
        ########################################
        ## START - generated method body
        
        write(u'''<div class="warning">
\t<h2>Warning!</h2>
''')
        if VFFSL(SL,"warning_links",True) != None and len(VFFSL(SL,"warning_links",True)) > 1: # generated from line 3, col 3
            write(u'''\t\t\t<ul>
''')
            for link in VFFSL(SL,"warning_links",True): # generated from line 5, col 5
                write(u'''\t\t\t\t\t<li>There is a conflict in <a href="#''')
                _v = VFFSL(SL,"link",True) # u'$link' on line 6, col 43
                if _v is not None: write(_filter(_v, rawExpr=u'$link')) # from line 6, col 43.
                write(u'''">this group</a></li>
''')
            write(u'''\t\t\t</ul>
''')
        elif VFFSL(SL,"warning_links",True) != None and len(VFFSL(SL,"warning_links",True)) == 1: # generated from line 9, col 3
            write(u'''\t\t\t<p>There is a conflict in <a href="#''')
            _v = VFFSL(SL,"warning_links",True)[0] # u'$warning_links[0]' on line 10, col 40
            if _v is not None: write(_filter(_v, rawExpr=u'$warning_links[0]')) # from line 10, col 40.
            write(u'''">this group</a></p>
''')
        elif VFFSL(SL,"warning_links",True) == None and VFFSL(SL,"warning_message",True) != None: # generated from line 11, col 3
            write(u'''\t\t\t<p>''')
            _v = VFFSL(SL,"warning_message",True) # u'$warning_message' on line 12, col 7
            if _v is not None: write(_filter(_v, rawExpr=u'$warning_message')) # from line 12, col 7.
            write(u'''</p>
''')
        write(u'''\t\t<p>Fix the problem(s) and save the item(s).</p>
</div>

''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
    def respond(self, trans=None):

        ## CHEETAH: main method generated for this template
        if (
            not trans
            and not self._CHEETAH__isBuffering
            and not callable(self.transaction)
        ):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        # simple report of selected titles
        for t in VFFSL(SL, "titles", True):  # generated from line 2, col 1
            _v = VFFSL(SL, "t.booktitle", True)  # '$t.booktitle' on line 3, col 1
            if _v is not None:
                write(_filter(_v, rawExpr="$t.booktitle"))  # from line 3, col 1.
            write("""|""")
            _v = VFFSL(SL, "t.isbn", True)  # '$t.isbn' on line 3, col 14
            if _v is not None:
                write(_filter(_v, rawExpr="$t.isbn"))  # from line 3, col 14.
            write("""|""")
            _v = VFFSL(
                SL, "t.highest_price_book.listprice", True
            )  # '$t.highest_price_book.listprice' on line 3, col 22
            if _v is not None:
                write(
                    _filter(_v, rawExpr="$t.highest_price_book.listprice")
                )  # from line 3, col 22.
            write(
                """<br />

"""
            )
        write(
            """
"""
        )

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
    def headscripts(self, **KWS):

        ## CHEETAH: generated from #def headscripts at line 10, col 1.
        trans = KWS.get("trans")
        if (not trans and not self._CHEETAH__isBuffering
                and not callable(self.transaction)):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        _v = VFN(VFFSL(SL, "EditTemplate", True), "headscripts", False)(VFFSL(
            SL, "self",
            True))  # '$EditTemplate.headscripts($self)' on line 11, col 1
        if _v is not None:
            write(_filter(_v, rawExpr="$EditTemplate.headscripts($self)")
                  )  # from line 11, col 1.
        write("""
<script type="text/javascript">                                         
    jQuery(document).ready(function() {
//         //Ajax setup for error handling
//         jQuery.ajaxSetup({"error":function(XMLHttpRequest,textStatus, errorThrown) {   
//                 alert(textStatus);
//                 alert(errorThrown);
//                 alert(XMLHttpRequest.responseText);          
//         }});

        //enable autocomplete for title
        jQuery(\'#id_booktitle\').autocomplete({
            source: \'title_autocomplete\',
        });   
        
        jQuery(\'.print_link\').bind(\'click\', function() {
            jQuery.get(jQuery(this)[0].href);
            return false;
        });
    });
</script>
""")

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""
예제 #60
0
    def body(self, **KWS):

        ## CHEETAH: generated from #def body at line 11, col 1.
        trans = KWS.get("trans")
        if (
            not trans
            and not self._CHEETAH__isBuffering
            and not callable(self.transaction)
        ):
            trans = self.transaction  # is None unless self.awake() was called
        if not trans:
            trans = DummyTransaction()
            _dummyTrans = True
        else:
            _dummyTrans = False
        write = trans.response().write
        SL = self._CHEETAH__searchList
        _filter = self._CHEETAH__currentFilter

        ########################################
        ## START - generated method body

        write(
            """<h1>Locations</h1>
<ul>
"""
        )
        for l in VFFSL(SL, "locations", True):  # generated from line 14, col 1
            write("""<li><a href="/admin/locationedit?id=""")
            _v = VFFSL(SL, "l.id", True)  # '$l.id' on line 15, col 37
            if _v is not None:
                write(_filter(_v, rawExpr="$l.id"))  # from line 15, col 37.
            write("""">""")
            _v = VFFSL(
                SL, "l.locationName", True
            )  # '$l.locationName' on line 15, col 44
            if _v is not None:
                write(_filter(_v, rawExpr="$l.locationName"))  # from line 15, col 44.
            write(
                """</></li>
"""
            )
        write(
            """</ul>
<a href="/admin/locationedit">Add a new location</a>
"""
        )

        ########################################
        ## END - generated method body

        return _dummyTrans and trans.response().getvalue() or ""