Mako + Dictionaries = unexpected EOF while parsing

2007-12-29 Thread Noah Tye

When I try to use a dictionary in a mako template, like this:

${{'x': 'a', 'y': 'b'}['x']}

I get a server error like this:

SyntaxException: (SyntaxError) unexpected EOF while parsing (line 1)
(u{'t': 'a', 'f': 'b') in file 'file location' at line: 22 char:
8

along with a code listing and a traceback.  No full debugger.

Am I doing something wrong?  Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Mako + Dictionaries = unexpected EOF while parsing

2007-12-29 Thread Philip Jenvey


On Dec 29, 2007, at 7:38 PM, Noah Tye wrote:


 When I try to use a dictionary in a mako template, like this:

 ${{'x': 'a', 'y': 'b'}['x']}

 I get a server error like this:

 SyntaxException: (SyntaxError) unexpected EOF while parsing (line 1)
 (u{'t': 'a', 'f': 'b') in file 'file location' at line: 22 char:
 8


http://www.makotemplates.org/trac/ticket/20

--
Philip Jenvey



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---