On Sep 26, 11:20 pm, Richard <[email protected]> wrote:
> I have been playing with GAE for the first time and found using it
> with web2py a pleasure. web2py and GAE are a killer combination!
>
> A few questions:
>
> How do you order your items? Currently I am selecting and then sorting
> in Python manually.
You can order by fields:
db(...).select(orderby=db.test.field)
Check the web2py manual section about orderby:
http://www.scribd.com/doc/19211452
>
> I changed my belongs statements like this:
> db(db.test.id.belongs(test_ids)).select() - > [db.test[id] for id in
> test_ids]
> Is there a better way? If not, would it be a good idea for the DAL to
> do this mapping automatically?
You are right this is the fastest way available:
[db.test[id] for id in test_ids]
GAE has added batch get/put/delete operations that could be
implemented.
>
> Is the tools.fetch() abstraction necessary? Because GAE still provides
> the urllib
> interface:http://code.google.com/appengine/docs/python/urlfetch/overview.html#F...
I think the tools.fetch() was released right before GAE supported
urllib, so urllib was not available when fetch was created.
>
> Also is there anything preventing web2py.com migrating to GAE? As I
> write this web2py.com is down...
It is still down, not sure why.
>
> Richard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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
-~----------~----~----~----~------~----~------~--~---