示例#1
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 ""
示例#2
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 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 ""
示例#4
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 ""
示例#5
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 ""
示例#6
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

        # List all reports. Reports are enabled in etc.py by
        # adding the class name to the reports array in etc.py
        # The report templates themselves live in the reports folder
        write("""


""")

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#7
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 ""
示例#8
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 ""
示例#9
0
    def title(self, **KWS):

        ## CHEETAH: generated from #def title at line 9, 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'''Untitled
''')

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#10
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

        # Tried making search template subclassable
        # Cheetah did not seem to like #if $table_is_form when in #for loop
        write("""



""")

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#11
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 ""
示例#12
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 ""
    def pagetitle(self, **KWS):

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

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#14
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

        _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 ""
示例#15
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 ""
    def pagetitle(self, **KWS):

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

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

        return _dummyTrans and trans.response().getvalue() or ""
    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

        # edit information for a particular title
        # linked classes, like author and book appear and
        # are editable by links to thier own templates
        write("""




""")

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#18
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("""This is a test template
""")

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

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



        ## CHEETAH: generated from #def captureAfterLastSpecification 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('''CAPTURE AFTER LAST SPECIFICATION
''')
        
        ########################################
        ## END - generated method body
        
        return _dummyTrans and trans.response().getvalue() or ""
示例#20
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

        # Edit Special Order information
        write(
            """



"""
        )

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

        return _dummyTrans and trans.response().getvalue() or ""
    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

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

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#22
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 ""
    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

        # Report Template for actuall laying out report form
        # and its results. The specifics of a report are laid
        # out by subclassing reports.report Report.
        write("""



""")

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

        return _dummyTrans and trans.response().getvalue() or ""
示例#24
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 ""
示例#25
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 ""
示例#26
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 ""
示例#27
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 ""
示例#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'''<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 ""
示例#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'''#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 ""
示例#30
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 ""