[google-appengine] Re: can I have a primery key of my own?

2008-10-15 Thread kang
class MyBooks(db.Model): bookid=db.IntegerProperty(name='key') author = db.StringProperty(multiline=True) book_name = db.StringProperty(multiline=True) price = db.IntegerProperty() date = db.DateTimeProperty(auto_now_add=True) On Wed, Oct 15, 2008 at 2:29 PM, ajaxer <[EMAIL PROTECTED]> wrote

[google-appengine] Re: can I have a primery key of my own?

2008-10-15 Thread Sylvain
And what about "key_name" in the Model class. http://code.google.com/appengine/docs/datastore/modelclass.html Regards On 15 oct, 08:29, ajaxer <[EMAIL PROTECTED]> wrote: > if i use google datastore api? > is it possible to specify my own key field in db.Model? > thanks. --~--~-~--~~-