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