[web2py] Re: NDB support for GAE

2013-11-22 Thread Cato Gonzalez
I am just starting a project on GAE using web2py and would certainly prefer to start with ndb from the beginning. Is this patch going to be official? Can I start with the regular db and then switch to ndb once it's official? I am new to GAE and web2py but after reading all docs I believe they

Re: [web2py] Re: NDB support for GAE

2013-11-22 Thread Quint van den Muijsenberg
You can always switch between DB and NDB. Thats the idea of the patch. You can also grab the trunk version and help testing it. On Nov 22, 2013 5:12 PM, Cato Gonzalez catogonza...@gmail.com wrote: I am just starting a project on GAE using web2py and would certainly prefer to start with ndb

[web2py] Re: NDB support for GAE

2013-11-05 Thread Quint
Hi, I attached a new patch. I also attached a file with a couple of tests I ran. (based on test_dal.py) Needs more testing by other GAE users though. Quint On Monday, October 28, 2013 2:49:37 PM UTC+1, Massimo Di Pierro wrote: If you send me a revised patch to do this, I will include. It may

[web2py] Re: NDB support for GAE

2013-10-29 Thread Quint
Ok, I will look at it this weekend. On Monday, October 28, 2013 2:49:37 PM UTC+1, Massimo Di Pierro wrote: If you send me a revised patch to do this, I will include. It may be better than using a different adapter. On Monday, 28 October 2013 01:40:41 UTC-5, Quint wrote: Yes, using the

[web2py] Re: NDB support for GAE

2013-10-28 Thread Christian Foster Howes
interesting i as skim the NDB docs very quickly and the patch above i see that it is *very* similar to the DB Datastore/Big Table. if the APIs are the same then we should just use the same DAL adapter with a parameter to use NDB. Though because of the caching nature of NDB there may be a

[web2py] Re: NDB support for GAE

2013-10-28 Thread Quint
Yes, using the same adapter with a parameter is also a possibility i thought of. Don't really know anymore why i choose this. Maybe because initially i wanted to create a plugable thingy without changing the DAL code. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: NDB support for GAE

2013-10-28 Thread Massimo Di Pierro
If you send me a revised patch to do this, I will include. It may be better than using a different adapter. On Monday, 28 October 2013 01:40:41 UTC-5, Quint wrote: Yes, using the same adapter with a parameter is also a possibility i thought of. Don't really know anymore why i choose this.

[web2py] Re: NDB support for GAE

2013-10-27 Thread Saisha D
Hi, Just curious, what's the status of this patch? I'm eagerly waiting for NDB support in web2py. S On Sunday, September 29, 2013 9:49:36 AM UTC-7, Quint wrote: Hi, I think web2py should support NDB for the Google Datastore. NDB a newer datastore api which has automatic caching features

[web2py] Re: NDB support for GAE

2013-10-27 Thread Saisha D
btw dumb question when db.py says DAL(google:datastore) Is it referring to the DB datastore in GAE https://developers.google.com/appengine/docs/python/datastore/ Asking because there a few options for storage mentioned in the GAE docs. On Sunday, September 29, 2013 9:49:36 AM UTC-7, Quint

[web2py] Re: NDB support for GAE

2013-10-27 Thread Massimo Di Pierro
Thank you for the patch. I guess my question is why do we need a new adapter? Is this for backward compatibility because otherwise it would break apps that use Field('...',type='decimal(...)')? On Sunday, 29 September 2013 11:49:36 UTC-5, Quint wrote: Hi, I think web2py should support NDB

[web2py] Re: NDB support for GAE

2013-09-29 Thread Massimo Di Pierro
Thank you I will review this asap! On Sunday, 29 September 2013 11:49:36 UTC-5, Quint wrote: Hi, I think web2py should support NDB for the Google Datastore. NDB a newer datastore api which has automatic caching features built in. https://developers.google.com/appengine/docs/python/ndb/ I