I thought this was fixed. Do you have the OSX version or an older version?

You can also replace

MessageType=T('Please reach')

with 

MessageType=str(T('Please reach'))

On Friday, 31 May 2013 07:29:21 UTC-5, Pawan Jha wrote:
>
>
> row = db.executesql("SELECT * FROm 
> GetIncidentByIncidentId('"+Incidentid+"')")
>     T.force('hi')
>     MessageType=T('Please reach')
>     return MessageType
>     
>     list=[]
>     for i in row:            
>             data = {'MessageType':MessageType, 'num':i[1]}
>             list.append(data);
>     
>     ##Message = T('Incident Sucessfully Assigned to Unit')
>     ##response.flash=Message
>     return json.dumps({'mydata': list})
>
> Getting Error in this code 
> Error Is 
>
> <type 'exceptions.TypeError'> <lazyT 'Please reach'> is not JSON 
> serializable
>
>  

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to