Package pyamf :: Package adapters :: Module _google_appengine_ext_db :: Class ModelStub

[hide private]
[frames] | no frames]

# Class ModelStub

source code

This class represents a `db.Model` or `db.Expando` class as the typed object is being read from the AMF stream. Once the attributes have been read from the stream and through the magic of Python, the instance of this class will be converted into the correct type.

See Also: DataStoreClassAlias.applyAttributes

Instance Methods | [hide private]

__init__(self, klass) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code

properties(self) | source code

dynamic_properties(self) | source code

Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Instance Variables | [hide private]

`db.Model` or `db.Expando` | klass The referenced class either `db.Model` or `db.Expando`.

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, klass)
(Constructor)

source code

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
  (inherited documentation)

Instance Variable Details | [hide private]

### klass

The referenced class either `db.Model` or `db.Expando`. This is used so we can proxy some of the method calls during decoding.

Type:
  `db.Model` or `db.Expando`