Package pyamf :: Package adapters :: Module _google_appengine_ext_blobstore :: Class BlobInfoClassAlias
[hide private]
[frames] | no frames]

Class BlobInfoClassAlias

source code


Fine grain control over blobstore.BlobInfo instances. Required to encode the key attribute correctly.

Instance Methods [hide private]
 
createInstance(self, *args, **kwargs)
Creates an instance of the klass.
source code
 
getEncodableAttributes(self, obj, codec=None)
Returns a dict of kay/value pairs for PyAMF to encode.
source code
 
applyAttributes(self, obj, attrs, **kwargs)
Applies attrs to obj.
source code

Inherited from alias.ClassAlias: __eq__, __hash__, __init__, __repr__, __str__, checkClass, compile, getCustomProperties, getDecodableAttributes, 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]

createInstance(self, *args, **kwargs)

source code 

Creates an instance of the klass.

Returns:
Instance of self.klass.
Overrides: alias.ClassAlias.createInstance
(inherited documentation)

getEncodableAttributes(self, obj, codec=None)

source code 

Returns a dict of kay/value pairs for PyAMF to encode.

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

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

source code 

Applies attrs to obj. Since blobstore.BlobInfo objects are read-only entities, we only care about the key attribute.

Parameters:
  • codec - An optional argument that will contain the en/decoder instance calling this function.
Overrides: alias.ClassAlias.applyAttributes