Package pyamf :: Package adapters :: Module _django_db_models_base :: Class DjangoClassAlias
[hide private]
[frames] | no frames]

Class DjangoClassAlias

source code


Instance Methods [hide private]
 
getCustomProperties(self)
Overrride this to provide known static properties based on the aliased class.
source code
 
_compile_base_class(self, klass) source code
 
_encodeValue(self, field, value) source code
 
_decodeValue(self, field, value) source code
 
getEncodableAttributes(self, obj, **kwargs)
Must return a dict of attributes to be encoded, even if its empty.
source code
 
getDecodableAttributes(self, obj, attrs, **kwargs)
Returns a dictionary of attributes for obj that has been filtered, based on the supplied attrs.
source code

Inherited from alias.ClassAlias: __eq__, __hash__, __init__, __repr__, __str__, applyAttributes, checkClass, compile, createInstance, is_compiled

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getCustomProperties(self)

source code 

Overrride this to provide known static properties based on the aliased class.

Overrides: alias.ClassAlias.getCustomProperties
(inherited documentation)

_compile_base_class(self, klass)

source code 
Overrides: alias.ClassAlias._compile_base_class

getEncodableAttributes(self, obj, **kwargs)

source code 

Must return a dict of attributes to be encoded, even if its empty.

Parameters:
  • codec - An optional argument that will contain the encoder instance calling this function.
Overrides: alias.ClassAlias.getEncodableAttributes
(inherited documentation)

getDecodableAttributes(self, obj, attrs, **kwargs)

source code 

Returns a dictionary of attributes for obj that has been filtered, based on the supplied attrs. This allows for fine grain control over what will finally end up on the object or not.

Parameters:
  • obj - The object that will recieve the attributes.
  • attrs - The attrs dictionary that has been decoded.
  • codec - An optional argument that will contain the decoder instance calling this function.
Returns:
A dictionary of attributes that can be applied to obj
Overrides: alias.ClassAlias.getDecodableAttributes
(inherited documentation)