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)
Returns a tuple containing a dict of static and dynamic attributes for an object to encode.
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 ClassAlias: __eq__, __hash__, __init__, __repr__, __str__, applyAttributes, checkClass, compile, createInstance, getProxiedAttribute, is_compiled

Inherited from ClassAlias (private): _checkExternal, _finalise_compile

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__

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: ClassAlias.getCustomProperties
(inherited documentation)

_compile_base_class(self, klass)

source code 
Overrides: ClassAlias._compile_base_class

getEncodableAttributes(self, obj, **kwargs)

source code 

Returns a tuple containing a dict of static and dynamic attributes for an object to encode.

Parameters:
  • codec - An optional argument that will contain the en/decoder instance calling this function.
Overrides: 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 reference object.
  • attrs - The attrs dictionary that has been decoded.
  • codec - An optional argument that will contain the codec instance calling this function.
Returns:
A dictionary of attributes that can be applied to obj
Overrides: ClassAlias.getDecodableAttributes
(inherited documentation)