diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-17 17:28:58 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-17 17:28:58 +0200 |
commit | 938b7e6141e2895c7d41b0e8ef4b9416912e2e9e (patch) | |
tree | 6ceef0718139a13ced3fb607634fa60fc81212c4 /docs/write_addons.rst | |
parent | Spare code cosmetics (3) (diff) | |
download | pyload-938b7e6141e2895c7d41b0e8ef4b9416912e2e9e.tar.xz |
Spare code cosmetics (4)
Diffstat (limited to 'docs/write_addons.rst')
-rw-r--r-- | docs/write_addons.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/write_addons.rst b/docs/write_addons.rst index 9f4436cc5..cc39ab259 100644 --- a/docs/write_addons.rst +++ b/docs/write_addons.rst @@ -18,6 +18,7 @@ All addons should start with something like this: :: from pyload.plugin.Addon import Addon + class YourAddon(Addon): __name = "YourAddon" __version = "0.1" @@ -53,6 +54,7 @@ A basic excerpt would look like: :: from pyload.plugin.Addon import Addon + class YourAddon(Addon): """ Your Addon code here. @@ -73,6 +75,7 @@ It requires a `dict` that maps event names to function names or a `list` of func from pyload.plugin.Addon import Addon + class YourAddon(Addon): """ Your Addon code here. @@ -109,6 +112,7 @@ Sounds complicated but is very easy to do. Just use the ``Expose`` decorator: :: from pyload.plugin.Addon import Addon, Expose + class YourAddon(Addon): """ Your Addon code here. @@ -134,6 +138,7 @@ Just store everything in ``self.info``. :: from pyload.plugin.Addon import Addon + class YourAddon(Addon): """ Your Addon code here. |