[google-appengine] delete or rename a property?

2013-01-03 Thread Toto
I am using ndb
I need to sub-class a master class. (I don't have control over the super 
class)
Is it possible to delete / rename a property in the super class in the the 
sub-class?

If not, is there a write cost for non-required property?
Can I select which property I want to display in the admin interface?

Regards



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/hBQGh7BRwqgJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] db to ndb migration ... issue with collection_name

2012-12-30 Thread Toto
In my previous GAE app, I had something like a blog (Post and related 
Comment)
Posts and Comments where 2 different models such as

class Post(db.Model):
headline = db.StringProperty(required = True)
content = db.TextProperty(required = True)   
   
class Comment(db.Model):
 Comment object with many-to-one relationship 
content = db.TextProperty(required = True) 
post = db.ReferenceProperty(Post, collection_name='comment_set')

Now with db, thanks to the collection_name, I could easily find the 
comments referring to a post ( aka back reference) using post.comment_set

How are now back references handled in ndb?
Is there a preferred method?

Regards


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/_W5mhfhwqBEJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.