Hi,
On Feb 7, 2:28 am, msoulier <[email protected]> wrote:
> Unfortunately I'm finding that I'm getting a traceback that I don't
> understand.
You are trying to get access to the position attribute (which does not
exist) on a string object. You probably have in your template at line
18 something like this:
{{ object.position() }}
I just wonder why your exception is messed up. Normally it should
show you where the exception happened. Are you using a standard
loader or are you creating the template from a string? If the latter
is the case and the template was not loaded from the file system, the
standard template exception system of Python cannot give you a nicer
error message, consider replacing the standard exception hook with the
one from the traceback.py module which comes with Python.
Hope that helps somehow. For help on undefined objects, head over to
the documentation[1].
Regards,
Armin
[1]: http://jinja.pocoo.org/2/documentation/templates#variables
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" 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/pocoo-libs?hl=en.