For example using python functions which is not included as default to templator can cause of this. It will better if you share your template code.
2011/2/15 Michele Petrazzo <[email protected]> > Hi all. > I have a piece of code (template) that does raise a web.py error, and > I don't know where and how to debug it. Someone has a workaround or a > method for find where my template cause the web.py problem? > > Thanks. > Michele > > The traceback: > > File "/home/devel/project/trunk/mypage.py", line 987, in _do_jq > return template.jq_file_tree(data) > File "/home/devel/project/trunk/web/template.py", line 1009, in > __getattr__ > t = self._template(name) > File "/home/devel/project/trunk/web/template.py", line 1006, in > _template > return self._load_template(name) > File "/home/devel/project/trunk/web/template.py", line 991, in > _load_template > return Template(open(path).read(), filename=path, > **self._keywords) > File "/home/devel/project/trunk/web/template.py", line 844, in > __init__ > code = self.compile_template(text, filename) > File "/home/devel/project/trunk/web/template.py", line 899, in > compile_template > code = Template.generate_code(template_string, filename, > parser=self.create_parser()) > File "/home/devel/project/trunk/web/template.py", line 887, in > generate_code > code = rootnode.emit(indent="").strip() > File "/home/devel/project/trunk/web/template.py", line 536, in emit > return encoding + self.defwith + self.suite.emit(indent + INDENT) > + self.end > File "/home/devel/project/trunk/web/template.py", line 690, in emit > return "\n" + "".join([s.emit(indent, text_indent) for s in > self.sections]) > File "/home/devel/project/trunk/web/template.py", line 605, in emit > out = indent + self.stmt + self.suite.emit(indent + INDENT, > text_indent) > File "/home/devel/project/trunk/web/template.py", line 690, in emit > return "\n" + "".join([s.emit(indent, text_indent) for s in > self.sections]) > File "/home/devel/project/trunk/web/template.py", line 605, in emit > out = indent + self.stmt + self.suite.emit(indent + INDENT, > text_indent) > File "/home/devel/project/trunk/web/template.py", line 690, in emit > return "\n" + "".join([s.emit(indent, text_indent) for s in > self.sections]) > File "/home/devel/project/trunk/web/template.py", line 605, in emit > out = indent + self.stmt + self.suite.emit(indent + INDENT, > text_indent) > File "/home/devel/project/trunk/web/template.py", line 690, in emit > return "\n" + "".join([s.emit(indent, text_indent) for s in > self.sections]) > File "/home/devel/project/trunk/web/template.py", line 605, in emit > out = indent + self.stmt + self.suite.emit(indent + INDENT, > text_indent) > File "/home/devel/project/trunk/web/template.py", line 690, in emit > return "\n" + "".join([s.emit(indent, text_indent) for s in > self.sections]) > TypeError: emit() takes exactly 2 arguments (3 given) > > -- > 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. > > -- Aydın Şen -- 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.
