On 06/02/10 Armin Ronacher said:

> 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() }}

Aha, I'm doing this

<lat>{{ node['position'][0] }}</lat>
<lon>{{ node['position'][1] }}</lon>

> 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

From a string.

> 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.

It's also being intercepted by Twisted so I'm sure that's not helping.

> Hope that helps somehow.  For help on undefined objects, head over to
> the documentation[1].

Ok, will do. I'm used to Django templates. They don't complain they just print
nothing.

Mike
-- 
Michael P. Soulier <[email protected]>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein

Attachment: pgpTgFQA3CuAZ.pgp
Description: PGP signature

Reply via email to