6 ##################################################
12 import builtins as builtin
14 import __builtin__ as builtin
15 from os.path import getmtime, exists
18 from Cheetah.Version import MinCompatibleVersion as RequiredCheetahVersion
19 from Cheetah.Version import MinCompatibleVersionTuple as RequiredCheetahVersionTuple
20 from Cheetah.Template import Template
21 from Cheetah.DummyTransaction import *
22 from Cheetah.NameMapper import NotFound, valueForName, valueFromSearchList, valueFromFrameOrSearchList
23 from Cheetah.CacheRegion import CacheRegion
24 import Cheetah.Filters as Filters
25 import Cheetah.ErrorCatchers as ErrorCatchers
26 from Cheetah.compat import unicode
28 ##################################################
30 VFFSL=valueFromFrameOrSearchList
31 VFSL=valueFromSearchList
34 __CHEETAH_version__ = '3.1.0'
35 __CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1)
36 __CHEETAH_genTime__ = 1522609587.049776
37 __CHEETAH_genTimestamp__ = 'Sun Apr 1 22:06:27 2018'
38 __CHEETAH_src__ = 'layout.tmpl'
39 __CHEETAH_srcLastModified__ = 'Sun Apr 1 22:06:06 2018'
40 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
42 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
44 'This template was compiled with Cheetah version'
45 ' %s. Templates compiled before version %s must be recompiled.'%(
46 __CHEETAH_version__, RequiredCheetahVersion))
48 ##################################################
51 class layout(Template):
53 ##################################################
54 ## CHEETAH GENERATED METHODS
57 def __init__(self, *args, **KWs):
59 super(layout, self).__init__(*args, **KWs)
60 if not self._CHEETAH__instanceInitialized:
62 allowedKWs = 'searchList namespaces filter filtersLib errorCatcher'.split()
63 for k,v in KWs.items():
64 if k in allowedKWs: cheetahKWArgs[k] = v
65 self._initCheetahInstance(**cheetahKWArgs)
68 def respond(self, trans=None):
72 ## CHEETAH: main method generated for this template
73 if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
74 trans = self.transaction # is None unless self.awake() was called
76 trans = DummyTransaction()
78 else: _dummyTrans = False
79 write = trans.response().write
80 SL = self._CHEETAH__searchList
81 _filter = self._CHEETAH__currentFilter
83 ########################################
84 ## START - generated method body
86 write(u'''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
87 "http://www.w3.org/TR/html4/loose.dtd">
89 <!-- THIS PAGE IS AUTOMATICALLY GENERATED USING CheetahTemplate. DO NOT EDIT. -->
91 <meta HTTP-Equiv="Content-Type" content="text/html">
93 _v = VFFSL(SL,"title",True) # u'$title' on line 8, col 8
94 if _v is not None: write(_filter(_v, rawExpr=u'$title')) # from line 8, col 8.
96 <meta name="author" content="Oleg Broytman">
97 <meta name="copyright" content="© 2018 PhiloSoft Design">
98 <link rev="made" href="mailto:phd@phdru.name">
99 <meta name="generator" content="CheetahTemplate">
100 <meta name="MSSmartTagsPreventParsing" content="TRUE"> <!-- MUST DIE -->
102 <body bgcolor="#CCCCCC" text="#000000"
103 link="#0000bb" vlink="#551a8b" alink="#ff0000">
105 _v = VFFSL(SL,"body",True) # u'$body' on line 17, col 1
106 if _v is not None: write(_filter(_v, rawExpr=u'$body')) # from line 17, col 1.
112 ########################################
113 ## END - generated method body
115 return _dummyTrans and trans.response().getvalue() or ""
117 ##################################################
118 ## CHEETAH GENERATED ATTRIBUTES
121 _CHEETAH__instanceInitialized = False
123 _CHEETAH_version = __CHEETAH_version__
125 _CHEETAH_versionTuple = __CHEETAH_versionTuple__
127 _CHEETAH_genTime = __CHEETAH_genTime__
129 _CHEETAH_genTimestamp = __CHEETAH_genTimestamp__
131 _CHEETAH_src = __CHEETAH_src__
133 _CHEETAH_srcLastModified = __CHEETAH_srcLastModified__
137 _mainCheetahMethod_for_layout = 'respond'
139 ## END CLASS DEFINITION
141 if not hasattr(layout, '_initCheetahAttributes'):
142 templateAPIClass = getattr(layout,
143 '_CHEETAH_templateClass',
145 templateAPIClass._addCheetahPlumbingCodeToClass(layout)
148 # CHEETAH was developed by Tavis Rudd and Mike Orr
149 # with code, advice and input from many other volunteers.
150 # For more information visit http://cheetahtemplate.org/
152 ##################################################
153 ## if run from command line:
154 if __name__ == '__main__':
155 from Cheetah.TemplateCmdLineIface import CmdLineIface
156 CmdLineIface(templateObj=layout()).run()