Oops sorry. My query had an error. Please read conf_info as dic.

For a dictionary dic returned from the python code
dic = {'a':'fdf','b':'dsdsd','c':'erere'}

tg.jsonify returned an error :
onclick="edituser(${tg.jsonify(dic)}, ${rowid})"

> The error displayed is :
>   File "<string>", line 5, in jsonify
>   File "_speedups.pyx", line 362, in
> _speedups.BaseDispatcher.__getitem__
>   File "C:\Python24\lib\site-packages\ruledispatch-0.5a0.dev_r2115-
> py2.4-win32.egg\dispatch\interfaces.py", line 15, in __call__
> NoApplicableMethods: (({'a': 'fdf', 'c': 'erere', 'b': 'dsdsd'},), {})
> Error in code generated from template file 'C:\\The....

Use of encode solved the problem :
onclick="edituser(${tg.encode(dic)}, ${rowid})"

Got the lead from the following thread :
http://groups.google.com/group/turbogears/browse_thread/thread/ace508e9991d05d0/89c2382a26683434?lnk=gst&q=encode+dictionary+kevin&rnum=3&hl=en#89c2382a26683434

Thanks and Regards
Roopesh


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to