noc.main.refbooks.downloaders

Package Contents

class noc.main.refbooks.downloaders.Registry

Bases: object

Abstract module loader/registry

name = Registry
subdir = directory
classname = Class
apps
exclude = []
exclude_daemons = []
choices

For model field’s choices=

register(self, name, module)

Should be called within metaclass’ __new__ method

register_all(self)

Usually called at the top of the models.py

__getitem__(self, name)
__contains__(self, item)
class noc.main.refbooks.downloaders.DownloaderRegistry

Bases: noc.lib.registry.Registry

Downloader registry

name = DownloaderRegistry
subdir = refbooks/downloaders
classname = Downloader
apps = ['noc.main']
noc.main.refbooks.downloaders.downloader_registry
class noc.main.refbooks.downloaders.DownloaderBase

Bases: type

Metaclass for refbook downloaders

classmethod __new__(cls, name, bases, attrs)
class noc.main.refbooks.downloaders.Downloader

Bases: six.with_metaclass()

Downloader base class

name
classmethod download(cls, ref_book)