Hi All,

is there any schedule for the GAE transactions/entity groups ?

if not, how would it be the best way (web2py upgrades compatible !) to
use entity groups and transaction with web2py ?

thanks

On Jan 19, 2:59 pm, Robin B <[email protected]> wrote:
> > Groups under the DAL to be a single record. Since Big Table
> > transactions are limited to one Entity Group pertransaction, this
> > means that we are limited to one record pertransaction. Right?
>
> You have it right.
>
>
>
> > In the example above, 'count' is just an example of some arbitrary
> > column in the record, right? Can I have multiple assignments? Can I
> > mix lambda and non-lambda assignments? E.g.:
>
> >     row.update_record(count=lambda r: r.count+1, vote_score=lambda r:
> > calculate_vote_score(), preference='blue')
>
> Yes, you would be able to mix lamdas/functions and values.
>
> On the subject of passing lamdas as attributes, the field.default=
> should also recognize any lambda/callable and call it on demand:
>
> def uuid():
>   import uuid
>   return uuid.uuid4()
>
> db.table.created_at.default=t2.now
> db.table.uuid.default=uuid
>
> Robin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to