示例#1
0
    def body(self,
            trans=None,
            dummyTrans=False,
            VFS=valueFromSearchList,
            VFN=valueForName,
            getmtime=getmtime,
            currentTime=time.time,
            globals=globals,
            locals=locals,
            __builtin__=__builtin__):


        """
        Generated from #block body at line 12, col 1.
        """

        if not trans:
            trans = DummyTransaction()
            dummyTrans = True
        write = trans.response().write
        SL = self._searchList
        filter = self._currentFilter
        globalSetVars = self._globalSetVars
        
        ########################################
        ## START - generated method body
        
        
        ########################################
        ## END - generated method body
        
        if dummyTrans:
            return trans.response().getvalue()
        else:
            return ""
    def pagetitle(self, **KWS):



        ## CHEETAH: generated from #def pagetitle 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('''Report: ''')
        _v = VFN(VFFSL(SL,"report",True),"metadata",True)['name'] # "${report.metadata['name']}" on line 5, col 9
        if _v is not None: write(_filter(_v, rawExpr="${report.metadata['name']}")) # from line 5, col 9.
        write('''
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#3
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('''<style>
    body {
        margin: 0px;
    }
</style>
''')
        self._handleCheetahInclude(VFFSL(SL, "html", True),
                                   trans=trans,
                                   includeFrom="str",
                                   raw=False)

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#4
0
文件: site.py 项目: lzimm/pervurs
    def side(self, **KWS):



        ## CHEETAH: generated from #block side at line 46, 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
        
        self._handleCheetahInclude("../server/www/templates/chunks/side.tmpl", trans=trans, includeFrom="file", raw=False)
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#5
0
    def pagetitle(self, **KWS):

        ## CHEETAH: generated from #def pagetitle 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("""Editing a copy of """)
        _v = VFFSL(SL, "book.title.booktitle", True)  # '${book.title.booktitle}' on line 5, col 19
        if _v is not None:
            write(_filter(_v, rawExpr="${book.title.booktitle}"))  # from line 5, col 19.
        write(
            """
"""
        )

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#6
0
    def gen_browser_lst(self, compact, **KWS):



        ## CHEETAH: generated from #def gen_browser_lst($compact) at line 198, col 17.
        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
        
        for b in VFFSL(SL,"UA_ALLOWED",True): # generated from line 200, col 21
            if VFFSL(SL,"b.recommend",True): # generated from line 201, col 23
                write('''                        ''')
                _v = VFFSL(SL,"gen_browser",False)(VFFSL(SL,"b",True), VFFSL(SL,"compact",True)) # '$gen_browser($b, $compact)' on line 202, col 25
                if _v is not None: write(_filter(_v, rawExpr='$gen_browser($b, $compact)')) # from line 202, col 25.
                write('''
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#7
0
    def systemNavigation(self, **KWS):

        ## CHEETAH: generated from #def systemNavigation 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(
            '''     <form id="frmFilter" class="buttons" style="width: 100%"> &nbsp; </form>
''')

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#8
0
    def mainData(self, **KWS):



        ## CHEETAH: generated from #def mainData 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('''
    <b>''')
        _v = VFFSL(SL,"S_NAME",True) # '$S_NAME' on line 9, col 8
        if _v is not None: write(_filter(_v, rawExpr='$S_NAME')) # from line 9, col 8.
        write('''</b>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#9
0
    def engineData(self, **KWS):

        ## CHEETAH: generated from #def engineData at line 3, 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">
''')
        self._CHEETAH__globalSetVars["is_linux"] = VFFSL(SL, "is_linux", True)
        write('''    </script>
''')
        self._handleCheetahInclude(
            '../systems/ENGINE/HEALTH/templates/health_simple.tmpl',
            trans=trans,
            includeFrom="file",
            raw=False)

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#10
0
    def activeTab(self, methodname, **KWS):



        ## CHEETAH: generated from #def $activeTab($methodname) at line 3, 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
        
        class_name = 'nonactive-tab'
        ind = 0
        found_method = VFN(VFFSL(SL,"pu",True),"find_base_caller",False)(VFFSL(SL,"ind",True))[3]
        while VFFSL(SL,"found_method",True) != '': # generated from line 8, col 5
            if VFFSL(SL,"found_method",True) == VFFSL(SL,"methodname",True): # generated from line 9, col 9
                class_name = 'active-tab'
                break
            ind += 1
            found_method = VFN(VFFSL(SL,"pu",True),"find_base_caller",False)(VFFSL(SL,"ind",True))[3]
        _v = VFFSL(SL,"class_name",True)
        if _v is not None: write(_filter(_v))
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#11
0
    def writeBody(self,
            trans=None,
            dummyTrans=False,
            VFFSL=valueFromFrameOrSearchList,
            VFN=valueForName,
            getmtime=getmtime,
            currentTime=time.time):


        """
        Generated from #block writeBody at line 36, col 1.
        """

        if not trans:
            trans = DummyTransaction()
            dummyTrans = True
        write = trans.response().write
        SL = self._searchList
        filter = self._currentFilter
        globalSetVars = self._globalSetVars
        
        ########################################
        ## START - generated method body
        
        write('This skeleton page has no flesh. Its body needs to be implemented.\n')
        
        ########################################
        ## END - generated method body
        
        if dummyTrans:
            return trans.response().getvalue()
        else:
            return ""
示例#12
0
文件: index.py 项目: lzimm/pervurs
    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('''
''')
        self.body(trans=trans)
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#13
0
    def mainData(self, **KWS):

        ## CHEETAH: generated from #def mainData 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

        self.palBefore(trans=trans)
        write('''
''')
        self.palInfo(trans=trans)
        write('''
''')
        self.palWares(trans=trans)
        write('''
''')
        self.palFooter(trans=trans)

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#14
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('''Untitled
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#15
0
    def pagetitle(self, **KWS):

        ## CHEETAH: generated from #def pagetitle 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('''Report: ''')
        _v = VFN(VFFSL(SL, "report", True), "metadata",
                 True)['name']  # "${report.metadata['name']}" on line 5, col 9
        if _v is not None:
            write(_filter(
                _v,
                rawExpr="${report.metadata['name']}"))  # from line 5, col 9.
        write('''
''')

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#16
0
文件: index.py 项目: shybkoi/WMS-Demo
    def engineData(self, **KWS):

        ## CHEETAH: generated from #def engineData at line 31, 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('''    <div id="dvWH" style="text-align:left;"></div>    
''')

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#17
0
    def rcData(self, **KWS):

        ## CHEETAH: generated from #def rcData at line 16, 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

        # Scripts
        write('''    <script type="text/javascript" src="''')
        _v = VFFSL(SL, "sp_js", True)  # '$sp_js' on line 18, col 41
        if _v is not None:
            write(_filter(_v, rawExpr='$sp_js'))  # from line 18, col 41.
        write('''/trashSite.js"></script>
''')

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#18
0
    def regAddon(self, **KWS):



        ## CHEETAH: generated from #block regAddon at line 71, col 25.
        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,"varExists",False)('regaddon') and VFFSL(SL,"regaddon",True) == 1: # generated from line 72, col 29
            if VFFSL(SL,"varExists",False)('regaddon_tmpl_path'): # generated from line 73, col 33
                self._handleCheetahInclude(VFFSL(SL,"regaddon_tmpl_path",True)+"regaddon.tmpl", trans=trans, includeFrom="file", raw=False)
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#19
0
    def is_rf(self, field, **KWS):



        ## CHEETAH: generated from #def is_rf(field) at line 3, 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,"field",True) in VFFSL(SL,"required_fields",True): # generated from line 4, col 5
            write("""        <div class='required_field'>*</div>
""")
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#20
0
    def systemNavigation(self, **KWS):

        ## CHEETAH: generated from #def systemNavigation 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('''<ul>
\t<li><a href="wares">\xcf\xee \xe7\xe0\xea\xe0\xe7\xe0\xec</a></li>
\t<li><a href="automatic">\xc0\xe2\xf2\xee\xec\xe0\xf2\xe8\xf7\xe5\xf1\xea\xee\xe5</a></li>
</ul>
''')
        self.rfsFilter(trans=trans)

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#21
0
    def pagetitle(self, **KWS):

        ## CHEETAH: generated from #def pagetitle 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('''Editing an author of ''')
        _v = VFFSL(SL, "author.title.booktitle",
                   True)  # '${author.title.booktitle}' on line 5, col 22
        if _v is not None:
            write(_filter(
                _v,
                rawExpr='${author.title.booktitle}'))  # from line 5, col 22.
        write('''
''')

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

        return _dummyTrans and trans.response().getvalue() or ""
    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('''<h1>Category record for ''')
        _v = VFFSL(SL,"category.title.booktitle",True) # '$category.title.booktitle' on line 9, col 25
        if _v is not None: write(_filter(_v, rawExpr='$category.title.booktitle')) # from line 9, col 25.
        write('''</h1>
<form method="get" action="/categoryedit">
''')
        _v = VFFSL(SL,"category.object_to_form",True) # '$category.object_to_form' on line 11, col 1
        if _v is not None: write(_filter(_v, rawExpr='$category.object_to_form')) # from line 11, col 1.
        write('''
</form>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#23
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 ""
示例#24
0
    def rcFilter(self, **KWS):

        ## CHEETAH: generated from #block rcFilter at line 6, col 5.
        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('''        <input type=text
''')

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#25
0
    def banner(self, **KWS):



        ## CHEETAH: generated from #def banner at line 12, 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) # '$title' on line 13, col 1
        if _v is not None: write(_filter(_v, rawExpr='$title')) # from line 13, col 1.
        write('''
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#26
0
    def body(self, **KWS):



        ## CHEETAH: generated from #block body at line 19, 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('''
''')
        #  Show error if this page is shown
        write('''<h1><center><font color="RED">
OOOPS!
</font></center></h1>

''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#27
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('This skeleton page has no flesh. Its body needs to be implemented.\n')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#28
0
文件: main.py 项目: shybkoi/WMS-Demo
    def systemNavigation(self, **KWS):

        ## CHEETAH: generated from #def systemNavigation 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

        #
        #     <ul id="ulNavigation">
        #         <li><a href="SALE">Отборка</a></li>
        #         <li><a href="INCOME">Приемка</a></li>
        #     </ul>

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#29
0
    def ppFilter(self, **KWS):

        ## CHEETAH: generated from #block ppFilter at line 34, col 2.
        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(
            '''\t\t\xed\xe5\xf2 \xe8\xed\xf4\xee\xf0\xec\xe0\xf6\xe8\xe8 \xe4\xeb\xff \xee\xf2\xee\xe1\xf0\xe0\xe6\xe5\xed\xe8\xff
''')

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#30
0
文件: index.py 项目: shybkoi/WMS-Demo
    def engineData(self, **KWS):

        ## CHEETAH: generated from #def engineData	 at line 49, 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(
            '''\t<div id="dvMain" style="width:100%;float:left;position:relative;">
\t\t<div id="dvEmployee" style="width:100%;height:100%;float:left;position:relative;"></div>
\t\t<!--div id="dvData" style="width:50%;height:100%;float:left;position:relative;">
\t\t\t<div id="dvSessions" style="width:100%;height:50%;float:left;position:relative;"></div>
\t\t\t<div id="dvTasks" style="width:100%;height:50%;float:left;position:relative;"></div>
\t\t</div-->
\t</div>
''')

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#31
0
文件: main.py 项目: shybkoi/WMS-Demo
    def adminData(self, **KWS):



        ## CHEETAH: generated from #block adminData at line 55, col 5.
        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('''        <div id="dvScreen">\xd0\xe0\xe1\xee\xf7\xe0\xff \xee\xe1\xeb\xe0\xf1\xf2\xfc</div>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#32
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('''<h1>Edit a type</h1>
<form method="get" action="/kindedit">
''')
        _v = VFFSL(SL,"kind.object_to_form",True) # '$kind.object_to_form' on line 11, col 1
        if _v is not None: write(_filter(_v, rawExpr='$kind.object_to_form')) # from line 11, col 1.
        write('''
</form>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#33
0
文件: index.py 项目: lzimm/pervurs
    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 = VFFSL(SL,"req.output",True) # '$req.output' on line 1, col 1
        if _v is not None: write(_filter(_v, rawExpr='$req.output')) # from line 1, col 1.
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#34
0
    def adminData(self, **KWS):



        ## CHEETAH: generated from #block adminData       at line 26, col 5.
        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('''        <div id="dvTbl" style="float:left;position:relative;"></div>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#35
0
    def pagetitle(self, **KWS):

        ## CHEETAH: generated from #def pagetitle 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('''Welcome Happy Worker!
''')

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

        return _dummyTrans and trans.response().getvalue() or ""
    def title(self,
              trans=None,
              dummyTrans=False,
              VFFSL=valueFromFrameOrSearchList,
              VFN=valueForName,
              getmtime=getmtime,
              currentTime=time.time):
        """
        Generated from #def title at line 4, col 1.
        """

        if not trans:
            trans = DummyTransaction()
            dummyTrans = True
        write = trans.response().write
        SL = self._searchList
        filter = self._currentFilter
        globalSetVars = self._globalSetVars

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

        write('Cached Modules')

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

        if dummyTrans:
            return trans.response().getvalue()
        else:
            return ""
示例#37
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('This skeleton page has no flesh. Its body needs to be implemented.\n')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
    def body(self,
            trans=None,
            dummyTrans=False,
            VFFSL=valueFromFrameOrSearchList,
            VFN=valueForName,
            getmtime=getmtime,
            currentTime=time.time):


        """
        This is the main method generated by Cheetah
        """

        if not trans:
            trans = DummyTransaction()
            dummyTrans = True
        write = trans.response().write
        SL = self._searchList
        filter = self._currentFilter
        globalSetVars = self._globalSetVars
        
        ########################################
        ## START - generated method body
        
        write('\n\n')
        fields = VFFSL(SL,"req.fields",True)
        keys = VFN(VFFSL(SL,"fields",True),"keys",False)()
        VFN(VFFSL(SL,"keys",True),"sort",False)()
        write('''
<p>
<table>

<thead>
<tr>
<th>Name</th>
<th>Value</th>
</tr>
</thead>

<tbody>
''')
        for key in VFFSL(SL,"keys",True):
            write('    <tr>\n    <td>')
            write(filter(VFFSL(SL,"key",True), rawExpr='$key')) # from line 25, col 9.
            write('</td>\n    <td>')
            write(filter(VFFSL(SL,"fields",True)[VFFSL(SL,"key",True)], rawExpr='$fields[$key]')) # from line 26, col 9.
            write('</td>\n    </tr>\n')
        write('''</tbody>

</table>
</p>
''')
        
        ########################################
        ## END - generated method body
        
        if dummyTrans:
            return trans.response().getvalue()
        else:
            return ""
示例#39
0
    def mainData(self, **KWS):

        ## CHEETAH: generated from #def mainData     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('''    <b><u>''')
        _v = VFFSL(SL, "ALIAS", True)  # '$ALIAS' on line 5, col 11
        if _v is not None:
            write(_filter(_v, rawExpr='$ALIAS'))  # from line 5, col 11.
        write('''</u></b><br><br>
    <hr>
\t<form action="printer">
        <input type="hidden" name="id" value="''')
        _v = VFFSL(SL, "printerid", True)  # '$printerid' on line 8, col 47
        if _v is not None:
            write(_filter(_v, rawExpr='$printerid'))  # from line 8, col 47.
        write('''">
        ''')
        if False:
            _('Кол-во')
        _v = VFFSL(SL, "_", False)(
            'Кол-во')  # "$_('\xca\xee\xeb-\xe2\xee')" on line 9, col 9
        if _v is not None:
            write(_filter(
                _v,
                rawExpr="$_('\xca\xee\xeb-\xe2\xee')"))  # from line 9, col 9.
        write(
            ''': <input type="text" id=":focus:" name="cnt" value="" size="6"><br>
        <button type="submit">''')
        if False:
            _('Печать')
        _v = VFFSL(SL, "_", False)(
            'Печать'
        )  # "$_('\xcf\xe5\xf7\xe0\xf2\xfc')" on line 10, col 31
        if _v is not None:
            write(_filter(_v, rawExpr="$_('\xcf\xe5\xf7\xe0\xf2\xfc')")
                  )  # from line 10, col 31.
        write('''</button>
\t</form>    
''')

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#40
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('''<table id="tbl_systems_views">
  <thead>
  <tr>
    <th>\xb9</th>
    <th>\xcf\xf0\xe5\xe4\xf1\xf2\xe0\xe2\xeb\xe5\xed\xe8\xe5</th>
    <th>\xc2\xfb\xe1\xee\xf0</th>
  </tr>
  </thead>
  <tbody>
''')
        N = 1
        for item in VFFSL(SL, "views", True):  # generated from line 12, col 9
            write('''            <tr>
                <td class="har">''')
            _v = VFFSL(SL, "N", True)  # '$N' on line 14, col 33
            if _v is not None:
                write(_filter(_v, rawExpr='$N'))  # from line 14, col 33.
            write('''</td>
                <td>''')
            _v = VFFSL(SL, "item.NAME",
                       True)  # '$item.NAME' on line 15, col 21
            if _v is not None:
                write(_filter(_v,
                              rawExpr='$item.NAME'))  # from line 15, col 21.
            write('''</td>
                <td class="hac"><input type="radio" name="sel_view" value="''')
            _v = VFFSL(SL, "item.ID", True)  # '$item.ID' on line 16, col 76
            if _v is not None:
                write(_filter(_v, rawExpr='$item.ID'))  # from line 16, col 76.
            write('''"/></td>
            </tr>
''')
            N = VFFSL(SL, "N", True) + 1
        write('''  </tbody>
</table>
''')

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#41
0
    def mainData(self, **KWS):



        ## CHEETAH: generated from #def mainData 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('''   
   <b><u>''')
        _v = VFFSL(SL,"FROMNAME",True) # '$FROMNAME' on line 7, col 10
        if _v is not None: write(_filter(_v, rawExpr='$FROMNAME')) # from line 7, col 10.
        write('''</u></b><br>
   \xb9 <b>''')
        _v = VFFSL(SL,"DOCNUM",True) # '$DOCNUM' on line 8, col 9
        if _v is not None: write(_filter(_v, rawExpr='$DOCNUM')) # from line 8, col 9.
        write('''</b> \xee\xf2 <b>''')
        _orig_filter_77153450 = _filter
        filterName = 'DateFilter'
        if self._CHEETAH__filters.has_key("DateFilter"):
            _filter = self._CHEETAH__currentFilter = self._CHEETAH__filters[filterName]
        else:
            _filter = self._CHEETAH__currentFilter = \
			self._CHEETAH__filters[filterName] = getattr(self._CHEETAH__filtersLib, filterName)(self).filter
        _v = VFFSL(SL,"DOCDATE",True) # '$DOCDATE' on line 8, col 45
        if _v is not None: write(_filter(_v, rawExpr='$DOCDATE')) # from line 8, col 45.
        _filter = _orig_filter_77153450
        write(''' </b>
    <br><br>
    <form action="taskSite">
        <input type="hidden" name="tid" value="''')
        _v = VFFSL(SL,"TID",True) # '$TID' on line 11, col 48
        if _v is not None: write(_filter(_v, rawExpr='$TID')) # from line 11, col 48.
        write('''">
        ''')
        if False:
            _('ШК местоположения приемки')
        _v = VFFSL(SL,"_",False)('ШК местоположения приемки') # "$_('\xd8\xca \xec\xe5\xf1\xf2\xee\xef\xee\xeb\xee\xe6\xe5\xed\xe8\xff \xef\xf0\xe8\xe5\xec\xea\xe8')" on line 12, col 9
        if _v is not None: write(_filter(_v, rawExpr="$_('\xd8\xca \xec\xe5\xf1\xf2\xee\xef\xee\xeb\xee\xe6\xe5\xed\xe8\xff \xef\xf0\xe8\xe5\xec\xea\xe8')")) # from line 12, col 9.
        write(""": <br> 
        <input type='text' name='barcode' id='barcode:scan'>
    </form>
""")
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#42
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
        
        #  Master page template
        write('''
''')
        #  Header
        write('''<html>
<head>
<title>
TSmells Pieces Tests
</title>
<head>
<body>
<center>
<h1>
TSmells Pieces Tests
</h1>
</center>

''')
        #  Body
        self.body(trans=trans)
        write('''
''')
        #  Footer
        write('''<hr />
    <font size="-1">
        Generated ''')
        _v = VFFSL(SL,"ctime",False)() # '$ctime()' on line 31, col 19
        if _v is not None: write(_filter(_v, rawExpr='$ctime()')) # from line 31, col 19.
        write(''' by <a href="mailto:[email protected]">Manuel Breugelmans</a>
    </font>
</body>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#43
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('''
<div class="pagination">
''')
        if VFN(VFFSL(SL,"req.__dict__",True),"get",False)('pagination'): # generated from line 4, col 1
            write('''
''')
            if VFN(VFFSL(SL,"req.pagination",True),"fetchcount",False)(True): # generated from line 6, col 1
                write('''
<a class="more" href="''')
                _v = VFFSL(SL,"links",True)['paginate_more'](VFFSL(SL,"req",True)) # "$links['paginate_more']($req)" on line 8, col 23
                if _v is not None: write(_filter(_v, rawExpr="$links['paginate_more']($req)")) # from line 8, col 23.
                write('''">More</a>

''')
            write('''\t
''')
            if VFFSL(SL,"req.pagination.offset",True): # generated from line 12, col 1
                write('''
<a class="less" href="''')
                _v = VFFSL(SL,"links",True)['paginate_less'](VFFSL(SL,"req",True)) # "$links['paginate_less']($req)" on line 14, col 23
                if _v is not None: write(_filter(_v, rawExpr="$links['paginate_less']($req)")) # from line 14, col 23.
                write('''">Less</a>

''')
            write('''
''')
        write('''</div>''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#44
0
文件: login.py 项目: lzimm/pervurs
    def body(self, **KWS):



        ## CHEETAH: generated from #block body at line 3, 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('''
<div class="form">
<form action="''')
        _v = VFFSL(SL,"req.uri",True) # '$req.uri' on line 6, col 15
        if _v is not None: write(_filter(_v, rawExpr='$req.uri')) # from line 6, col 15.
        write('''" method="POST">
    <div class="row textfields">
        <div class="column">
            <label for="email">Email</label>
            <input name="email" type="text" />
        </div>
    
        <div class="column">
            <label for="password">Password</label>
            <input name="password" type="password" />
        </div>
    </div>
    
    <div class="row"><div class="column">
    <input type="submit" />
    </div></div>
    
</form>
</div>

''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#45
0
    def respond(self,
            trans=None,
            dummyTrans=False,
            VFS=valueFromSearchList,
            VFN=valueForName,
            getmtime=getmtime,
            currentTime=time.time,
            globals=globals,
            locals=locals,
            __builtin__=__builtin__):


        """
        This is the main method generated by Cheetah
        """

        if not trans:
            trans = DummyTransaction()
            dummyTrans = True
        write = trans.response().write
        SL = self._searchList
        filter = self._currentFilter
        globalSetVars = self._globalSetVars
        
        ########################################
        ## START - generated method body
        
        write('''//
// DO NOT EDIT THIS FILE!
//
// This file was generated automatically by the
// ast.py script on ''')
        write(filter(VFN(VFS(SL + [globals(), __builtin__],"time",True),"asctime",False)(), rawExpr='${time.asctime()}')) # from line 6, col 21.
        write('''
//
using System;

namespace Boo.Ast
{
''')
        self.body(trans=trans) # generated from ('body', '#block body') at line 12, col 1.
        write('}')
        
        ########################################
        ## END - generated method body
        
        if dummyTrans:
            return trans.response().getvalue()
        else:
            return ""
示例#46
0
    def body(self, **KWS):



        ## CHEETAH: generated from #block 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('''
''')
        #  Display user
        write('''<h1>''')
        _v = VFFSL(SL,"user.name",True) # '$user.name' on line 9, col 5
        if _v is not None: write(_filter(_v, rawExpr='$user.name')) # from line 9, col 5.
        write('''</h1>
<table>
    <tr>
        <td>Login:</td>
        <td>''')
        _v = VFFSL(SL,"user.login",True) # '$user.login' on line 13, col 13
        if _v is not None: write(_filter(_v, rawExpr='$user.login')) # from line 13, col 13.
        write('''</td>
    </tr>
    <tr>
        <td>Phone:</td>
        <td>''')
        _v = VFFSL(SL,"user.phone",True) # '$user.phone' on line 17, col 13
        if _v is not None: write(_filter(_v, rawExpr='$user.phone')) # from line 17, col 13.
        write('''</td>
    </tr>
</table>

''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#47
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('''<h1>''')
        _v = VFN(VFFSL(SL,"report",True),"metadata",True)['name'] # "${report.metadata['name']}" on line 9, col 5
        if _v is not None: write(_filter(_v, rawExpr="${report.metadata['name']}")) # from line 9, col 5.
        write('''</h1>
''')
        _v = VFN(VFFSL(SL,"report",True),"queryForm",False)() # '${report.queryForm()}' on line 10, col 1
        if _v is not None: write(_filter(_v, rawExpr='${report.queryForm()}')) # from line 10, col 1.
        write('''
<hr />
''')
        if VFFSL(SL,"do_query",True): # generated from line 12, col 1
            write('''<table>
''')
            for r in VFFSL(SL,"results",True): # generated from line 14, col 1
                _v = VFFSL(SL,"r",True) # '$r' on line 15, col 1
                if _v is not None: write(_filter(_v, rawExpr='$r')) # from line 15, col 1.
                write('''
''')
            write('''</table>
<b>Total: ''')
            _v = VFFSL(SL,"total",True) # '$total' on line 18, col 11
            if _v is not None: write(_filter(_v, rawExpr='$total')) # from line 18, col 11.
            write('''</b>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#48
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('''<h1>Your cart currently contains:</h1>
<a class="close" href="javascript:window.close()">X</a>
<form action="/addtocart">
<table>
''')
        for q in VFFSL(SL,"quantities",True): # generated from line 13, col 1
            write('''<tr><td><input type="text" width="3" name="select_x_like_''')
            _v = VFN(VFFSL(SL,"q",True)[0],"id",True) # '${q[0].id}' on line 14, col 58
            if _v is not None: write(_filter(_v, rawExpr='${q[0].id}')) # from line 14, col 58.
            write('''" value="''')
            _v = VFFSL(SL,"q",True)[1] # '${q[1]}' on line 14, col 77
            if _v is not None: write(_filter(_v, rawExpr='${q[1]}')) # from line 14, col 77.
            write('''" /></td><td>''')
            _v = VFN(VFFSL(SL,"q",True)[0],"title.booktitle",True) # '${q[0].title.booktitle}' on line 14, col 97
            if _v is not None: write(_filter(_v, rawExpr='${q[0].title.booktitle}')) # from line 14, col 97.
            write('''</td></tr>
''')
        write('''</table>
<input type="hidden" name="reset_quantities" value="true" />
<input class="submit-inline" type="submit" name="update" value="update quantities"/>
<input class="submit-inline" type="submit" name="checkout" value="checkout" />
</form>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#49
0
    def writeHeadTag(self,
            trans=None,
            dummyTrans=False,
            VFS=valueFromSearchList,
            VFN=valueForName,
            getmtime=getmtime,
            currentTime=time.time,
            globals=globals,
            locals=locals,
            __builtin__=__builtin__):


        """
        Generated from #block writeHeadTag at line 22, col 1.
        """

        if not trans:
            trans = DummyTransaction()
            dummyTrans = True
        write = trans.response().write
        SL = self._searchList
        filter = self._currentFilter
        globalSetVars = self._globalSetVars
        
        ########################################
        ## START - generated method body
        
        write('<head>\n<title>')
        write(filter(VFS(SL + [globals(), __builtin__],"title",1), rawExpr='$title')) # from line 24, col 8.
        write('</title>\n')
        write(filter(VFS(SL + [globals(), __builtin__],"metaTags",1), rawExpr='$metaTags')) # from line 25, col 1.
        write(' \n')
        write(filter(VFS(SL + [globals(), __builtin__],"stylesheetTags",1), rawExpr='$stylesheetTags')) # from line 26, col 1.
        write(' \n')
        write(filter(VFS(SL + [globals(), __builtin__],"javascriptTags",1), rawExpr='$javascriptTags')) # from line 27, col 1.
        write('\n</head>\n')
        
        ########################################
        ## END - generated method body
        
        if dummyTrans:
            return trans.response().getvalue()
        else:
            return ""
    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('''<h1>Reports</h1>
<ul>
''')
        for r in VFFSL(SL,"reports",True): # generated from line 11, col 1
            write('''<li><a href="/report?reportname=''')
            _v = VFFSL(SL,"r",True)['action'] # "${r['action']}" on line 12, col 33
            if _v is not None: write(_filter(_v, rawExpr="${r['action']}")) # from line 12, col 33.
            write('''">''')
            _v = VFFSL(SL,"r",True)['name'] # "${r['name']}" on line 12, col 49
            if _v is not None: write(_filter(_v, rawExpr="${r['name']}")) # from line 12, col 49.
            write('''</a></li>
''')
        write('''</ul>

''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
    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('''<h1>Kinds</h1>
<ul>
''')
        for k in VFFSL(SL,"kinds",True): # generated from line 11, col 1
            write('''<li><a href="/kindedit?id=''')
            _v = VFFSL(SL,"k.id",True) # '$k.id' on line 12, col 27
            if _v is not None: write(_filter(_v, rawExpr='$k.id')) # from line 12, col 27.
            write('''">''')
            _v = VFFSL(SL,"k.kindName",True) # '$k.kindName' on line 12, col 34
            if _v is not None: write(_filter(_v, rawExpr='$k.kindName')) # from line 12, col 34.
            write('''</></li>
''')
        write('''</ul>
<a href="/kindedit">Add a new kind of item</a>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#52
0
    def getTargetFileName(self,
            trans=None,
            dummyTrans=False,
            VFS=valueFromSearchList,
            VFN=valueForName,
            getmtime=getmtime,
            currentTime=time.time,
            globals=globals,
            locals=locals,
            __builtin__=__builtin__):


        """
        Generated from #def getTargetFileName(): src/Boo/Ast/${item.name}.cs at line 1, col 1.
        """

        if not trans:
            trans = DummyTransaction()
            dummyTrans = True
        write = trans.response().write
        SL = self._searchList
        filter = self._currentFilter
        globalSetVars = self._globalSetVars
        
        ########################################
        ## START - generated method body
        
        write('src/Boo/Ast/')
        write(filter(VFS(SL + [globals(), __builtin__],"item.name",True), rawExpr='${item.name}')) # from line 1, col 13.
        write('.cs')
        
        ########################################
        ## END - generated method body
        
        if dummyTrans:
            return trans.response().getvalue()
        else:
            return ""
    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
        
        for t in VFFSL(SL,"titles",True): # generated from line 1, col 1
            write('''| ''')
            _v = VFFSL(SL,"t.booktitle",True) # '$t.booktitle' on line 2, col 3
            if _v is not None: write(_filter(_v, rawExpr='$t.booktitle')) # from line 2, col 3.
            write(''' | ''')
            _v = VFFSL(SL,"t.isbn",True) # '$t.isbn' on line 2, col 18
            if _v is not None: write(_filter(_v, rawExpr='$t.isbn')) # from line 2, col 18.
            write(''' | ''')
            _v = VFFSL(SL,"t.highest_price_book.listprice",True) # '$t.highest_price_book.listprice' on line 2, col 28
            if _v is not None: write(_filter(_v, rawExpr='$t.highest_price_book.listprice')) # from line 2, col 28.
            write(''' |<br />

''')
        write('''
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#54
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('<head>\n<title>')
        _v = VFFSL(SL,"title",True) # '$title' on line 24, col 8
        if _v is not None: write(_filter(_v, rawExpr='$title')) # from line 24, col 8.
        write('</title>\n')
        _v = VFFSL(SL,"metaTags",True) # '$metaTags' on line 25, col 1
        if _v is not None: write(_filter(_v, rawExpr='$metaTags')) # from line 25, col 1.
        write(' \n')
        _v = VFFSL(SL,"stylesheetTags",True) # '$stylesheetTags' on line 26, col 1
        if _v is not None: write(_filter(_v, rawExpr='$stylesheetTags')) # from line 26, col 1.
        write(' \n')
        _v = VFFSL(SL,"javascriptTags",True) # '$javascriptTags' on line 27, col 1
        if _v is not None: write(_filter(_v, rawExpr='$javascriptTags')) # from line 27, col 1.
        write('\n</head>\n')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#55
0
文件: new.py 项目: lzimm/pervurs
    def scripts(self, **KWS):



        ## CHEETAH: generated from #block scripts 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('''
<script type="text/javascript" src="/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( \'body\' ) ;
oFCKeditor.BasePath = "/fckeditor/";
oFCKeditor.ReplaceTextarea();
}
</script>

''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#56
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>
<title>''')
        _v = VFFSL(SL,"pagetitle",True) # '$pagetitle' on line 3, col 8
        if _v is not None: write(_filter(_v, rawExpr='$pagetitle')) # from line 3, col 8.
        write('''</title></head>
<script src="/javascript/sorttable.js"></script>
<script src="/javascript/functions.js"></script>


  <!-- calendar stylesheet -->
  <link rel="stylesheet" type="text/css" media="all" href="/style/calendar-win2k-cold-1.css" title="win2k-cold-1" />

  <!-- main calendar program -->
  <script type="text/javascript" src="/javascript/calendar.js"></script>

  <!-- language for the calendar -->
  <script type="text/javascript" src="/javascript/calendar-en.js"></script>

  <!-- the following script defines the Calendar.setup helper function, which makes
       adding a calendar a matter of 1 or 2 lines of code. -->
  <script type="text/javascript" src="/javascript/calendar-setup.js"></script>

<link href="/style/main.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<ul class="toolbar">
<li><a href="/search">Search the inventory</a></li>
<li><a href="/kindlist">Manage "Kinds" of items</a></li>
<li><a href="/reports">Get reports</a></li>
<li><a href="/transactions">Review Transactions</a></li>
</ul>
''')
        if VFFSL(SL,"lastsearch",True): # generated from line 30, col 1
            write('''<a href="''')
            _v = VFFSL(SL,"lastsearch",True) # '$lastsearch' on line 31, col 10
            if _v is not None: write(_filter(_v, rawExpr='$lastsearch')) # from line 31, col 10.
            write('''">Return to search results...</a>
''')
        write('''<div class="main">
''')
        _v = VFFSL(SL,"body",True) # '$body' on line 34, col 1
        if _v is not None: write(_filter(_v, rawExpr='$body')) # from line 34, col 1.
        write('''
</div>
</body>
</html>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#57
0
    def respond(self,
            trans=None,
            dummyTrans=False,
            VFS=valueFromSearchList,
            VFN=valueForName,
            getmtime=getmtime,
            currentTime=time.time,
            globals=globals,
            locals=locals,
            __builtin__=__builtin__):


        """
        This is the main method generated by Cheetah
        """

        if not trans:
            trans = DummyTransaction()
            dummyTrans = True
        write = trans.response().write
        SL = self._searchList
        filter = self._currentFilter
        globalSetVars = self._globalSetVars
        
        ########################################
        ## START - generated method body
        
        ## START CACHE REGION: at line, col (6, 1) in the source.
        RECACHE = True
        if not self._cacheData.has_key('56424669'):
            self._cacheIndex['header'] = '56424669'
            pass
        else:
            RECACHE = False
        if RECACHE:
            orig_trans = trans
            trans = cacheCollector = DummyTransaction()
            write = cacheCollector.response().write
            write(filter(VFS(SL + [globals(), __builtin__],"docType",1), rawExpr='$docType')) # from line 7, col 1.
            write('\n')
            write(filter(VFS(SL + [globals(), __builtin__],"htmlTag",1), rawExpr='$htmlTag')) # from line 8, col 1.
            write('''
<!-- This document was autogenerated by Cheetah(http://CheetahTemplate.org). 
Do not edit it directly!

Copyright ''')
            write(filter(VFS(SL + [globals(), __builtin__],"currentYr",1), rawExpr='$currentYr')) # from line 12, col 11.
            write(' - ')
            write(filter(VFS(SL + [globals(), __builtin__],"siteCopyrightName",1), rawExpr='$siteCopyrightName')) # from line 12, col 24.
            write(' - All Rights Reserved.\nFeel free to copy any javascript or html you like on this site,\nprovided you remove all links and/or references to ')
            write(filter(VFS(SL + [globals(), __builtin__],"siteDomainName",1), rawExpr='$siteDomainName')) # from line 14, col 52.
            write('''
However, please do not copy any content or images without permission.

''')
            write(filter(VFS(SL + [globals(), __builtin__],"siteCredits",1), rawExpr='$siteCredits')) # from line 17, col 1.
            write('''

-->


''')
            self.writeHeadTag(trans=trans) # generated from ('writeHeadTag', '#block writeHeadTag') at line 22, col 1.
            write('\n')
            trans = orig_trans
            write = trans.response().write
            self._cacheData['56424669'] = cacheCollector.response().getvalue()
            del cacheCollector
        write(self._cacheData['56424669'])
        ## END CACHE REGION
        
        write('\n')
        write(filter(VFS(SL + [globals(), __builtin__],"bodyTag",1), rawExpr='$bodyTag')) # from line 34, col 1.
        write('\n\n')
        self.writeBody(trans=trans) # generated from ('writeBody', '#block writeBody') at line 36, col 1.
        write('''
</body>
</html>



''')
        
        ########################################
        ## END - generated method body
        
        if dummyTrans:
            return trans.response().getvalue()
        else:
            return ""
示例#58
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('''





''')
        if VFFSL(SL,"isigb",True): # generated from line 22, col 1
            write('''<html>
''')
        else: # generated from line 24, col 1
            write('''<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
''')
        write('''
<head>
''')
        if VFFSL(SL,"isigb",True): # generated from line 33, col 1
            write('''
''')
        else: # generated from line 35, col 1
            write('''  <link href="/style.css" rel="stylesheet" type="text/css" />
''')
        write('''
  <title>
''')
        self._title(trans=trans)
        write('''</title>

</head>

<body>


''')
        if VFFSL(SL,"isigb",True): # generated from line 50, col 1
            write('''<a href="/">EVE-Central.com Home</a>

<br />
''')
        else: # generated from line 54, col 1
            write('''<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-84549-2";
urchinTracker();
</script>


''')
        write('''
''')
        self._banner(trans=trans)
        write('''
''')
        if VFFSL(SL,"isigb",True): # generated from line 69, col 1
            write('''
''')
        else: # generated from line 71, col 1
            write('''
''')
        _v = VFFSL(SL,"body",True) # '$body' on line 74, col 1
        if _v is not None: write(_filter(_v, rawExpr='$body')) # from line 74, col 1.
        write('''



<hr noshade="1"/>
<p>


''')
        n = gmt()
        write('''

<br />

</p>
</body>
</html>
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#59
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("""<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns='http://www.w3.org/2005/Atom'
\txmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'>
\t<title type='text'>""")
        _v = VFSL([locals()]+SL+[globals(), __builtin__],"atom.title",True) # '$atom.title' on line 4, col 21
        if _v is not None: write(_filter(_v, rawExpr='$atom.title')) # from line 4, col 21.
        write('''</title>
\t<author>
\t\t<name>''')
        _v = VFSL([locals()]+SL+[globals(), __builtin__],"atom.gmail",True) # '$atom.gmail' on line 6, col 9
        if _v is not None: write(_filter(_v, rawExpr='$atom.gmail')) # from line 6, col 9.
        write('''</name>
\t\t<email>''')
        _v = VFSL([locals()]+SL+[globals(), __builtin__],"atom.gmail",True) # '$atom.gmail' on line 7, col 10
        if _v is not None: write(_filter(_v, rawExpr='$atom.gmail')) # from line 7, col 10.
        write("""</email>
\t</author>
\t<generator version='1.0' uri='http://www.google.com/notebook'>
\t\tGoogle Notebook
\t</generator>
\t<entry>
\t\t<id>tid</id>
\t\t<category scheme='http://schemas.google.com/g/2005#kind'
\t\t\tterm='http://schemas.google.com/notebook/2008/kind#section' />
\t\t<title type='text'></title>
\t\t<content type='text'></content>
\t</entry>
""")
        for wzNote in VFSL([locals()]+SL+[globals(), __builtin__],"atom.wzNotes",True): # generated from line 19, col 2
            write('''\t<entry>
\t\t<updated>''')
            _v = VFSL([locals()]+SL+[globals(), __builtin__],"wzNote.updateTime",True) # '$wzNote.updateTime' on line 21, col 12
            if _v is not None: write(_filter(_v, rawExpr='$wzNote.updateTime')) # from line 21, col 12.
            write("""</updated>
\t\t<category scheme='http://schemas.google.com/g/2005#kind'
\t\t\tterm='http://schemas.google.com/notebook/2008/kind#note' />
\t\t<category
\t\t\tscheme='http://schemas.google.com/notebook/gdata/2007/section'
\t\t\tterm='tid' label='' />
""")
            for tag in VFSL([locals()]+SL+[globals(), __builtin__],"wzNote.tags",True): # generated from line 27, col 3
                write("""\t\t<category scheme='http://schemas.google.com/g/2005/label'
\t\t\tterm='""")
                _v = VFSL([locals()]+SL+[globals(), __builtin__],"tag",True) # '$tag' on line 29, col 10
                if _v is not None: write(_filter(_v, rawExpr='$tag')) # from line 29, col 10.
                write("""' />
""")
            write("""\t\t<title type='text'>""")
            _v = VFSL([locals()]+SL+[globals(), __builtin__],"wzNote.title",True) # '$wzNote.title' on line 31, col 22
            if _v is not None: write(_filter(_v, rawExpr='$wzNote.title')) # from line 31, col 22.
            write("""</title>
\t\t<content type='html'>""")
            _v = VFSL([locals()]+SL+[globals(), __builtin__],"wzNote.abstract",True) # '$wzNote.abstract' on line 32, col 24
            if _v is not None: write(_filter(_v, rawExpr='$wzNote.abstract')) # from line 32, col 24.
            write("""</content>
\t\t<link rel='related' type='text/html'
\t\t\thref='""")
            _v = VFSL([locals()]+SL+[globals(), __builtin__],"wzNote.url",True) # '$wzNote.url' on line 34, col 10
            if _v is not None: write(_filter(_v, rawExpr='$wzNote.url')) # from line 34, col 10.
            write("""'
\t\t\ttitle='""")
            _v = VFSL([locals()]+SL+[globals(), __builtin__],"wzNote.title",True) # '$wzNote.title' on line 35, col 11
            if _v is not None: write(_filter(_v, rawExpr='$wzNote.title')) # from line 35, col 11.
            write("""' />
\t\t<author>
\t\t\t<name>""")
            _v = VFSL([locals()]+SL+[globals(), __builtin__],"atom.gmail",True) # '$atom.gmail' on line 37, col 10
            if _v is not None: write(_filter(_v, rawExpr='$atom.gmail')) # from line 37, col 10.
            write('''</name>
\t\t</author>
\t</entry>
''')
        write('''</feed>''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""