I've definitely witnessed this also. The problem is that it doesn't tell you which file is generating the problem so if you've edited a bunch of templates it can sometimes take a little while to find where the problem is. <br>
Sample error:<br><br>2009-06-15 10:01:58,360 ERROR [SiteError] <a href="http://localhost:8080/scs/blog/@@index">http://localhost:8080/scs/blog/@@index</a><br>Traceback (most recent call last):<br> File "/Users/thibaud/.buildout/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/publish.py", line 133, in publish<br>
result = publication.callObject(request, obj)<br> File "/Users/thibaud/.buildout/eggs/grok-1.0a3-py2.5.egg/grok/publication.py", line 89, in callObject<br> return super(ZopePublicationSansProxy, self).callObject(request, ob)<br>
File "/Users/thibaud/.buildout/eggs/zope.app.publication-3.4.3-py2.5.egg/zope/app/publication/zopepublication.py", line 167, in callObject<br> return mapply(ob, request.getPositionalArguments(), request)<br>
File "/Users/thibaud/.buildout/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/publish.py", line 108, in mapply<br> return debug_call(obj, args)<br> File "/Users/thibaud/.buildout/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/publish.py", line 114, in debug_call<br>
return obj(*args)<br> File "/Users/thibaud/.buildout/eggs/grokcore.view-1.5-py2.5.egg/grokcore/view/components.py", line 63, in __call__<br> return self._render_template()<br> File "/Users/thibaud/.buildout/eggs/grokcore.view-1.5-py2.5.egg/grokcore/view/components.py", line 67, in _render_template<br>
return self.template.render(self)<br> File "/Users/thibaud/.buildout/eggs/grokcore.view-1.5-py2.5.egg/grokcore/view/components.py", line 228, in render<br> return template.pt_render(namespace)<br> File "/Users/thibaud/.buildout/eggs/zope.pagetemplate-3.4.0-py2.5.egg/zope/pagetemplate/pagetemplate.py", line 115, in pt_render<br>
strictinsert=0, sourceAnnotations=sourceAnnotations)()<br> File "/Users/thibaud/.buildout/eggs/zope.tal-3.4.1-py2.5.egg/zope/tal/talinterpreter.py", line 271, in __call__<br> self.interpret(self.program)<br>
File "/Users/thibaud/.buildout/eggs/zope.tal-3.4.1-py2.5.egg/zope/tal/talinterpreter.py", line 346, in interpret<br> handlers[opcode](self, args)<br> File "/Users/thibaud/.buildout/eggs/zope.tal-3.4.1-py2.5.egg/zope/tal/talinterpreter.py", line 891, in do_useMacro<br>
self.interpret(macro)<br> File "/Users/thibaud/.buildout/eggs/zope.tal-3.4.1-py2.5.egg/zope/tal/talinterpreter.py", line 346, in interpret<br> handlers[opcode](self, args)<br> File "/Users/thibaud/.buildout/eggs/zope.tal-3.4.1-py2.5.egg/zope/tal/talinterpreter.py", line 534, in do_optTag_tal<br>
self.no_tag(stuff[-2], stuff[-1])<br> File "/Users/thibaud/.buildout/eggs/zope.tal-3.4.1-py2.5.egg/zope/tal/talinterpreter.py", line 516, in no_tag<br> self.interpret(program)<br> File "/Users/thibaud/.buildout/eggs/zope.tal-3.4.1-py2.5.egg/zope/tal/talinterpreter.py", line 346, in interpret<br>
handlers[opcode](self, args)<br> File "/Users/thibaud/.buildout/eggs/zope.tal-3.4.1-py2.5.egg/zope/tal/talinterpreter.py", line 949, in do_defineSlot<br> self.interpret(slot)<br> File "/Users/thibaud/.buildout/eggs/zope.tal-3.4.1-py2.5.egg/zope/tal/talinterpreter.py", line 346, in interpret<br>
handlers[opcode](self, args)<br> File "/Users/thibaud/.buildout/eggs/zope.tal-3.4.1-py2.5.egg/zope/tal/talinterpreter.py", line 822, in do_loop_tal<br> iterator = self.engine.setRepeat(name, expr)<br> File "/Users/thibaud/.buildout/eggs/zope.tales-3.4.0-py2.5.egg/zope/tales/tales.py", line 682, in setRepeat<br>
expr = self.evaluate(expr)<br> File "/Users/thibaud/.buildout/eggs/zope.tales-3.4.0-py2.5.egg/zope/tales/tales.py", line 696, in evaluate<br> return expression(self)<br> File "/Users/thibaud/.buildout/eggs/zope.tales-3.4.0-py2.5.egg/zope/tales/pythonexpr.py", line 59, in __call__<br>
return eval(self._code, vars)<br> File "<string>", line 1, in <module><br>NameError: name 'sortedd' is not defined<br><br><br>- Thibaud<br><br><div class="gmail_quote">On Mon, Jun 15, 2009 at 9:58 AM, Martijn Faassen <span dir="ltr"><<a href="mailto:faassen@startifact.com">faassen@startifact.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Sebastian Ware wrote:<br>
> When running Grok with the Paste server, errors in Page Templates seem<br>
> to be less (than) useful than those from the --zopectl configuration<br>
> with Twisted. Has anyone else experienced this or did I misread the<br>
> error message output?<br>
<br>
</div>Could you show the error message output?<br>
<br>
Regards,<br>
<font color="#888888"><br>
Martijn<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Grok-dev mailing list<br>
<a href="mailto:Grok-dev@zope.org">Grok-dev@zope.org</a><br>
<a href="http://mail.zope.org/mailman/listinfo/grok-dev" target="_blank">http://mail.zope.org/mailman/listinfo/grok-dev</a><br>
</div></div></blockquote></div><br>