All pastes #275194 Raw Edit

Someone

public text v1 · immutable
·published 2006-12-11 09:35 UTC
rendered paste body
2006/12/11 06:31 -0400 [-] Cheetah was trying to execute the following code but Python found a syntax error in it:
2006/12/11 06:31 -0400 [-]
2006/12/11 06:31 -0400 [-] def respond(self,
2006/12/11 06:31 -0400 [-]             trans=None,
2006/12/11 06:31 -0400 [-]             dummyTrans=False,
2006/12/11 06:31 -0400 [-]             VFFSL=valueFromFrameOrSearchList,
2006/12/11 06:31 -0400 [-]             VFN=valueForName,
2006/12/11 06:31 -0400 [-]             getmtime=getmtime,
2006/12/11 06:31 -0400 [-]             currentTime=time.time):
2006/12/11 06:31 -0400 [-]
2006/12/11 06:31 -0400 [-]
2006/12/11 06:31 -0400 [-]         """
2006/12/11 06:31 -0400 [-]         This is the main method generated by Cheetah
2006/12/11 06:31 -0400 [-]         """
2006/12/11 06:31 -0400 [-]
2006/12/11 06:31 -0400 [-]         if not trans:
2006/12/11 06:31 -0400 [-]             trans = DummyTransaction()
2006/12/11 06:31 -0400 [-]             dummyTrans = True
2006/12/11 06:31 -0400 [-]         write = trans.response().write
2006/12/11 06:31 -0400 [-]         SL = self._searchList
2006/12/11 06:31 -0400 [-]         filter = self._currentFilter
2006/12/11 06:31 -0400 [-]         globalSetVars = self._globalSetVars
2006/12/11 06:31 -0400 [-]
2006/12/11 06:31 -0400 [-]         ########################################
2006/12/11 06:31 -0400 [-]         ## START - generated method body
2006/12/11 06:31 -0400 [-]
2006/12/11 06:31 -0400 [-]         write(u'<html>\r\n<body>\r\n')
2006/12/11 06:31 -0400 [-]         write(filter(VFFSL(SL,"Document",True) Content, rawExpr=u'${Document Content}')) # from line 3, col 1.
2006/12/11 06:31 -0400 [-]         write(u'\r\n</body>\r\n</html>')
2006/12/11 06:31 -0400 [-]
2006/12/11 06:31 -0400 [-]         ########################################
2006/12/11 06:31 -0400 [-]         ## END - generated method body
2006/12/11 06:31 -0400 [-]
2006/12/11 06:31 -0400 [-]         if dummyTrans:
2006/12/11 06:31 -0400 [-]             return trans.response().getvalue()
2006/12/11 06:31 -0400 [-]         else:
2006/12/11 06:31 -0400 [-]             return ""

2006/12/11 06:31 -0400 [-] Unhandled Error
        Traceback (most recent call last):
          File "/home/ed/monkey-3.0/Twisted/twisted/application/app.py", line 129, in runReactorWithLogging
            reactor.run()
          File "/home/ed/monkey-3.0/Twisted/twisted/internet/posixbase.py", line 218, in run
            self.mainLoop()
          File "/home/ed/monkey-3.0/Twisted/twisted/internet/posixbase.py", line 226, in mainLoop
            self.runUntilCurrent()
          File "/home/ed/monkey-3.0/Twisted/twisted/internet/base.py", line 561, in runUntilCurrent
            call.func(*call.args, **call.kw)
        --- <exception caught here> ---
          File "/home/ed/monkey-3.0/Divmod/Epsilon/epsilon/cooperator.py", line 65, in _tick
            result = iterator.next()
          File "/home/ed/monkey-3.0/Monkey/monkey/code/output/job.py", line 230, in runJob
            output)
          File "/home/ed/monkey-3.0/Monkey/monkey/code/output/target.py", line 109, in send
            content = self.template.publishFromContent(
          File "/home/ed/monkey-3.0/Monkey/monkey/code/output/sitemplate.py", line 97, in publishFromContent
            return self.publish(self.content, doc, mediaLinker=mediaLinker)
          File "/home/ed/monkey-3.0/Monkey/monkey/code/output/sitemplate.py", line 116, in publish
            searchList = [wrapper])
          File "/usr/lib/python2.4/site-packages/Cheetah/Template.py", line 165, in __init__
            self.compile(source, file)
          File "/usr/lib/python2.4/site-packages/Cheetah/Template.py", line 233, in compile
            compiler.compile()
          File "/usr/lib/python2.4/site-packages/Cheetah/Compiler.py", line 1179, in compile
            self._swallowClassCompiler(self._popActiveClassCompiler())
          File "/usr/lib/python2.4/site-packages/Cheetah/Compiler.py", line 1205, in _swallowClassCompiler
            classCompiler.cleanupState()
          File "/usr/lib/python2.4/site-packages/Cheetah/Compiler.py", line 733, in cleanupState
            self._swallowMethodCompiler(methCompiler)
          File "/usr/lib/python2.4/site-packages/Cheetah/Compiler.py", line 827, in _swallowMethodCompiler
            self._templateObj._bindCompiledMethod(methodCompiler)
          File "/usr/lib/python2.4/site-packages/Cheetah/Template.py", line 345, in _bindCompiledMethod
            exec genCode                    # in this namespace!!
        exceptions.SyntaxError: invalid syntax (line 26)