| Home | Trees | Indices | Help |
|
|---|
|
|
This is the base class for implementing EntropyRepository plugin hooks.
You have to subclass this, implement not implemented methods and provide
it to EntropyRepository class as described below.
Every plugin hook function features this signature:
int something_hook(entropy_repository_instance)
Where entropy_repository_instance is the calling EntropyRepository instance.
Every method should return a return status code which, when nonzero causes
a RepositoryPluginError exception to be thrown.
Every method returns 0 in the base class implementation.
| Instance Methods | |||
| string |
|
||
| dict |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
| int |
|
||
|
Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
Return string identifier of myself.
|
Developers reimplementing EntropyRepositoryPlugin can provide metadata along with every instance. If you want to provide read-only metadata, this method should really return a copy of the metadata object, otherwise, return its direct reference. Metadata format is a map-like object (dictionary, dict()). By default this method does return an empty dict. Make sure that your metadata dictionaries around don't have keys in common, otherwise those will be randomly overwritten eachothers.
|
Called during EntropyRepository plugin addition.
|
Called during EntropyRepository plugin removal.
|
Called during EntropyRepository data commit.
|
Called during EntropyRepository instance shutdown (closeDB).
|
Called after the addition of a package from EntropyRepository.
|
Called after the removal of a package from EntropyRepository.
|
Called during EntropyRepository cache cleanup (clearCache).
|
Called during EntropyRepository data initialization (not instance init).
|
Called during EntropyRepository acceptLicense call.
|
Called after EntropyRepository treeupdates move action execution for given idpackage in given EntropyRepository instance.
|
Called after EntropyRepository treeupdates slot move action execution for given idpackage in given EntropyRepository instance.
|
This hook is called inside EntropyRepository.generateReverseDependenciesMetadata() method at the very end of the function code. Every time that repository is "tainted" with new packages, sooner or later that function is called.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Dec 13 00:16:19 2009 | http://epydoc.sourceforge.net |