[google-appengine] Re: Retrieving latest revision of a document

2009-01-12 Thread Ecir Hana
lised model unless you normally have a lot > of revisions per document, modify the common document meta-data quite > often, and the meta-data itself is large (in terms of the number of > bytes or the number of properties stored). > > On Jan 13, 10:33 am, Ecir Hana wrote: > >

[google-appengine] Retrieving latest revision of a document

2009-01-12 Thread Ecir Hana
Hello, what is the preferred way of retrieving the latest revision of a document? (The 'name' doesn't change across the revisions.) 1: class Document(db.Model): name = db.StringProperty() revision = db.IntegerProperty() content = db.TextProperty() latest = Document.all().filter('name =', s