X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/5fe97edbbea790fb629df9dbf0737d2996f18335..b6054ddecbc4d4a9b8e822ff8f0ace386e5e6e00:/templates/skeleton.py diff --git a/templates/skeleton.py b/templates/skeleton.py index fd30729..b2643b4 100644 --- a/templates/skeleton.py +++ b/templates/skeleton.py @@ -20,6 +20,7 @@ from Cheetah.NameMapper import NotFound, valueForName, valueFromSearchList, valu from Cheetah.CacheRegion import CacheRegion import Cheetah.Filters as Filters import Cheetah.ErrorCatchers as ErrorCatchers +from functions import functions ################################################## ## MODULE CONSTANTS @@ -33,10 +34,10 @@ VFN=valueForName currentTime=time.time __CHEETAH_version__ = '2.0rc8' __CHEETAH_versionTuple__ = (2, 0, 0, 'candidate', 8) -__CHEETAH_genTime__ = 1192025116.0694621 -__CHEETAH_genTimestamp__ = 'Wed Oct 10 10:05:16 2007' +__CHEETAH_genTime__ = 1192883107.2947011 +__CHEETAH_genTimestamp__ = 'Sat Oct 20 08:25:07 2007' __CHEETAH_src__ = 'skeleton.tmpl' -__CHEETAH_srcLastModified__ = 'Wed Oct 10 10:04:55 2007' +__CHEETAH_srcLastModified__ = 'Sat Oct 20 08:22:11 2007' __CHEETAH_docstring__ = 'Autogenerated by CHEETAH: The Python-Powered Template Engine' if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple: @@ -48,7 +49,7 @@ if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple: ################################################## ## CLASSES -class skeleton(Template): +class skeleton(functions): ################################################## ## CHEETAH GENERATED METHODS @@ -56,7 +57,7 @@ class skeleton(Template): def __init__(self, *args, **KWs): - Template.__init__(self, *args, **KWs) + functions.__init__(self, *args, **KWs) if not self._CHEETAH__instanceInitialized: cheetahKWArgs = {} allowedKWs = 'searchList namespaces filter filtersLib errorCatcher'.split() @@ -65,11 +66,12 @@ class skeleton(Template): self._initCheetahInstance(**cheetahKWArgs) - def respond(self, trans=None): + def full_body(self, **KWS): - ## CHEETAH: main method generated for this template + ## CHEETAH: generated from #def full_body 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: @@ -83,14 +85,18 @@ class skeleton(Template): ######################################## ## START - generated method body - write(''' + write(''' +
STDERR:
''') + _v = VFFSL(SL,"error_text",True) # '$error_text' on line 84, col 20 + if _v is not None: write(_filter(_v, rawExpr='$error_text')) # from line 84, col 20. + write('''''') - if not VFFSL(SL,"varExists",False)('simple') or not VFFSL(SL,"simple",True): # generated from line 25, col 1 + write('''
[You are logged in as ''') - _v = VFFSL(SL,"user.username",True) # '$user.username' on line 26, col 26 - if _v is not None: write(_filter(_v, rawExpr='$user.username')) # from line 26, col 26. + _v = VFFSL(SL,"user.username",True) # '$user.username' on line 89, col 26 + if _v is not None: write(_filter(_v, rawExpr='$user.username')) # from line 89, col 26. write('''.]
+ + + +