Esempio n. 1
0
def init_solutions():
    """
    Initialize solutions and load modules
    """
    from noc.main.models import CustomField
    CustomField.install_fields()
    for sn in config.options("solutions"):
        if config.getboolean("solutions", sn):
            load_solution(sn)
Esempio n. 2
0
#!./bin/python
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## noc-wf daemon
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------

if __name__ == "__main__":
    from noc.wf.wf.daemon import WFDaemon
    from noc.lib.debug import error_report
    from noc.main.models import CustomField
    CustomField.install_fields()

    try:
        WFDaemon().process_command()
    except SystemExit:
        pass
    except Exception:
        error_report()