Skip to content

Instantly share code, notes, and snippets.

@MetalBeetle
Created February 6, 2011 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MetalBeetle/813343 to your computer and use it in GitHub Desktop.
Save MetalBeetle/813343 to your computer and use it in GitHub Desktop.
Started up flow development server on port 8000.
Traceback (most recent call last):
File "/Users/zar/Python/flow/utils/template/parser.py", line 201, in parse_template_chunk
node = macro(self, token_contents)
File "/Users/zar/Python/flow/utils/template/macros.py", line 16, in wrapper
return func(parser, *match.groups(), **match.groupdict())
File "/Users/zar/Python/flow/utils/template/macros.py", line 45, in render_macro
return partial(render_node, Expression(expression))
File "/Users/zar/Python/flow/utils/template/parser.py", line 89, in __init__
self.compiled_expression = compile(expression, "<string>", "eval")
File "<string>", line 1
text_field(request, "foo", class="kitten")
^
SyntaxError: invalid syntax
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/zar/Python/flow/controller/application.py", line 36, in __call__
response = self.dispatch(request)
File "/Users/zar/Python/flow/controller/application.py", line 29, in dispatch
return self._handler(request)
File "/Users/zar/Python/flow/controller/middleware/content.py", line 30, in wrapper
return func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/content.py", line 44, in wrapper
response = func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/content.py", line 72, in wrapper
response = func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/content.py", line 88, in wrapper
response = func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/content.py", line 108, in wrapper
return func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/content.py", line 149, in wrapper
response = func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/services.py", line 72, in wrapper
return func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/services.py", line 84, in wrapper
return func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/middleware/services.py", line 45, in wrapper
return matched_handler(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/dispatcher.py", line 16, in wrapper
response = func(request, *args, **kwargs)
File "/Users/zar/Python/flow/controller/dispatcher.py", line 16, in wrapper
response = func(request, *args, **kwargs)
File "/Users/zar/Projects/flow-example/example/__init__.py", line 13, in index
return request.render("index.html")
File "/Users/zar/Python/flow/controller/middleware/services.py", line 70, in render
return loader.render(*template_names, **params)
File "/Users/zar/Python/flow/utils/template/loader.py", line 48, in render
return self.load(*template_names).render(**params)
File "/Users/zar/Python/flow/utils/template/loader.py", line 40, in load
template = self._parser._compile_lines(template_handle, template_name, meta)
File "/Users/zar/Python/flow/utils/template/parser.py", line 274, in _compile_lines
nodes = ParserRun(lines, name, self._macros).parse_all_nodes()
File "/Users/zar/Python/flow/utils/template/parser.py", line 222, in parse_all_nodes
return self.parse_template_chunk(end_chunk_handler)
File "/Users/zar/Python/flow/utils/template/parser.py", line 212, in parse_template_chunk
raise TemplateCompileError(str(ex), self.name, lineno) from ex
flow.utils.template.parser.TemplateCompileError: invalid syntax (<string>, line 1) ['index.html' on line 18]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment