Re: [google-appengine] how to update/copy from NDB Objects to local Objects?

2013-10-22 Thread Vinny P
On Mon, Oct 21, 2013 at 8:10 AM, Vijay Kumbhani vnkumbh...@gmail.com
 wrote:

 in filterObj has many modules . it retrieve: *filterObj =
 records().query()*
 i can define *new = {}*
 *how to update ?*



Are you attempting to update a new object, or query existing objects with
no filters? Can you explain the use case of your application?

If you're updating an object, you can simply call put() on it to store it
in the datastore:
https://developers.google.com/appengine/docs/python/datastore/entities#Python_Updating_an_entity.
If you're querying with no filters, you can use a basic GQL query:
https://developers.google.com/appengine/docs/python/datastore/gqlqueryclass


-
-Vinny P
Technology  Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] how to update/copy from NDB Objects to local Objects?

2013-10-21 Thread Vijay Kumbhani
show in image 

in filterObj has many modules . it retrive :

*filterObj = records().query()*

i can define 

*new = {}*
*
*
*how to update ?*

i try below methods but not working
*
*
*1. new.update(filterObj._Query__filters)*
*2. new[_Query__filters] = []*
*new[_Query__filters] =  filterObj._Query__filters*
*
*
* get error...*

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.
attachment: Capture.PNG