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 campopener.templates.Site import Site
28
##################################################
30
VFFSL=valueFromFrameOrSearchList
31
VFSL=valueFromSearchList
34
__CHEETAH_version__ = '2.4.3'
35
__CHEETAH_versionTuple__ = (2, 4, 3, 'development', 0)
36
__CHEETAH_genTime__ = 1289113167.789
37
__CHEETAH_genTimestamp__ = 'Sun Nov 07 17:59:27 2010'
38
__CHEETAH_src__ = 'campopener\\templates\\people\\Index.tmpl'
39
__CHEETAH_srcLastModified__ = 'Sun Nov 07 17:37:41 2010'
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
##################################################
53
##################################################
54
## CHEETAH GENERATED METHODS
57
def __init__(self, *args, **KWs):
59
super(Index, 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 body(self, **KWS):
72
## CHEETAH: generated from #def body at line 4, col 1.
73
trans = KWS.get("trans")
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'''<div id="content">
93
_v = VFSL([locals()]+SL+[globals(), builtin],"url",False)(controller='people',action='list') # u"$url(controller='people',action='list')" on line 10, col 18
94
if _v is not None: write(_filter(_v, rawExpr=u"$url(controller='people',action='list')")) # from line 10, col 18.
95
write(u'''">List all people</a></li>
97
_v = VFSL([locals()]+SL+[globals(), builtin],"url",False)(controller='people',action='edit') # u"$url(controller='people',action='edit')" on line 11, col 18
98
if _v is not None: write(_filter(_v, rawExpr=u"$url(controller='people',action='edit')")) # from line 11, col 18.
99
write(u'''">Add person</a></li>
101
<div id="mainPageContent">
102
<div id="peopleActions">
103
<div id="peopleText">
106
<p>Description of things that can be done with "People". Eg. Add/Remove campers, update camper details, roles, etc.</p>\t\t
110
<a href="">Add Camper</a>
113
<a href="">Add Leader</a>
118
<div id="actionPane">
122
_v = VFSL([locals()]+SL+[globals(), builtin],"url",False)(controller='people',action='edit') # u"$url(controller='people',action='edit')" on line 33, col 22
123
if _v is not None: write(_filter(_v, rawExpr=u"$url(controller='people',action='edit')")) # from line 33, col 22.
124
write(u'''">Add Camper</a></li>
126
_v = VFSL([locals()]+SL+[globals(), builtin],"url",False)(controller='people',action='edit') # u"$url(controller='people',action='edit')" on line 34, col 22
127
if _v is not None: write(_filter(_v, rawExpr=u"$url(controller='people',action='edit')")) # from line 34, col 22.
128
write(u'''">Add Leader</a></li>
133
<p>Highlighted actions that need to be done:</p>
135
<li>Add Campers & Leaders</li>
136
<li>Fill out roles </li>
137
<li>Sort into gropus</li>
142
_v = VFSL([locals()]+SL+[globals(), builtin],"search",True) # u'$search' on line 47, col 5
143
if _v is not None: write(_filter(_v, rawExpr=u'$search')) # from line 47, col 5.
148
<li><a>Campers:</a></li>
149
<li><a>Groups:</a></li>
150
<li><a>Unpaid Campers:</a></li>
156
########################################
157
## END - generated method body
159
return _dummyTrans and trans.response().getvalue() or ""
162
def writeBody(self, **KWS):
166
## CHEETAH: main method generated for this template
167
trans = KWS.get("trans")
168
if (not trans and not self._CHEETAH__isBuffering and not callable(self.transaction)):
169
trans = self.transaction # is None unless self.awake() was called
171
trans = DummyTransaction()
173
else: _dummyTrans = False
174
write = trans.response().write
175
SL = self._CHEETAH__searchList
176
_filter = self._CHEETAH__currentFilter
178
########################################
179
## START - generated method body
184
########################################
185
## END - generated method body
187
return _dummyTrans and trans.response().getvalue() or ""
189
##################################################
190
## CHEETAH GENERATED ATTRIBUTES
193
_CHEETAH__instanceInitialized = False
195
_CHEETAH_version = __CHEETAH_version__
197
_CHEETAH_versionTuple = __CHEETAH_versionTuple__
199
_CHEETAH_genTime = __CHEETAH_genTime__
201
_CHEETAH_genTimestamp = __CHEETAH_genTimestamp__
203
_CHEETAH_src = __CHEETAH_src__
205
_CHEETAH_srcLastModified = __CHEETAH_srcLastModified__
207
_mainCheetahMethod_for_Index= 'writeBody'
209
## END CLASS DEFINITION
211
if not hasattr(Index, '_initCheetahAttributes'):
212
templateAPIClass = getattr(Index, '_CHEETAH_templateClass', Template)
213
templateAPIClass._addCheetahPlumbingCodeToClass(Index)
216
# CHEETAH was developed by Tavis Rudd and Mike Orr
217
# with code, advice and input from many other volunteers.
218
# For more information visit http://www.CheetahTemplate.org/
220
##################################################
221
## if run from command line:
222
if __name__ == '__main__':
223
from Cheetah.TemplateCmdLineIface import CmdLineIface
224
CmdLineIface(templateObj=Index()).run()