noc.main.models.doccategory

Module Contents

noc.main.models.doccategory.logger
class noc.main.models.doccategory.DocCategory

Bases: mongoengine.document.Document

meta
name
type
parent
_senders
__str__(self)
classmethod update_category(cls, sender, document)

Update document category when necessary

classmethod update_parent(cls, sender, document)
classmethod fix(cls, document)

Initialize categories structure

classmethod fix_all(cls)
noc.main.models.doccategory.category(cls)
Decorator to register document to category

@category class MyDocument(Document):

… category = ObjectIdField()