On Mar 3, 2011, at 8:44 PM, darkblue_b wrote:
> 
> oh - I bet it is that web2py is expecting a field called id
> whereas I define my own primary key 'pkey' and there is no 'id'
> 
> assuming that is true, then tables with no primary key 'id'
> are not serializable by json, but xml works ?
> seems like a side effect and not intended behavior

That's possible. KeyError is hard to track down, because it's probably being 
raised implicitly from a failed dictionary access. Why it happens with json and 
not xml I have no idea, but the xml encoding logic is significantly different 
from the json code.

Reply via email to