On 4 nov, 19:28, mdipierro <mdipie...@cs.depaul.edu> wrote:
> On Nov 4, 12:22 pm, omicron <jacques.bouss...@gmail.com> wrote:
>
> > With version 1.71.1 I have two problems:
> >  * Rows object has no longer attribute "response" ? Before
> > Rows.response was what I want to send to QooxDoo to populate table
> > models. Now I must construct my list with iterator ?
>
> Rows.response was an internal thing. Technically by removing it we did
> not break backward compatibility. Moreover it contained data in a back-
> end dependent representation.
>
> You should use:
>
> Rows.as_list() and/or Rows.as_list(compact=False)


With priors versions, and with PostgreSQL, Rows.response return a list
of lists.
Now Rows.as_list return a list of dicts or a list of rows. For
QooxDoo, table
model is populated with a list of lists. I'll construct by hand !


>
> >  * I have a pb with json_rpc : Example I call a function with
> > parameters, for example "insert(name)"; with 1.69.0 it's Ok but with
> > 1.71.1 the code for inserting record is executed, but the result can't
> > be returned to QooxDoo without error. The error is : "'NoneType'
> > object is not callable".
>
> Can you provide an example?
>
> Can you try int(insert(....)) would it fix the problem?


Yeah ! With 1.71.1 DAL method insert return a 'gluon.sql.Reference'
object,
not an 'int'. The problem is fixed with "return int(id)" to QooxDoo. I
think
simplejson can't serialize a 'gluon.sql.Reference' object ?


>
> Massimo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to