Okay, I hacked up debugerror.py to not make it die. Now I'm getting  
this as soon as I try to return a rendered template, ie:

...
tmpl = web.template.render("templates/")
...
return tmpl.index(...)

Resulting in:
Traceback (most recent call last):
   File "/Users/floam/Sites/floamshnu/web/application.py", line 169,  
in wsgi
     result = self.handle_with_processors()
   File "/Users/floam/Sites/floamshnu/web/application.py", line 146,  
in handle_with_processors
     return process(self.processors)
   File "/Users/floam/Sites/floamshnu/web/application.py", line 141,  
in process
     return p(lambda: process(processors))
   File "/Users/floam/Sites/floamshnu/web/application.py", line 420,  
in processor
     return handler()
   File "/Users/floam/Sites/floamshnu/web/application.py", line 141,  
in <lambda>
     return p(lambda: process(processors))
   File "/Users/floam/Sites/floamshnu/web/application.py", line 141,  
in process
     return p(lambda: process(processors))
   File "/Users/floam/Sites/floamshnu/web/application.py", line 420,  
in processor
     return handler()
   File "/Users/floam/Sites/floamshnu/web/application.py", line 141,  
in <lambda>
     return p(lambda: process(processors))
   File "/Users/floam/Sites/floamshnu/web/application.py", line 143,  
in process
     return self.handle()
   File "/Users/floam/Sites/floamshnu/web/application.py", line 135,  
in handle
     return self._delegate(fn, self.fvars, args)
   File "/Users/floam/Sites/floamshnu/web/application.py", line 279,  
in _delegate
     return handle_class(cls)
   File "/Users/floam/Sites/floamshnu/web/application.py", line 261,  
in handle_class
     return tocall(*args)
   File "/Users/floam/Sites/floamshnu/floamcms.py", line 28, in GET
     return tmpl.source(site.tree[site.page], site)
   File "/Users/floam/Sites/floamshnu/web/template/render.py", line  
92, in __getattr__
     return self._do(name)
   File "/Users/floam/Sites/floamshnu/web/template/render.py", line  
83, in _do
     c = process(d, name, p, self._globals, f)
   File "/Users/floam/Sites/floamshnu/web/template/parser.py", line  
252, in process
     def_format = parser.scan(t_def_with) or ''
   File "/Library/Python/2.5/site-packages/ZestyParser-0.8.1-py2.5.egg/ 
ZestyParser/Parser.py", line 128, in scan
     r = getattr(token, 'parse', token)(self, oldCursor)
   File "/Library/Python/2.5/site-packages/ZestyParser-0.8.1-py2.5.egg/ 
ZestyParser/Tokens.py", line 142, in f
     return callback(func(parser, origCursor))
   File "/Library/Python/2.5/site-packages/ZestyParser-0.8.1-py2.5.egg/ 
ZestyParser/Tokens.py", line 423, in __call__
     r = parser.scan(g)
   File "/Library/Python/2.5/site-packages/ZestyParser-0.8.1-py2.5.egg/ 
ZestyParser/Parser.py", line 128, in scan
     r = getattr(token, 'parse', token)(self, oldCursor)
   File "/Library/Python/2.5/site-packages/ZestyParser-0.8.1-py2.5.egg/ 
ZestyParser/Tokens.py", line 278, in __call__
     t = parser.scan(self.desc)
   File "/Library/Python/2.5/site-packages/ZestyParser-0.8.1-py2.5.egg/ 
ZestyParser/Parser.py", line 128, in scan
     r = getattr(token, 'parse', token)(self, oldCursor)
   File "/Library/Python/2.5/site-packages/ZestyParser-0.8.1-py2.5.egg/ 
ZestyParser/Tokens.py", line 159, in f
     data = func(parser, origCursor)
   File "/Library/Python/2.5/site-packages/ZestyParser-0.8.1-py2.5.egg/ 
ZestyParser/Tokens.py", line 145, in f
     return callback(parser, func(parser, origCursor))
   File "/Users/floam/Sites/floamshnu/web/template/parser.py", line  
71, in <lambda>
     'Expected '+close_brackets[r][0]))) + close_brackets[r][0])))
KeyError: <_sre.SRE_Match object at 0x58a790>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to