Package motherhamster :: Module cheekpouches :: Class SimpleAssetPouch

Class SimpleAssetPouch



       object --+    
                |    
GenericAssetPouch --+
                    |
                   SimpleAssetPouch

an asset pouch designed to be instantiated for objects that are saved and loaded by simple pickle

Instance Methods
 
__init__(self, classtype, extension, broken_reference=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
AssetExtensions(self)
returns a list of supported extensions, lowercase with dot prefix
 
NewAssetExtension(self)
gets the extension for new assets (should be lowercase and start with .) return None if this pouch does not support new assets

Inherited from GenericAssetPouch: AddAssetWithPath, AvailableAssetIDs, ClassType, CreateNewAsset, DisgorgeAsset, GetAssetPathForID, RefreshAssetPaths, RevertAsset, UpdateAsset

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

Properties

Inherited from object: __class__

Method Details

__init__(self, classtype, extension, broken_reference=None)
(Constructor)

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

AssetExtensions(self)

 
returns a list of supported extensions, lowercase with dot prefix
Overrides: GenericAssetPouch.AssetExtensions
(inherited documentation)

NewAssetExtension(self)

 
gets the extension for new assets (should be lowercase and start with .) return None if this pouch does not support new assets
Overrides: GenericAssetPouch.NewAssetExtension
(inherited documentation)