Re: [google-appengine] App Engine 1.6.5 Released

2012-04-25 Thread Alfred Fuller
ndb does not yet officially support projection queries, so there might be some rough edges if you use them. On Apr 25, 2012 1:23 AM, "Gopal Patel" wrote: > does ndb supports projection query ? > > On Wed, Apr 25, 2012 at 11:43 AM, Alfred Fuller wrote: > >> I agree :-), the doc update is in progre

Re: [google-appengine] App Engine 1.6.5 Released

2012-04-25 Thread Maxim Lacrima
Does this release include a fix for this issue: http://code.google.com/p/googleappengine/issues/detail?id=6820 I still have problems described there if I do large asynchronous puts. On 25 April 2012 00:34, Marzia Niccolai wrote: > Hi, > > We've released 1.6.5 today, with some really cool featur

Re: [google-appengine] App Engine 1.6.5 Released

2012-04-25 Thread Gopal Patel
does ndb supports projection query ? On Wed, Apr 25, 2012 at 11:43 AM, Alfred Fuller wrote: > I agree :-), the doc update is in progress. > > > On Tue, Apr 24, 2012 at 10:41 PM, Sun Jing wrote: > >> Thank you, it works. I think the document should be updated: >> >> https://developers.google.com

Re: [google-appengine] App Engine 1.6.5 Released

2012-04-24 Thread Alfred Fuller
I agree :-), the doc update is in progress. On Tue, Apr 24, 2012 at 10:41 PM, Sun Jing wrote: > Thank you, it works. I think the document should be updated: > > https://developers.google.com/appengine/docs/python/datastore/queryclass#Query_get > > -- > You received this message because you are s

Re: [google-appengine] App Engine 1.6.5 Released

2012-04-24 Thread Sun Jing
Thank you, it works. I think the document should be updated: https://developers.google.com/appengine/docs/python/datastore/queryclass#Query_get -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appe

Re: [google-appengine] App Engine 1.6.5 Released

2012-04-24 Thread Alfred Fuller
You can pass the projection in as a keyword argument to any of the query functions: Article.all().run/fetch/get(projection=('title',)) On Tue, Apr 24, 2012 at 9:58 PM, Sun Jing wrote: > Thank you, Alfred. > Can I change projection if I use Model.all() to create a Query object? > > > On Wed, Apr

Re: [google-appengine] App Engine 1.6.5 Released

2012-04-24 Thread Sun Jing
Thank you, Alfred. Can I change projection if I use Model.all() to create a Query object? On Wed, Apr 25, 2012 at 12:53 PM, Alfred Fuller wrote: > Oh, also db.Query takes a class not a string, should be: > db.Query(Article, projection=('title',)).get() > > On Tue, Apr 24, 2012 at 9:09 PM, Alfred

Re: [google-appengine] App Engine 1.6.5 Released

2012-04-24 Thread Alfred Fuller
Oh, also db.Query takes a class not a string, should be: db.Query(Article, projection=('title',)).get() On Tue, Apr 24, 2012 at 9:09 PM, Alfred Fuller wrote: > ('title') is not a tuple, you need to use ('title',) or ['title'] instead > > >>> print ('title') > title > >>> print ('title',) > ('tit

Re: [google-appengine] App Engine 1.6.5 Released

2012-04-24 Thread Alfred Fuller
('title') is not a tuple, you need to use ('title',) or ['title'] instead >>> print ('title') title >>> print ('title',) ('title',) >>> On Tue, Apr 24, 2012 at 8:58 PM, Sun Jing wrote: > I tried to use projection queries: > > class Article(db.Model): > title = db.StringProperty(required=True) >

Re: [google-appengine] App Engine 1.6.5 Released

2012-04-24 Thread Sun Jing
I tried to use projection queries: class Article(db.Model): title = db.StringProperty(required=True) # others... print db.Query('Article', projection=('title')).get() > Traceback (most recent call last): > File > "/base/python_runtime/python_lib/versions/1/google/appengine/ext/admin/__init__.p

[google-appengine] App Engine 1.6.5 Released

2012-04-24 Thread Marzia Niccolai
Hi, We've released 1.6.5 today, with some really cool features you can read about here: http://googleappengine.blogspot.com/2012/04/app-engine-165-released.html One of the most exciting is projection queries, the description of which I'll crib from the above post: "We’ve introduced an experiment