]> git.phdru.name Git - m_librarian.git/blob - m_librarian/web/views/layout.py
8bc236ee26976fe999e83f2db543e24759a25657
[m_librarian.git] / m_librarian / web / views / layout.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4
5
6
7 ##################################################
8 ## DEPENDENCIES
9 import sys
10 import os
11 import os.path
12 try:
13     import builtins as builtin
14 except ImportError:
15     import __builtin__ as builtin
16 from os.path import getmtime, exists
17 import time
18 import types
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
28
29 ##################################################
30 ## MODULE CONSTANTS
31 VFFSL=valueFromFrameOrSearchList
32 VFSL=valueFromSearchList
33 VFN=valueForName
34 currentTime=time.time
35 __CHEETAH_version__ = '3.1.0'
36 __CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1)
37 __CHEETAH_genTime__ = 1522960530.67886
38 __CHEETAH_genTimestamp__ = 'Thu Apr  5 23:35:30 2018'
39 __CHEETAH_src__ = 'layout.tmpl'
40 __CHEETAH_srcLastModified__ = 'Thu Apr  5 23:35:06 2018'
41 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
42
43 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
44     raise AssertionError(
45       'This template was compiled with Cheetah version'
46       ' %s. Templates compiled before version %s must be recompiled.'%(
47          __CHEETAH_version__, RequiredCheetahVersion))
48
49 ##################################################
50 ## CLASSES
51
52 class layout(Template):
53
54     ##################################################
55     ## CHEETAH GENERATED METHODS
56
57
58     def __init__(self, *args, **KWs):
59
60         super(layout, self).__init__(*args, **KWs)
61         if not self._CHEETAH__instanceInitialized:
62             cheetahKWArgs = {}
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)
67         
68
69     def respond(self, trans=None):
70
71
72
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
76         if not trans:
77             trans = DummyTransaction()
78             _dummyTrans = True
79         else: _dummyTrans = False
80         write = trans.response().write
81         SL = self._CHEETAH__searchList
82         _filter = self._CHEETAH__currentFilter
83         
84         ########################################
85         ## START - generated method body
86         
87         write(u'''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
88    "http://www.w3.org/TR/html4/loose.dtd">
89 <html>
90 <!-- THIS PAGE IS AUTOMATICALLY GENERATED USING CheetahTemplate. DO NOT EDIT. -->
91 <head>
92 <meta HTTP-Equiv="Content-Type" content="text/html; charset=utf-8">
93 <title>''')
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="&copy; 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 </head>
103 <body bgcolor="#FFFFFF" text="#000000"
104       link="#0000bb"  vlink="#551a8b" alink="#ff0000">
105 <table style="width: 100%">
106 <tr style="width: 100%">
107   <td style="width: 50%"><p>m_Librarian</p></td>
108   <td style="width: 50%; text-align: right"><a href="/quit">\u0412\u044b\u0445\u043e\u0434</a></td>
109 </tr>
110 </table>
111 ''')
112         _v = VFFSL(SL,"body",True) # u'$body' on line 24, col 1
113         if _v is not None: write(_filter(_v, rawExpr=u'$body')) # from line 24, col 1.
114         write(u'''
115 </body>
116 </html>
117 ''')
118         
119         ########################################
120         ## END - generated method body
121         
122         return _dummyTrans and trans.response().getvalue() or ""
123         
124     ##################################################
125     ## CHEETAH GENERATED ATTRIBUTES
126
127
128     _CHEETAH__instanceInitialized = False
129
130     _CHEETAH_version = __CHEETAH_version__
131
132     _CHEETAH_versionTuple = __CHEETAH_versionTuple__
133
134     _CHEETAH_genTime = __CHEETAH_genTime__
135
136     _CHEETAH_genTimestamp = __CHEETAH_genTimestamp__
137
138     _CHEETAH_src = __CHEETAH_src__
139
140     _CHEETAH_srcLastModified = __CHEETAH_srcLastModified__
141
142     title = ''
143
144     _mainCheetahMethod_for_layout = 'respond'
145
146 ## END CLASS DEFINITION
147
148 if not hasattr(layout, '_initCheetahAttributes'):
149     templateAPIClass = getattr(layout,
150                                '_CHEETAH_templateClass',
151                                Template)
152     templateAPIClass._addCheetahPlumbingCodeToClass(layout)
153
154
155 # CHEETAH was developed by Tavis Rudd and Mike Orr
156 # with code, advice and input from many other volunteers.
157 # For more information visit http://cheetahtemplate.org/
158
159 ##################################################
160 ## if run from command line:
161 if __name__ == '__main__':
162     from Cheetah.TemplateCmdLineIface import CmdLineIface
163     CmdLineIface(templateObj=layout()).run()
164
165