October 2015
Intermediate to advanced
368 pages
8h 49m
English
We have been using ndb.Model so far, but didn't look at the class in detail. The following are the three groups of things that we need to look into:
Let's look at these in turn.
We have been using constructor throughout our examples, as follows:
Listing(title="Civic 1995 for Sale")
What can you pass to the constructor? Basically, all the properties that you declared on the model itself can be supplied as keyword arguments for initial values while creating the instance. Besides this, the following can be supplied:
id keyword argument. If an ID is provided, ...Read now
Unlock full access