View source on GitHub |
Meta-class for initializing Model
classes properties.
Inherits From: expected_type
google.appengine.ext.db.PropertiedClass(
name, bases, dct, map_kind=True
)
Used for initializing Properties
defined in the context of a model.
By using a meta-class much of the configuration of a Property
descriptor becomes implicit. By using this meta-class, descriptors
that are of class Model
are notified about which class they
belong to and what attribute they are associated with and can
do appropriate initialization via __property_config__
.
Duplicate properties are not permitted.
Args | |
---|---|
cls
|
Class being initialized. |
name
|
Name of new class. |
bases
|
Base classes of new class. |
dct
|
Dictionary of new definitions for class. |
Raises | |
---|---|
DuplicatePropertyError when a property is duplicated either in the new
class or separately in two base classes.
ReservedWordError when a property is given a name that is in the list of
reserved words, attributes of Model , and names of the form '.*'.
|