2 # -*- coding: utf-8 -*-
7 ##################################################
13 import builtins as builtin
15 import __builtin__ as builtin
16 from os.path import getmtime, exists
19 from Cheetah.Version import MinCompatibleVersion as RequiredCheetahVersion
20 from Cheetah.Version import MinCompatibleVersionTuple as RequiredCheetahVersionTuple
21 from Cheetah.Template import Template
22 from Cheetah.DummyTransaction import *
23 from Cheetah.NameMapper import NotFound, valueForName, valueFromSearchList, valueFromFrameOrSearchList
24 from Cheetah.CacheRegion import CacheRegion
25 import Cheetah.Filters as Filters
26 import Cheetah.ErrorCatchers as ErrorCatchers
27 from Cheetah.compat import unicode
29 ##################################################
31 VFFSL=valueFromFrameOrSearchList
32 VFSL=valueFromSearchList
35 __CHEETAH_version__ = '3.2.6'
36 __CHEETAH_versionTuple__ = (3, 2, 6, 'final', 0)
37 __CHEETAH_genTime__ = 1608677601.931249
38 __CHEETAH_genTimestamp__ = 'Wed Dec 23 01:53:21 2020'
39 __CHEETAH_src__ = 'layout.tmpl'
40 __CHEETAH_srcLastModified__ = 'Wed Dec 23 01:52:26 2020'
41 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
43 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
45 'This template was compiled with Cheetah version'
46 ' %s. Templates compiled before version %s must be recompiled.'%(
47 __CHEETAH_version__, RequiredCheetahVersion))
49 ##################################################
52 class layout(Template):
54 ##################################################
55 ## CHEETAH GENERATED METHODS
58 def __init__(self, *args, **KWs):
60 super(layout, self).__init__(*args, **KWs)
61 if not self._CHEETAH__instanceInitialized:
63 allowedKWs = 'searchList namespaces filter filtersLib errorCatcher'.split()
64 for k,v in KWs.items():
65 if k in allowedKWs: cheetahKWArgs[k] = v
66 self._initCheetahInstance(**cheetahKWArgs)
69 def respond(self, trans=None):
73 ## CHEETAH: main method generated for this template
74 if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
75 trans = self.transaction # is None unless self.awake() was called
77 trans = DummyTransaction()
79 else: _dummyTrans = False
80 write = trans.response().write
81 SL = self._CHEETAH__searchList
82 _filter = self._CHEETAH__currentFilter
84 ########################################
85 ## START - generated method body
87 write(u'''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
88 "http://www.w3.org/TR/html4/loose.dtd">
90 <!-- THIS PAGE IS AUTOMATICALLY GENERATED USING CheetahTemplate. DO NOT EDIT. -->
92 <meta HTTP-Equiv="Content-Type" content="text/html; charset=utf-8">
94 _v = VFFSL(SL,"title",True) # u'$title' on line 9, col 8
95 if _v is not None: write(_filter(_v, rawExpr=u'$title')) # from line 9, col 8.
96 write(u''' \u2014 m_Librarian</title>
97 <meta name="author" content="Oleg Broytman">
98 <meta name="copyright" content="© 2018 PhiloSoft Design">
99 <link rev="made" href="mailto:phd@phdru.name">
100 <meta name="generator" content="CheetahTemplate">
101 <meta name="MSSmartTagsPreventParsing" content="TRUE"> <!-- MUST DIE -->
102 <link rel="stylesheet" type="text/css" media="screen" href="/static/style.css">
104 <body bgcolor="#FFFFFF" text="#000000"
105 link="#0000bb" vlink="#551a8b" alink="#ff0000">
106 <table style="width: 100%">
107 <tr style="width: 100%">
108 <td style="width: 50%"><p><a href="/">m_Librarian</a></p></td>
109 <td style="width: 50%; text-align: right"><a href="/quit">\u0412\u044b\u0445\u043e\u0434</a></td>
113 _v = VFFSL(SL,"body",True) # u'$body' on line 25, col 1
114 if _v is not None: write(_filter(_v, rawExpr=u'$body')) # from line 25, col 1.
120 ########################################
121 ## END - generated method body
123 return _dummyTrans and trans.response().getvalue() or ""
125 ##################################################
126 ## CHEETAH GENERATED ATTRIBUTES
129 _CHEETAH__instanceInitialized = False
131 _CHEETAH_version = __CHEETAH_version__
133 _CHEETAH_versionTuple = __CHEETAH_versionTuple__
135 _CHEETAH_genTime = __CHEETAH_genTime__
137 _CHEETAH_genTimestamp = __CHEETAH_genTimestamp__
139 _CHEETAH_src = __CHEETAH_src__
141 _CHEETAH_srcLastModified = __CHEETAH_srcLastModified__
145 _mainCheetahMethod_for_layout = 'respond'
147 ## END CLASS DEFINITION
149 if not hasattr(layout, '_initCheetahAttributes'):
150 templateAPIClass = getattr(layout,
151 '_CHEETAH_templateClass',
153 templateAPIClass._addCheetahPlumbingCodeToClass(layout)
156 # CHEETAH was developed by Tavis Rudd and Mike Orr
157 # with code, advice and input from many other volunteers.
158 # For more information visit https://cheetahtemplate.org/
160 ##################################################
161 ## if run from command line:
162 if __name__ == '__main__':
163 from Cheetah.TemplateCmdLineIface import CmdLineIface
164 CmdLineIface(templateObj=layout()).run()