Advertisement
Guest User

Untitled

a guest
May 14th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 192.59 KB | None | 0 0
  1. Symptoms:
  2.  
  3. Unexpected behavior of NOC
  4.  
  5.  
  6. Probable Causes:
  7.  
  8. Bug in NOC
  9.  
  10.  
  11. Recommended Actions:
  12.  
  13. Grab this event, clear valuable data and submit an issue at http://nocproject.org/
  14.  
  15.  
  16. omponent noc-web NOC's component
  17. traceback File: /usr/lib/python2.7/ConfigParser.py (Line: 607) Function: get 600 The section DEFAULT is special. 601 """ 602 sectiondict = {} 603 try: 604 sectiondict = self._sections[section] 605 except KeyError: 606 if section != DEFAULTSECT: 607 ==> raise NoSectionError(section) 608 # Update with the entry specific variables 609 vardict = {} 610 if vars: 611 for key, value in vars.items(): 612 vardict[self.optionxform(key)] = value 613 d = _Chainmap(vardict, sectiondict, self._defaults) Variables: option = 'mirror.sa.managedobject.config' vars = None self = <ConfigParser.SafeConfigParser instance at 0x8d81eac> raw = False sectiondict = {} section = 'gridvcs' ------------------------------------------------------------------------ File: /opt/noc/sa/models/managedobject.py (Line: 42) Function: <module> 35 from noc.lib.stencil import stencil_registry 36 from noc.lib.gridvcs.manager import GridVCSField 37 from noc.main.models.fts_queue import FTSQueue 38 from noc.settings import config 39 40 scheme_choices = [(TELNET, "telnet"), (SSH, "ssh"), (HTTP, "http")] 41 42 ==> CONFIG_MIRROR = config.get("gridvcs", "mirror.sa.managedobject.config") or None 43 Credentials = namedtuple("Credentials", [ 44 "user", "password", "super_password", "snmp_ro", "snmp_rw"]) 45 46 class ManagedObject(models.Model): 47 """ 48 Managed Object Variables: Group = None ManagedObjectProfile = None TELNET = None TerminationGroup = None Activator = None HTTP = None AuthProfile = None TagsField = None INETField = None AdministrativeDomain = None __package__ = None re = None NotificationGroup = None models = None User = None config = None __doc__ = None scheme_choices = None namedtuple = None ObjectMap = None ObjectStatus = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None IntegrityError = None site = None Q = None PyRule = None __name__ = None _ = None profile_registry = None os = None difflib = None stencil_registry = None SSH = None GridVCSField = None Collector = None FTSQueue = None ------------------------------------------------------------------------ File: /opt/noc/sa/models/__init__.py (Line: 28) Function: <module> 21 ## Import models 22 from administrativedomain import AdministrativeDomain 23 from activator import Activator 24 from collector import Collector 25 from managedobjectprofile import ManagedObjectProfile 26 from authprofile import AuthProfile 27 from terminationgroup import TerminationGroup 28 ==> from managedobject import ManagedObject, ManagedObjectAttribute 29 from managedobjectselector import (ManagedObjectSelector, 30 ManagedObjectSelectorByAttribute) 31 from objectnotification import ObjectNotification 32 from useraccess import UserAccess 33 from groupaccess import GroupAccess 34 from reducetask import ReduceTask Variables: objectmap = None objectstatus = None ManagedObjectProfile = None __path__ = None TerminationGroup = None Activator = None AuthProfile = None collector = None authprofile = None administrativedomain = None __package__ = None activatorcapabilitiescache = None activator = None __doc__ = None script_registry = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None __name__ = None profile_registry = None managedobjectprofile = None terminationgroup = None Collector = None AdministrativeDomain = None ------------------------------------------------------------------------ File: /opt/noc/lib/scheduler/scheduler.py (Line: 511) Function: <module> 504 if self.log_jobs: 505 # Check job logs directory exists 506 if not os.path.isdir(self.log_jobs): 507 self.error("Jobs log directory does not exists: %s" % self.log_jobs) 508 self.log_jobs = None 509 510 ## Avoid circular reference 511 ==> from noc.sa.models.reducetask import ReduceTask Variables: defaultdict = None error_report = None logging = None Scheduler = None JobExists = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None inspect = None __package__ = None threading = None Job = None get_db = None safe_rewrite = None time = None __name__ = None datetime = None os = None __doc__ = None get_traceback = None ------------------------------------------------------------------------ File: /opt/noc/lib/scheduler/__init__.py (Line: 12) Function: <module> 5 ## Copyright (C) 2007-2012 The NOC Project 6 ## See LICENSE for details 7 ##---------------------------------------------------------------------- 8 9 from error import * 10 from job import Job 11 from intervaljob import IntervalJob 12 ==> from scheduler import Scheduler Variables: IntervalJob = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None JobExists = None Job = None __package__ = None __path__ = None job = None error = None __name__ = None intervaljob = None __doc__ = None ------------------------------------------------------------------------ File: /opt/noc/wf/models/process.py (Line: 15) Function: <module> 8 9 ## Python modules 10 import logging 11 ## NOC modules 12 import noc.lib.nosql as nosql 13 from workflow import Workflow 14 from node import Node 15 ==> from noc.lib.scheduler.utils import submit_job 16 17 18 class Process(nosql.Document): 19 meta = { 20 "collection": "noc.wf.processes", 21 "allow_inheritance": False Variables: Node = None logging = None nosql = None Workflow = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None __package__ = None __name__ = None __doc__ = None ------------------------------------------------------------------------ File: /opt/noc/wf/models/workflow.py (Line: 86) Function: <module> 79 p.save() 80 # Schedule job 81 p.schedule() 82 return p 83 84 ## Avoid circular references 85 from variable import Variable 86 ==> from process import Process 87 from node import Node Variables: nosql = None Workflow = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None InvalidStartNode = None Solution = None datetime = None Variable = None __name__ = None __package__ = None __doc__ = None ------------------------------------------------------------------------ File: /opt/noc/wf/models/__init__.py (Line: 11) Function: <module> 4 ##---------------------------------------------------------------------- 5 ## Copyright (C) 2007-2013 The NOC Project 6 ## See LICENSE for details 7 ##---------------------------------------------------------------------- 8 9 ## NOC modules 10 from solution import Solution 11 ==> from workflow import Workflow 12 from variable import Variable 13 from lane import Lane 14 from node import Node 15 from process import Process Variables: node = None lane = None Solution = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None solution = None __package__ = None __path__ = None error = None variable = None __name__ = None __doc__ = None ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/utils/importlib.py (Line: 35) Function: import_module 28 raise TypeError("relative imports require the 'package' argument") 29 level = 0 30 for character in name: 31 if character != '.': 32 break 33 level += 1 34 name = _resolve_name(name[level:], package, level) 35 ==> __import__(name) 36 return sys.modules[name] Variables: package = 'noc.wf' character = 'm' name = 'noc.wf.models' level = 1 ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/loading.py (Line: 88) Function: load_app 81 Loads the app with the provided fully qualified name, and returns the 82 model module. 83 """ 84 self.handled[app_name] = None 85 self.nesting_level += 1 86 app_module = import_module(app_name) 87 try: 88 ==> models = import_module('.models', app_name) 89 except ImportError: 90 self.nesting_level -= 1 91 # If the app doesn't have a models module, we can just ignore the 92 # ImportError and return no models for it. 93 if not module_has_submodule(app_module, 'models'): 94 return None Variables: self = <django.db.models.loading.AppCache object at 0x9125fac> app_name = 'noc.wf' app_module = <module 'noc.wf' from '/opt/noc/wf/__init__.pyc'> can_postpone = True ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/loading.py (Line: 64) Function: _populate 57 self.write_lock.acquire() 58 try: 59 if self.loaded: 60 return 61 for app_name in settings.INSTALLED_APPS: 62 if app_name in self.handled: 63 continue 64 ==> self.load_app(app_name, True) 65 if not self.nesting_level: 66 for app_name in self.postponed: 67 self.load_app(app_name) 68 self.loaded = True 69 finally: 70 self.write_lock.release() Variables: self = <django.db.models.loading.AppCache object at 0x9125fac> app_name = 'noc.wf' ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/loading.py (Line: 181) Function: get_models 174 you specify include_deferred, they will be. 175 """ 176 cache_key = (app_mod, include_auto_created, include_deferred, only_installed) 177 try: 178 return self._get_models_cache[cache_key] 179 except KeyError: 180 pass 181 ==> self._populate() 182 if app_mod: 183 if app_mod in self.app_store: 184 app_list = [self.app_models.get(self._label_for(app_mod), 185 SortedDict())] 186 else: 187 app_list = [] Variables: app_mod = None self = <django.db.models.loading.AppCache object at 0x9125fac> only_installed = False include_deferred = False include_auto_created = False cache_key = (None, False, False, False) ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/options.py (Line: 443) Function: _fill_related_many_to_many_cache 436 for obj, model in parent._meta.get_all_related_m2m_objects_with_model(): 437 if obj.field.creation_counter < 0 and obj.model not in parent_list: 438 continue 439 if not model: 440 cache[obj] = parent 441 else: 442 cache[obj] = model 443 ==> for klass in get_models(only_installed=False): 444 for f in klass._meta.local_many_to_many: 445 if f.rel and not isinstance(f.rel.to, basestring) and self == f.rel.to._meta: 446 cache[RelatedObject(f.rel.to, klass, f)] = None 447 if app_cache_ready(): 448 self._related_many_to_many_cache = cache 449 return cache Variables: parent_list = set([]) self = <Options for DBTrigger> cache = {} ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/options.py (Line: 429) Function: get_all_related_m2m_objects_with_model 422 """ 423 Returns a list of (related-m2m-object, model) pairs. Similar to 424 get_fields_with_model(). 425 """ 426 try: 427 cache = self._related_many_to_many_cache 428 except AttributeError: 429 ==> cache = self._fill_related_many_to_many_cache() 430 return cache.items() 431 432 def _fill_related_many_to_many_cache(self): 433 cache = SortedDict() 434 parent_list = self.get_parent_list() 435 for parent in self.parents: Variables: self = <Options for DBTrigger> ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/options.py (Line: 341) Function: init_name_map 334 def init_name_map(self): 335 """ 336 Initialises the field name -> field object mapping. 337 """ 338 cache = {} 339 # We intentionally handle related m2m objects first so that symmetrical 340 # m2m accessor names can be overridden, if necessary. 341 ==> for f, model in self.get_all_related_m2m_objects_with_model(): 342 cache[f.field.related_query_name()] = (f, model, False, True) 343 for f, model in self.get_all_related_objects_with_model(): 344 cache[f.field.related_query_name()] = (f, model, False, False) 345 for f, model in self.get_m2m_with_model(): 346 cache[f.name] = (f, model, True, True) 347 for f, model in self.get_fields_with_model(): Variables: self = <Options for DBTrigger> cache = {} ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/options.py (Line: 311) Function: get_field_by_name 304 305 Uses a cache internally, so after the first access, this is very fast. 306 """ 307 try: 308 try: 309 return self._name_map[name] 310 except AttributeError: 311 ==> cache = self.init_name_map() 312 return cache[name] 313 except KeyError: 314 raise FieldDoesNotExist('%s has no field named %r' 315 % (self.object_name, name)) 316 317 def get_all_field_names(self): Variables: self = <Options for DBTrigger> name = 'is_active' ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/sql/query.py (Line: 1304) Function: setup_joins 1297 if int_alias is not None: 1298 exclusions.add(int_alias) 1299 exclusions.add(alias) 1300 last.append(len(joins)) 1301 if name == 'pk': 1302 name = opts.pk.name 1303 try: 1304 ==> field, model, direct, m2m = opts.get_field_by_name(name) 1305 except FieldDoesNotExist: 1306 for f in opts.fields: 1307 if allow_explicit_fk and name == f.attname: 1308 # XXX: A hack to allow foo_id to work in values() for 1309 # backwards compatibility purposes. If we dropped that 1310 # feature, this could be removed. Variables: last = [0, 1] name = 'is_active' dupe_multis = True alias = 'main_dbtrigger' self = <django.db.models.sql.query.Query object at 0x960ccac> int_alias = None pos = 0 exclusions = set(['main_dbtrigger']) process_extras = True allow_many = True names = ['is_active'] joins = ['main_dbtrigger'] negate = False allow_explicit_fk = True can_reuse = set([]) extra_filters = [] dupe_set = set([]) opts = <Options for DBTrigger> ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/sql/query.py (Line: 1122) Function: add_filter 1115 alias = self.get_initial_alias() 1116 allow_many = trim or not negate 1117 1118 try: 1119 field, target, opts, join_list, last, extra_filters = self.setup_joins( 1120 parts, opts, alias, True, allow_many, allow_explicit_fk=True, 1121 can_reuse=can_reuse, negate=negate, 1122 ==> process_extras=process_extras) 1123 except MultiJoin, e: 1124 self.split_exclude(filter_expr, LOOKUP_SEP.join(parts[:e.level]), 1125 can_reuse) 1126 return 1127 1128 table_promote = False Variables: having_clause = False trim = False force_having = False process_extras = True lookup_type = 'exact' filter_expr = ('is_active', True) value = True self = <django.db.models.sql.query.Query object at 0x960ccac> connector = 'AND' alias = 'main_dbtrigger' parts = ['is_active'] num_parts = 1 arg = 'is_active' negate = False can_reuse = set([]) allow_many = True opts = <Options for DBTrigger> ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/sql/query.py (Line: 1250) Function: add_q 1243 self.having.start_subtree(connector) 1244 else: 1245 self.where.start_subtree(connector) 1246 if isinstance(child, Node): 1247 self.add_q(child, used_aliases, force_having=force_having) 1248 else: 1249 self.add_filter(child, connector, q_object.negated, 1250 ==> can_reuse=used_aliases, force_having=force_having) 1251 if force_having: 1252 self.having.end_subtree() 1253 else: 1254 self.where.end_subtree() 1255 1256 if connector == OR: Variables: used_aliases = set([]) force_having = False q_object = <django.db.models.query_utils.Q object at 0x960cccc> self = <django.db.models.sql.query.Query object at 0x960ccac> subtree = False connector = 'AND' child = ('is_active', True) ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/query.py (Line: 639) Function: _filter_or_exclude 632 assert self.query.can_filter(), \ 633 "Cannot filter a query once a slice has been taken." 634 635 clone = self._clone() 636 if negate: 637 clone.query.add_q(~Q(*args, **kwargs)) 638 else: 639 ==> clone.query.add_q(Q(*args, **kwargs)) 640 return clone 641 642 def complex_filter(self, filter_obj): 643 """ 644 Returns a new QuerySet instance with filter_obj added to the filters. 645 Variables: negate = False clone = repr() failed args = () self = [] kwargs = {'is_active': True} ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/query.py (Line: 621) Function: filter 614 return self._clone() 615 616 def filter(self, *args, **kwargs): 617 """ 618 Returns a new QuerySet instance with the args ANDed to the existing 619 set. 620 """ 621 ==> return self._filter_or_exclude(False, *args, **kwargs) 622 623 def exclude(self, *args, **kwargs): 624 """ 625 Returns a new QuerySet instance with NOT (args) ANDed to the existing 626 set. 627 """ Variables: self = [] args = () kwargs = {'is_active': True} ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/manager.py (Line: 143) Function: filter 136 def create(self, **kwargs): 137 return self.get_query_set().create(**kwargs) 138 139 def bulk_create(self, *args, **kwargs): 140 return self.get_query_set().bulk_create(*args, **kwargs) 141 142 def filter(self, *args, **kwargs): 143 ==> return self.get_query_set().filter(*args, **kwargs) 144 145 def aggregate(self, *args, **kwargs): 146 return self.get_query_set().aggregate(*args, **kwargs) 147 148 def annotate(self, *args, **kwargs): 149 return self.get_query_set().annotate(*args, **kwargs) Variables: self = <django.db.models.manager.Manager object at 0x95fa12c> args = () kwargs = {'is_active': True} ------------------------------------------------------------------------ File: /opt/noc/main/models/__init__.py (Line: 722) Function: refresh_cache 715 def refresh_cache(cls, *args, **kwargs): 716 # Clear cache 717 cls._pre_save_triggers = {} 718 cls._post_save_triggers = {} 719 cls._pre_delete_triggers = {} 720 cls._post_delete_triggers = {} 721 # Add all active triggers 722 ==> for t in cls.objects.filter(is_active=True).order_by("order"): 723 for r in ["pre_save", "post_save", "pre_delete", "post_delete"]: 724 c = getattr(cls, "_%s_triggers" % r) 725 rule = getattr(t, "%s_rule" % r) 726 if rule: 727 try: 728 c[t.model] += [rule] Variables: cls = <class 'noc.main.models.DBTrigger'> args = () kwargs = {} ------------------------------------------------------------------------ File: /opt/noc/main/models/__init__.py (Line: 951) Function: <module> 944 from stompaccess import StompAccess 945 from tag import Tag 946 947 ## 948 ## Install triggers 949 ## 950 if settings.IS_WEB and not settings.IS_TEST: 951 ==> DBTrigger.refresh_cache() # Load existing triggers 952 # Trigger cache syncronization 953 post_save.connect(DBTrigger.refresh_cache, sender=DBTrigger) 954 post_delete.connect(DBTrigger.refresh_cache, sender=DBTrigger) 955 # Install signal hooks 956 pre_save.connect(DBTrigger.pre_save_dispatch) 957 post_save.connect(DBTrigger.post_save_dispatch) Variables: nosql = <module 'noc.lib.nosql' from '/opt/noc/lib/nosql.py'> model_choices = <function model_choices at 0x946c224> datetime = <module 'datetime' from '/opt/noc/lib/python2.7/lib-dynload/datetime.so'> fts_queue = <module 'noc.main.models.fts_queue' from '/opt/noc/main/models/fts_queue.pyc'> __path__ = ['/opt/noc/main/models'] userprofilecontact = <module 'noc.main.models.userprofilecontact' from '/opt/noc/main/models/userprofilecontact.pyc'> ResourceState = <class 'noc.main.models.resourcestate.ResourceState'> Template = <class 'noc.main.models.Template'> style = <module 'noc.main.models.style' from '/opt/noc/main/models/style.pyc'> Schedule = <class 'noc.main.models.Schedule'> AuditTrail = <class 'noc.main.models.audittrail.AuditTrail'> StompAccess = <class 'noc.main.models.stompaccess.StompAccess'> MIMEType = <class 'noc.main.models.MIMEType'> on_new_model = <function on_new_model at 0x94adb54> permission = <module 'noc.main.models.permission' from '/opt/noc/main/models/permission.pyc'> __file__ = '/opt/noc/main/models/__init__.py' pre_save = <django.dispatch.dispatcher.Signal object at 0x919428c> RefBookField = <class 'noc.main.models.RefBookField'> userprofile = <module 'noc.main.models.userprofile' from '/opt/noc/main/models/userprofile.pyc'> customfieldenumgroup = <module 'noc.main.models.customfieldenumgroup' from '/opt/noc/main/models/customfieldenumgroup.pyc'> downloader_registry = <noc.main.refbooks.downloaders.DownloaderRegistry object at 0x95a188c> settings = <module 'noc.settings' from '/opt/noc/settings.pyc'> check_mimetype = <function inner_validator at 0x8e351ec> Shard = <class 'noc.main.models.Shard'> threading = <module 'threading' from '/usr/lib/python2.7/threading.pyc'> Tag = <class 'noc.main.models.tag.Tag'> TimePatternList = <class 'noc.lib.timepattern.TimePatternList'> DBS = <class 'noc.lib.database_storage.DatabaseStorage'> FTSQueue = <class 'noc.main.models.fts_queue.FTSQueue'> DatabaseStorage = <class 'noc.main.models.DatabaseStorage'> favorites = <module 'noc.main.models.favorites' from '/opt/noc/main/models/favorites.pyc'> with_statement = _Feature((2, 5, 0, 'alpha', 1), (2, 6, 0, 'alpha', 0), 32768) rx_mac_3_octets = <_sre.SRE_Pattern object at 0x94b04f8> UserProfileManager = <class 'noc.main.models.userprofile.UserProfileManager'> MongoSession = <class 'mongoengine.django.sessions.MongoSession'> UserState = <class 'noc.main.models.UserState'> Permission = <class 'noc.main.models.permission.Permission'> notification = <module 'noc.main.models.notification' from '/opt/noc/main/models/notification.py'> resourcestate = <module 'noc.main.models.resourcestate' from '/opt/noc/main/models/resourcestate.pyc'> re = <module 're' from '/opt/noc/lib/python2.7/re.pyc'> NotificationGroup = <class 'noc.main.models.notificationgroup.NotificationGroup'> audit_trail_save = <function audit_trail_save at 0x94adb8c> is_int = <function is_int at 0x8e111ec> post_delete = <django.dispatch.dispatcher.Signal object at 0x91942ec> NoPyRuleException = <class 'noc.main.models.NoPyRuleException'> PrefixTable = <class 'noc.main.models.prefixtable.PrefixTable'> TimePatternTerm = <class 'noc.main.models.timepatternterm.TimePatternTerm'> UserSession = <class 'noc.main.models.UserSession'> __name__ = 'noc.main.models' _ = <function ugettext at 0x89ff72c> PrefixTablePrefix = <class 'noc.main.models.prefixtable.PrefixTablePrefix'> pre_delete = <django.dispatch.dispatcher.Signal object at 0x91942cc> fts_models = {'ip.vrf': <class 'noc.ip.models.vrf.VRF'>, 'vc.vc': <class 'noc.vc.models.vc.VC'>} CustomField = <class 'noc.main.models.customfield.CustomField'> get_request = <function get_request at 0x95a51ec> connection = <django.db.DefaultConnectionProxy object at 0x90cd46c> notificationgroup = <module 'noc.main.models.notificationgroup' from '/opt/noc/main/models/notificationgroup.py'> audittrail = <module 'noc.main.models.audittrail' from '/opt/noc/main/models/audittrail.pyc'> timepattern = <module 'noc.main.models.timepattern' from '/opt/noc/main/models/timepattern.pyc'> Style = <class 'noc.main.models.style.Style'> Group = <class 'django.contrib.auth.models.Group'> Context = <class 'django.template.context.Context'> Notification = <class 'noc.main.models.notification.Notification'> periodic_registry = <noc.lib.periodic.PeriodicRegistry object at 0x95a72ec> prefixtable = <module 'noc.main.models.prefixtable' from '/opt/noc/main/models/prefixtable.pyc'> SystemNotification = <class 'noc.main.models.SystemNotification'> customfieldenumvalue = <module 'noc.main.models.customfieldenumvalue' from '/opt/noc/main/models/customfieldenumvalue.pyc'> SystemTemplate = <class 'noc.main.models.SystemTemplate'> UserProfile = <class 'noc.main.models.userprofile.UserProfile'> CIDRField = <class 'noc.lib.fields.CIDRField'> CustomFieldEnumGroup = <class 'noc.main.models.customfieldenumgroup.CustomFieldEnumGroup'> audit_trail_delete = <function audit_trail_delete at 0x94adbc4> rx_coding = <_sre.SRE_Pattern object at 0x95c7ca8> AUDIT_TRAIL_EXCLUDE = set(['auth_message', 'django_admin_log', 'django_session', 'fm_eventlog', 'kb_kbentryhistory', 'kb_kbentrypreviewlog', 'main_audittrail', 'sa_maptask', 'sa_reducetask']) NOTIFICATION_METHOD_CHOICES = [('mail', 'mail'), ('file', 'file'), ('xmpp', 'xmpp')] timepatternterm = <module 'noc.main.models.timepatternterm' from '/opt/noc/main/models/timepatternterm.pyc'> User = <class 'django.contrib.auth.models.User'> post_save = <django.dispatch.dispatcher.Signal object at 0x91942ac> __doc__ = None check_extension = <function inner_validator at 0x8e351b4> Language = <class 'noc.main.models.Language'> PyRule = <class 'noc.main.models.PyRule'> Checkpoint = <class 'noc.main.models.Checkpoint'> class_prepared = <django.dispatch.dispatcher.Signal object at 0x919420c> RBDManader = <class 'noc.main.models.RBDManader'> DjangoTemplate = <class 'django.template.base.Template'> MaxLengthValidator = <class 'django.core.validators.MaxLengthValidator'> TimePattern = <class 'noc.main.models.timepattern.TimePattern'> TextArrayField = <class 'noc.lib.fields.TextArrayField'> site = <noc.lib.app.site.Site object at 0x932250c> tag = <module 'noc.main.models.tag' from '/opt/noc/main/models/tag.pyc'> update_fts = <function update_fts at 0x94adb1c> get_user = <function get_user at 0x95a51b4> DBTrigger = <class 'noc.main.models.DBTrigger'> TP = <class 'noc.lib.timepattern.TimePattern'> __package__ = 'noc.main.models' database_storage = <noc.lib.database_storage.DatabaseStorage object at 0x94c6fec> Favorites = <class 'noc.main.models.favorites.Favorites'> customfield = <module 'noc.main.models.customfield' from '/opt/noc/main/models/customfield.pyc'> USER_NOTIFICATION_METHOD_CHOICES = [('mail', 'mail'), ('xmpp', 'xmpp')] RefBook = <class 'noc.main.models.RefBook'> models = <module 'django.db.models' from '/opt/noc/lib/python2.7/site-packages/django/db/models/__init__.pyc'> stompaccess = <module 'noc.main.models.stompaccess' from '/opt/noc/main/models/stompaccess.pyc'> __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} CustomFieldEnumValue = <class 'noc.main.models.customfieldenumvalue.CustomFieldEnumValue'> interface_registry = {'IAddVlan': <class 'noc.sa.interfaces.iaddvlan.IAddVlan'>, 'IAlarmTrigger': <class 'noc.sa.interfaces.ialarmtrigger.IAlarmTrigger'>, 'IAuthenticationBackend': <class 'noc.sa.interfaces.iauthenticationbackend.IAuthenticationBackend'>, 'IAuthenticationForm': <class 'noc.sa.interfaces.iauthenticationform.IAuthenticationForm'>, 'ICommands': <class 'noc.sa.interfaces.icommands.ICommands'>, 'IConfigDiffFilter': <class 'noc.sa.interfaces.iconfigdifffilter.IConfigDiffFilter'>, 'IConfigFilter': <class 'noc.sa.interfaces.iconfigfilter.IConfigFilter'>, 'IConfigValidator': <class 'noc.sa.interfaces.iconfigvalidator.IConfigValidator'>, 'IDBPostDelete': <class 'noc.sa.interfaces.idbpostdelete.IDBPostDelete'>, 'IDBPostSave': <class 'noc.sa.interfaces.idbpostsave.IDBPostSave'>, 'IDBPreDelete': <class 'noc.sa.interfaces.idbpredelete.IDBPreDelete'>, 'IDBPreSave': <class 'noc.sa.interfaces.idbpresave.IDBPreSave'>, 'IDispositionCondition': <class 'noc.sa.interfaces.idispositioncondition.IDispositionCondition'>, 'IEvent': <class 'noc.sa.interfaces.ievent.IEvent'>, 'IEventTrigger': <class 'noc.sa.interfaces.ieventtrigger.IEventTrigger'>, 'IGetARP': <class 'noc.sa.interfaces.igetarp.IGetARP'>, 'IGetActivatorInfo': <class 'noc.sa.interfaces.igetactivatorinfo.IGetActivatorInfo'>, 'IGetBFDSessions': <class 'noc.sa.interfaces.igetbfdsessions.IGetBFDSessions'>, 'IGetCDPNeighbors': <class 'noc.sa.interfaces.igetcdpneighbors.IGetCDPNeighbors'>, 'IGetChassisID': <class 'noc.sa.interfaces.igetchassisid.IGetChassisID'>, 'IGetConfig': <class 'noc.sa.interfaces.igetconfig.IGetConfig'>, 'IGetCopperTDRDiag': <class 'noc.sa.interfaces.igetcoppertdrdiag.IGetCopperTDRDiag'>, 'IGetDHCPBinding': <class 'noc.sa.interfaces.igetdhcpbinding.IGetDHCPBinding'>, 'IGetDOMStatus': <class 'noc.sa.interfaces.igetdomstatus.IGetDOMStatus'>, 'IGetDictList': <class 'noc.sa.interfaces.igetdictlist.IGetDictList'>, 'IGetDiscoveryCustom': <class 'noc.sa.interfaces.igetdiscoverycustom.IGetDiscoveryCustom'>, 'IGetDiscoveryID': <class 'noc.sa.interfaces.igetdiscoveryid.IGetDiscoveryID'>, 'IGetDot11Associations': <class 'noc.sa.interfaces.igetdot11associations.IGetDot11Associations'>, 'IGetFDPNeighbors': <class 'noc.sa.interfaces.igetfdpneighbors.IGetFDPNeighbors'>, 'IGetFQDN': <class 'noc.sa.interfaces.igetfqdn.IGetFQDN'>, 'IGetHTTPGet': <class 'noc.sa.interfaces.igethttpget.IGetHTTPGet'>, 'IGetIPDiscovery': <class 'noc.sa.interfaces.igetipdiscovery.IGetIPDiscovery'>, 'IGetIPv6Neighbor': <class 'noc.sa.interfaces.igetipv6neighbor.IGetIPv6Neighbor'>, 'IGetIfIndex': <class 'noc.sa.interfaces.igetifindex.IGetIfIndex'>, 'IGetInterfaceStatus': <class 'noc.sa.interfaces.igetinterfacestatus.IGetInterfaceStatus'>, 'IGetInterfaces': <class 'noc.sa.interfaces.igetinterfaces.IGetInterfaces'>, 'IGetInventory': <class 'noc.sa.interfaces.igetinventory.IGetInventory'>, 'IGetLLDPNeighbors': <class 'noc.sa.interfaces.igetlldpneighbors.IGetLLDPNeighbors'>, 'IGetLicense': <class 'noc.sa.interfaces.igetlicense.IGetLicense'>, 'IGetList': <class 'noc.sa.interfaces.igetlist.IGetList'>, 'IGetLocalUsers': <class 'noc.sa.interfaces.igetlocalusers.IGetLocalUsers'>, 'IGetMACAddressTable': <class 'noc.sa.interfaces.igetmacaddresstable.IGetMACAddressTable'>, 'IGetMPLSVPN': <class 'noc.sa.interfaces.igetmplsvpn.IGetMPLSVPN'>, 'IGetOAMStatus': <class 'noc.sa.interfaces.igetoamstatus.IGetOAMStatus'>, 'IGetObjectStatus': <class 'noc.sa.interfaces.igetobjectstatus.IGetObjectStatus'>, 'IGetObjectsStatus': <class 'noc.sa.interfaces.igetobjectsstatus.IGetObjectsStatus'>, 'IGetPortchannel': <class 'noc.sa.interfaces.igetportchannel.IGetPortchannel'>, 'IGetREPTopology': <class 'noc.sa.interfaces.igetreptopology.IGetREPTopology'>, 'IGetResolverConfig': <class 'noc.sa.interfaces.igetresolverconfig.IGetResolverConfig'>, 'IGetSNMPGet': <class 'noc.sa.interfaces.igetsnmpget.IGetSNMPGet'>, 'IGetSNMPGetNext': <class 'noc.sa.interfaces.igetsnmpgetnext.IGetSNMPGetNext'>, 'IGetSpanningTree': <class 'noc.sa.interfaces.igetspanningtree.IGetSpanningTree'>, 'IGetSwitchport': <class 'noc.sa.interfaces.igetswitchport.IGetSwitchport'>, 'IGetUDLDNeighbors': <class 'noc.sa.interfaces.igetudldneighbors.IGetUDLDNeighbors'>, 'IGetVersion': <class 'noc.sa.interfaces.igetversion.IGetVersion'>, 'IGetVlans': <class 'noc.sa.interfaces.igetvlans.IGetVlans'>, 'IHasLocalUser': <class 'noc.sa.interfaces.ihaslocaluser.IHasLocalUser'>, 'IHasVlan': <class 'noc.sa.interfaces.ihasvlan.IHasVlan'>, 'IInterfaceClassification': <class 'noc.sa.interfaces.iinterfaceclassification.IInterfaceClassification'>, 'INotifySAE': <class 'noc.sa.interfaces.inotifysae.INotifySAE'>, 'IPeriodicTask': <class 'noc.sa.interfaces.iperiodictask.IPeriodicTask'>, 'IPing': <class 'noc.sa.interfaces.iping.IPing'>, 'IPingCheck': <class 'noc.sa.interfaces.ipingcheck.IPingCheck'>, 'IReboot': <class 'noc.sa.interfaces.ireboot.IReboot'>, 'IReduceTask': <class 'noc.sa.interfaces.ireducetask.IReduceTask'>, 'IRemoveVlan': <class 'noc.sa.interfaces.iremovevlan.IRemoveVlan'>, 'ISetSwitchport': <class 'noc.sa.interfaces.isetswitchport.ISetSwitchport'>, 'ISyncPrefixLists': <class 'noc.sa.interfaces.isyncprefixlists.ISyncPrefixLists'>, 'ISyncVlans': <class 'noc.sa.interfaces.isyncvlans.ISyncVlans'>, 'Interface': <class 'noc.sa.interfaces.base.Interface'>} BinaryField = <class 'noc.lib.fields.BinaryField'> NotificationGroupOther = <class 'noc.main.models.notificationgroup.NotificationGroupOther'> types = <module 'types' from '/opt/noc/lib/python2.7/types.pyc'> os = <module 'os' from '/opt/noc/lib/python2.7/os.pyc'> UserProfileContact = <class 'noc.main.models.userprofilecontact.UserProfileContact'> RefBookData = <class 'noc.main.models.RefBookData'> NotificationGroupUser = <class 'noc.main.models.notificationgroup.NotificationGroupUser'> ------------------------------------------------------------------------ File: /opt/noc/lib/app/access.py (Line: 9) Function: <module> 2 ##---------------------------------------------------------------------- 3 ## Access control 4 ##---------------------------------------------------------------------- 5 ## Copyright (C) 2007-2009 The NOC Project 6 ## See LICENSE for details 7 ##---------------------------------------------------------------------- 8 from django.db.models import Q 9 ==> import noc.main.models 10 11 12 class PermissionDenied(Exception): 13 """ 14 Basic Permission Denied exception 15 """ Variables: __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None __package__ = None Q = None __name__ = None __doc__ = None ------------------------------------------------------------------------ File: /opt/noc/lib/app/__init__.py (Line: 9) Function: <module> 2 ##---------------------------------------------------------------------- 3 ## Application classes 4 ##---------------------------------------------------------------------- 5 ## Copyright (C) 2007-2009 The NOC Project 6 ## See LICENSE for details 7 ##---------------------------------------------------------------------- 8 from site import * 9 ==> from access import * 10 from application import * 11 from modelapplication import * 12 from treeapplication import * 13 from extapplication import * 14 from extmodelapplication import * 15 from extdocapplication import * Variables: force_unicode = None defaultdict = None reverse = None ViewDoesNotExist = None os = None reverse_lazy = None HttpResponseNotFound = None get_language = None set_urlconf = None site = None handler403 = None __path__ = None get_callable = None url = None HttpResponseForbidden = None HttpResponse = None NoReverseMatch = None normalize = None handler500 = None get_mod_func = None ImproperlyConfigured = None warnings = None urllib = None __package__ = None re = None module_has_submodule = None patterns = None MultiValueDict = None RegexURLPattern = None get_script_prefix = None include = None local = None __doc__ = None import_module = None json_decode = None lazy = None ResolverMatch = None RegexURLResolver = None LocaleRegexProvider = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} get_resolver = None __file__ = None DynamicMenu = None URL = None glob = None HTTP_METHODS = None __name__ = None LocaleRegexURLResolver = None get_urlconf = None ProxyNode = None types = None INSTALLED_APPS = None clear_url_caches = None hashlib = None resolve = None logging = None smart_str = None handler404 = None settings = None Http404 = None config = None iri_to_uri = None get_ns_resolver = None memoize = None is_valid_path = None Resolver404 = None set_script_prefix = None error_report = None Site = None get_traceback = None JSONEncoder = None ------------------------------------------------------------------------ File: /opt/noc/main/web.py (Line: 139) Function: children_loop 132 sockets = self.server._pending_sockets 133 self.server._pending_sockets = [] 134 self.server.add_sockets(sockets) 135 # Connect to mongodb 136 import noc.lib.nosql 137 # Initialize site 138 logging.info("Registering web applications") 139 ==> from noc.lib.app import site 140 site.autodiscover() 141 # Run children's I/O loop 142 logging.info("Starting to serve requests") 143 tornado.ioloop.IOLoop.instance().start() 144 145 def at_exit(self): Variables: self = <noc.main.web.Web object at 0xb758f4cc> sockets = [<socket._socketobject object at 0x90d310c>] noc = <module 'noc' from '/opt/noc/__init__.pyc'> ------------------------------------------------------------------------ File: /opt/noc/main/web.py (Line: 111) Function: run 104 nc = cpu_count() 105 self.t_children = set() 106 while True: 107 # Run children 108 while len(self.t_children) < nc: 109 pid = os.fork() 110 if pid == 0: 111 ==> self.children_loop() 112 elif pid < 0: 113 logging.error("Unable to fork child") 114 else: 115 logging.info("Running child %d" % pid) 116 self.t_children.add(pid) 117 # Wait for status Variables: status = 0 vi = sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0) self = <noc.main.web.Web object at 0xb758f4cc> nc = 1 pid = 0 noc_wsgi = <tornado.wsgi.WSGIContainer object at 0x8e3714c> application = <tornado.web.Application object at 0x8e3716c> address = '127.0.0.1' port = 8000 listen = '127.0.0.1:8000' ------------------------------------------------------------------------ File: /opt/noc/lib/daemon.py (Line: 364) Function: guarded_run 357 358 def process_command(self): 359 """ 360 Process self.args[0] command 361 :return: 362 """ 363 getattr(self, self.args[0])() 364 ==> 365 def guarded_run(self): 366 """ 367 Run daemon and catch common exceptions 368 :return: 369 """ 370 try: Variables: self = <noc.main.web.Web object at 0xb758f4cc> ------------------------------------------------------------------------ Exception traceback
  18. file /usr/lib/python2.7/ConfigParser.py Failed module
  19. line 607 Failed line
  20. Resolved Variables
  21. profile NOC.SAE
  22.  
  23. Raw Variables
  24. component noc-web
  25. source system
  26. traceback UNHANDLED EXCEPTION (2014-05-13 16:42:44.588471) Working directory: /opt/noc <class 'ConfigParser.NoSectionError'> No section: 'gridvcs' START OF TRACEBACK ------------------------------------------------------------------------ File: /usr/lib/python2.7/ConfigParser.py (Line: 607) Function: get 600 The section DEFAULT is special. 601 """ 602 sectiondict = {} 603 try: 604 sectiondict = self._sections[section] 605 except KeyError: 606 if section != DEFAULTSECT: 607 ==> raise NoSectionError(section) 608 # Update with the entry specific variables 609 vardict = {} 610 if vars: 611 for key, value in vars.items(): 612 vardict[self.optionxform(key)] = value 613 d = _Chainmap(vardict, sectiondict, self._defaults) Variables: option = 'mirror.sa.managedobject.config' vars = None self = <ConfigParser.SafeConfigParser instance at 0x8d81eac> raw = False sectiondict = {} section = 'gridvcs' ------------------------------------------------------------------------ File: /opt/noc/sa/models/managedobject.py (Line: 42) Function: <module> 35 from noc.lib.stencil import stencil_registry 36 from noc.lib.gridvcs.manager import GridVCSField 37 from noc.main.models.fts_queue import FTSQueue 38 from noc.settings import config 39 40 scheme_choices = [(TELNET, "telnet"), (SSH, "ssh"), (HTTP, "http")] 41 42 ==> CONFIG_MIRROR = config.get("gridvcs", "mirror.sa.managedobject.config") or None 43 Credentials = namedtuple("Credentials", [ 44 "user", "password", "super_password", "snmp_ro", "snmp_rw"]) 45 46 class ManagedObject(models.Model): 47 """ 48 Managed Object Variables: Group = None ManagedObjectProfile = None TELNET = None TerminationGroup = None Activator = None HTTP = None AuthProfile = None TagsField = None INETField = None AdministrativeDomain = None __package__ = None re = None NotificationGroup = None models = None User = None config = None __doc__ = None scheme_choices = None namedtuple = None ObjectMap = None ObjectStatus = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None IntegrityError = None site = None Q = None PyRule = None __name__ = None _ = None profile_registry = None os = None difflib = None stencil_registry = None SSH = None GridVCSField = None Collector = None FTSQueue = None ------------------------------------------------------------------------ File: /opt/noc/sa/models/__init__.py (Line: 28) Function: <module> 21 ## Import models 22 from administrativedomain import AdministrativeDomain 23 from activator import Activator 24 from collector import Collector 25 from managedobjectprofile import ManagedObjectProfile 26 from authprofile import AuthProfile 27 from terminationgroup import TerminationGroup 28 ==> from managedobject import ManagedObject, ManagedObjectAttribute 29 from managedobjectselector import (ManagedObjectSelector, 30 ManagedObjectSelectorByAttribute) 31 from objectnotification import ObjectNotification 32 from useraccess import UserAccess 33 from groupaccess import GroupAccess 34 from reducetask import ReduceTask Variables: objectmap = None objectstatus = None ManagedObjectProfile = None __path__ = None TerminationGroup = None Activator = None AuthProfile = None collector = None authprofile = None administrativedomain = None __package__ = None activatorcapabilitiescache = None activator = None __doc__ = None script_registry = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None __name__ = None profile_registry = None managedobjectprofile = None terminationgroup = None Collector = None AdministrativeDomain = None ------------------------------------------------------------------------ File: /opt/noc/lib/scheduler/scheduler.py (Line: 511) Function: <module> 504 if self.log_jobs: 505 # Check job logs directory exists 506 if not os.path.isdir(self.log_jobs): 507 self.error("Jobs log directory does not exists: %s" % self.log_jobs) 508 self.log_jobs = None 509 510 ## Avoid circular reference 511 ==> from noc.sa.models.reducetask import ReduceTask Variables: defaultdict = None error_report = None logging = None Scheduler = None JobExists = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None inspect = None __package__ = None threading = None Job = None get_db = None safe_rewrite = None time = None __name__ = None datetime = None os = None __doc__ = None get_traceback = None ------------------------------------------------------------------------ File: /opt/noc/lib/scheduler/__init__.py (Line: 12) Function: <module> 5 ## Copyright (C) 2007-2012 The NOC Project 6 ## See LICENSE for details 7 ##---------------------------------------------------------------------- 8 9 from error import * 10 from job import Job 11 from intervaljob import IntervalJob 12 ==> from scheduler import Scheduler Variables: IntervalJob = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None JobExists = None Job = None __package__ = None __path__ = None job = None error = None __name__ = None intervaljob = None __doc__ = None ------------------------------------------------------------------------ File: /opt/noc/wf/models/process.py (Line: 15) Function: <module> 8 9 ## Python modules 10 import logging 11 ## NOC modules 12 import noc.lib.nosql as nosql 13 from workflow import Workflow 14 from node import Node 15 ==> from noc.lib.scheduler.utils import submit_job 16 17 18 class Process(nosql.Document): 19 meta = { 20 "collection": "noc.wf.processes", 21 "allow_inheritance": False Variables: Node = None logging = None nosql = None Workflow = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None __package__ = None __name__ = None __doc__ = None ------------------------------------------------------------------------ File: /opt/noc/wf/models/workflow.py (Line: 86) Function: <module> 79 p.save() 80 # Schedule job 81 p.schedule() 82 return p 83 84 ## Avoid circular references 85 from variable import Variable 86 ==> from process import Process 87 from node import Node Variables: nosql = None Workflow = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None InvalidStartNode = None Solution = None datetime = None Variable = None __name__ = None __package__ = None __doc__ = None ------------------------------------------------------------------------ File: /opt/noc/wf/models/__init__.py (Line: 11) Function: <module> 4 ##---------------------------------------------------------------------- 5 ## Copyright (C) 2007-2013 The NOC Project 6 ## See LICENSE for details 7 ##---------------------------------------------------------------------- 8 9 ## NOC modules 10 from solution import Solution 11 ==> from workflow import Workflow 12 from variable import Variable 13 from lane import Lane 14 from node import Node 15 from process import Process Variables: node = None lane = None Solution = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None solution = None __package__ = None __path__ = None error = None variable = None __name__ = None __doc__ = None ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/utils/importlib.py (Line: 35) Function: import_module 28 raise TypeError("relative imports require the 'package' argument") 29 level = 0 30 for character in name: 31 if character != '.': 32 break 33 level += 1 34 name = _resolve_name(name[level:], package, level) 35 ==> __import__(name) 36 return sys.modules[name] Variables: package = 'noc.wf' character = 'm' name = 'noc.wf.models' level = 1 ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/loading.py (Line: 88) Function: load_app 81 Loads the app with the provided fully qualified name, and returns the 82 model module. 83 """ 84 self.handled[app_name] = None 85 self.nesting_level += 1 86 app_module = import_module(app_name) 87 try: 88 ==> models = import_module('.models', app_name) 89 except ImportError: 90 self.nesting_level -= 1 91 # If the app doesn't have a models module, we can just ignore the 92 # ImportError and return no models for it. 93 if not module_has_submodule(app_module, 'models'): 94 return None Variables: self = <django.db.models.loading.AppCache object at 0x9125fac> app_name = 'noc.wf' app_module = <module 'noc.wf' from '/opt/noc/wf/__init__.pyc'> can_postpone = True ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/loading.py (Line: 64) Function: _populate 57 self.write_lock.acquire() 58 try: 59 if self.loaded: 60 return 61 for app_name in settings.INSTALLED_APPS: 62 if app_name in self.handled: 63 continue 64 ==> self.load_app(app_name, True) 65 if not self.nesting_level: 66 for app_name in self.postponed: 67 self.load_app(app_name) 68 self.loaded = True 69 finally: 70 self.write_lock.release() Variables: self = <django.db.models.loading.AppCache object at 0x9125fac> app_name = 'noc.wf' ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/loading.py (Line: 181) Function: get_models 174 you specify include_deferred, they will be. 175 """ 176 cache_key = (app_mod, include_auto_created, include_deferred, only_installed) 177 try: 178 return self._get_models_cache[cache_key] 179 except KeyError: 180 pass 181 ==> self._populate() 182 if app_mod: 183 if app_mod in self.app_store: 184 app_list = [self.app_models.get(self._label_for(app_mod), 185 SortedDict())] 186 else: 187 app_list = [] Variables: app_mod = None self = <django.db.models.loading.AppCache object at 0x9125fac> only_installed = False include_deferred = False include_auto_created = False cache_key = (None, False, False, False) ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/options.py (Line: 443) Function: _fill_related_many_to_many_cache 436 for obj, model in parent._meta.get_all_related_m2m_objects_with_model(): 437 if obj.field.creation_counter < 0 and obj.model not in parent_list: 438 continue 439 if not model: 440 cache[obj] = parent 441 else: 442 cache[obj] = model 443 ==> for klass in get_models(only_installed=False): 444 for f in klass._meta.local_many_to_many: 445 if f.rel and not isinstance(f.rel.to, basestring) and self == f.rel.to._meta: 446 cache[RelatedObject(f.rel.to, klass, f)] = None 447 if app_cache_ready(): 448 self._related_many_to_many_cache = cache 449 return cache Variables: parent_list = set([]) self = <Options for DBTrigger> cache = {} ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/options.py (Line: 429) Function: get_all_related_m2m_objects_with_model 422 """ 423 Returns a list of (related-m2m-object, model) pairs. Similar to 424 get_fields_with_model(). 425 """ 426 try: 427 cache = self._related_many_to_many_cache 428 except AttributeError: 429 ==> cache = self._fill_related_many_to_many_cache() 430 return cache.items() 431 432 def _fill_related_many_to_many_cache(self): 433 cache = SortedDict() 434 parent_list = self.get_parent_list() 435 for parent in self.parents: Variables: self = <Options for DBTrigger> ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/options.py (Line: 341) Function: init_name_map 334 def init_name_map(self): 335 """ 336 Initialises the field name -> field object mapping. 337 """ 338 cache = {} 339 # We intentionally handle related m2m objects first so that symmetrical 340 # m2m accessor names can be overridden, if necessary. 341 ==> for f, model in self.get_all_related_m2m_objects_with_model(): 342 cache[f.field.related_query_name()] = (f, model, False, True) 343 for f, model in self.get_all_related_objects_with_model(): 344 cache[f.field.related_query_name()] = (f, model, False, False) 345 for f, model in self.get_m2m_with_model(): 346 cache[f.name] = (f, model, True, True) 347 for f, model in self.get_fields_with_model(): Variables: self = <Options for DBTrigger> cache = {} ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/options.py (Line: 311) Function: get_field_by_name 304 305 Uses a cache internally, so after the first access, this is very fast. 306 """ 307 try: 308 try: 309 return self._name_map[name] 310 except AttributeError: 311 ==> cache = self.init_name_map() 312 return cache[name] 313 except KeyError: 314 raise FieldDoesNotExist('%s has no field named %r' 315 % (self.object_name, name)) 316 317 def get_all_field_names(self): Variables: self = <Options for DBTrigger> name = 'is_active' ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/sql/query.py (Line: 1304) Function: setup_joins 1297 if int_alias is not None: 1298 exclusions.add(int_alias) 1299 exclusions.add(alias) 1300 last.append(len(joins)) 1301 if name == 'pk': 1302 name = opts.pk.name 1303 try: 1304 ==> field, model, direct, m2m = opts.get_field_by_name(name) 1305 except FieldDoesNotExist: 1306 for f in opts.fields: 1307 if allow_explicit_fk and name == f.attname: 1308 # XXX: A hack to allow foo_id to work in values() for 1309 # backwards compatibility purposes. If we dropped that 1310 # feature, this could be removed. Variables: last = [0, 1] name = 'is_active' dupe_multis = True alias = 'main_dbtrigger' self = <django.db.models.sql.query.Query object at 0x960ccac> int_alias = None pos = 0 exclusions = set(['main_dbtrigger']) process_extras = True allow_many = True names = ['is_active'] joins = ['main_dbtrigger'] negate = False allow_explicit_fk = True can_reuse = set([]) extra_filters = [] dupe_set = set([]) opts = <Options for DBTrigger> ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/sql/query.py (Line: 1122) Function: add_filter 1115 alias = self.get_initial_alias() 1116 allow_many = trim or not negate 1117 1118 try: 1119 field, target, opts, join_list, last, extra_filters = self.setup_joins( 1120 parts, opts, alias, True, allow_many, allow_explicit_fk=True, 1121 can_reuse=can_reuse, negate=negate, 1122 ==> process_extras=process_extras) 1123 except MultiJoin, e: 1124 self.split_exclude(filter_expr, LOOKUP_SEP.join(parts[:e.level]), 1125 can_reuse) 1126 return 1127 1128 table_promote = False Variables: having_clause = False trim = False force_having = False process_extras = True lookup_type = 'exact' filter_expr = ('is_active', True) value = True self = <django.db.models.sql.query.Query object at 0x960ccac> connector = 'AND' alias = 'main_dbtrigger' parts = ['is_active'] num_parts = 1 arg = 'is_active' negate = False can_reuse = set([]) allow_many = True opts = <Options for DBTrigger> ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/sql/query.py (Line: 1250) Function: add_q 1243 self.having.start_subtree(connector) 1244 else: 1245 self.where.start_subtree(connector) 1246 if isinstance(child, Node): 1247 self.add_q(child, used_aliases, force_having=force_having) 1248 else: 1249 self.add_filter(child, connector, q_object.negated, 1250 ==> can_reuse=used_aliases, force_having=force_having) 1251 if force_having: 1252 self.having.end_subtree() 1253 else: 1254 self.where.end_subtree() 1255 1256 if connector == OR: Variables: used_aliases = set([]) force_having = False q_object = <django.db.models.query_utils.Q object at 0x960cccc> self = <django.db.models.sql.query.Query object at 0x960ccac> subtree = False connector = 'AND' child = ('is_active', True) ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/query.py (Line: 639) Function: _filter_or_exclude 632 assert self.query.can_filter(), \ 633 "Cannot filter a query once a slice has been taken." 634 635 clone = self._clone() 636 if negate: 637 clone.query.add_q(~Q(*args, **kwargs)) 638 else: 639 ==> clone.query.add_q(Q(*args, **kwargs)) 640 return clone 641 642 def complex_filter(self, filter_obj): 643 """ 644 Returns a new QuerySet instance with filter_obj added to the filters. 645 Variables: negate = False clone = repr() failed args = () self = [] kwargs = {'is_active': True} ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/query.py (Line: 621) Function: filter 614 return self._clone() 615 616 def filter(self, *args, **kwargs): 617 """ 618 Returns a new QuerySet instance with the args ANDed to the existing 619 set. 620 """ 621 ==> return self._filter_or_exclude(False, *args, **kwargs) 622 623 def exclude(self, *args, **kwargs): 624 """ 625 Returns a new QuerySet instance with NOT (args) ANDed to the existing 626 set. 627 """ Variables: self = [] args = () kwargs = {'is_active': True} ------------------------------------------------------------------------ File: /opt/noc/lib/python2.7/site-packages/django/db/models/manager.py (Line: 143) Function: filter 136 def create(self, **kwargs): 137 return self.get_query_set().create(**kwargs) 138 139 def bulk_create(self, *args, **kwargs): 140 return self.get_query_set().bulk_create(*args, **kwargs) 141 142 def filter(self, *args, **kwargs): 143 ==> return self.get_query_set().filter(*args, **kwargs) 144 145 def aggregate(self, *args, **kwargs): 146 return self.get_query_set().aggregate(*args, **kwargs) 147 148 def annotate(self, *args, **kwargs): 149 return self.get_query_set().annotate(*args, **kwargs) Variables: self = <django.db.models.manager.Manager object at 0x95fa12c> args = () kwargs = {'is_active': True} ------------------------------------------------------------------------ File: /opt/noc/main/models/__init__.py (Line: 722) Function: refresh_cache 715 def refresh_cache(cls, *args, **kwargs): 716 # Clear cache 717 cls._pre_save_triggers = {} 718 cls._post_save_triggers = {} 719 cls._pre_delete_triggers = {} 720 cls._post_delete_triggers = {} 721 # Add all active triggers 722 ==> for t in cls.objects.filter(is_active=True).order_by("order"): 723 for r in ["pre_save", "post_save", "pre_delete", "post_delete"]: 724 c = getattr(cls, "_%s_triggers" % r) 725 rule = getattr(t, "%s_rule" % r) 726 if rule: 727 try: 728 c[t.model] += [rule] Variables: cls = <class 'noc.main.models.DBTrigger'> args = () kwargs = {} ------------------------------------------------------------------------ File: /opt/noc/main/models/__init__.py (Line: 951) Function: <module> 944 from stompaccess import StompAccess 945 from tag import Tag 946 947 ## 948 ## Install triggers 949 ## 950 if settings.IS_WEB and not settings.IS_TEST: 951 ==> DBTrigger.refresh_cache() # Load existing triggers 952 # Trigger cache syncronization 953 post_save.connect(DBTrigger.refresh_cache, sender=DBTrigger) 954 post_delete.connect(DBTrigger.refresh_cache, sender=DBTrigger) 955 # Install signal hooks 956 pre_save.connect(DBTrigger.pre_save_dispatch) 957 post_save.connect(DBTrigger.post_save_dispatch) Variables: nosql = <module 'noc.lib.nosql' from '/opt/noc/lib/nosql.py'> model_choices = <function model_choices at 0x946c224> datetime = <module 'datetime' from '/opt/noc/lib/python2.7/lib-dynload/datetime.so'> fts_queue = <module 'noc.main.models.fts_queue' from '/opt/noc/main/models/fts_queue.pyc'> __path__ = ['/opt/noc/main/models'] userprofilecontact = <module 'noc.main.models.userprofilecontact' from '/opt/noc/main/models/userprofilecontact.pyc'> ResourceState = <class 'noc.main.models.resourcestate.ResourceState'> Template = <class 'noc.main.models.Template'> style = <module 'noc.main.models.style' from '/opt/noc/main/models/style.pyc'> Schedule = <class 'noc.main.models.Schedule'> AuditTrail = <class 'noc.main.models.audittrail.AuditTrail'> StompAccess = <class 'noc.main.models.stompaccess.StompAccess'> MIMEType = <class 'noc.main.models.MIMEType'> on_new_model = <function on_new_model at 0x94adb54> permission = <module 'noc.main.models.permission' from '/opt/noc/main/models/permission.pyc'> __file__ = '/opt/noc/main/models/__init__.py' pre_save = <django.dispatch.dispatcher.Signal object at 0x919428c> RefBookField = <class 'noc.main.models.RefBookField'> userprofile = <module 'noc.main.models.userprofile' from '/opt/noc/main/models/userprofile.pyc'> customfieldenumgroup = <module 'noc.main.models.customfieldenumgroup' from '/opt/noc/main/models/customfieldenumgroup.pyc'> downloader_registry = <noc.main.refbooks.downloaders.DownloaderRegistry object at 0x95a188c> settings = <module 'noc.settings' from '/opt/noc/settings.pyc'> check_mimetype = <function inner_validator at 0x8e351ec> Shard = <class 'noc.main.models.Shard'> threading = <module 'threading' from '/usr/lib/python2.7/threading.pyc'> Tag = <class 'noc.main.models.tag.Tag'> TimePatternList = <class 'noc.lib.timepattern.TimePatternList'> DBS = <class 'noc.lib.database_storage.DatabaseStorage'> FTSQueue = <class 'noc.main.models.fts_queue.FTSQueue'> DatabaseStorage = <class 'noc.main.models.DatabaseStorage'> favorites = <module 'noc.main.models.favorites' from '/opt/noc/main/models/favorites.pyc'> with_statement = _Feature((2, 5, 0, 'alpha', 1), (2, 6, 0, 'alpha', 0), 32768) rx_mac_3_octets = <_sre.SRE_Pattern object at 0x94b04f8> UserProfileManager = <class 'noc.main.models.userprofile.UserProfileManager'> MongoSession = <class 'mongoengine.django.sessions.MongoSession'> UserState = <class 'noc.main.models.UserState'> Permission = <class 'noc.main.models.permission.Permission'> notification = <module 'noc.main.models.notification' from '/opt/noc/main/models/notification.py'> resourcestate = <module 'noc.main.models.resourcestate' from '/opt/noc/main/models/resourcestate.pyc'> re = <module 're' from '/opt/noc/lib/python2.7/re.pyc'> NotificationGroup = <class 'noc.main.models.notificationgroup.NotificationGroup'> audit_trail_save = <function audit_trail_save at 0x94adb8c> is_int = <function is_int at 0x8e111ec> post_delete = <django.dispatch.dispatcher.Signal object at 0x91942ec> NoPyRuleException = <class 'noc.main.models.NoPyRuleException'> PrefixTable = <class 'noc.main.models.prefixtable.PrefixTable'> TimePatternTerm = <class 'noc.main.models.timepatternterm.TimePatternTerm'> UserSession = <class 'noc.main.models.UserSession'> __name__ = 'noc.main.models' _ = <function ugettext at 0x89ff72c> PrefixTablePrefix = <class 'noc.main.models.prefixtable.PrefixTablePrefix'> pre_delete = <django.dispatch.dispatcher.Signal object at 0x91942cc> fts_models = {'ip.vrf': <class 'noc.ip.models.vrf.VRF'>, 'vc.vc': <class 'noc.vc.models.vc.VC'>} CustomField = <class 'noc.main.models.customfield.CustomField'> get_request = <function get_request at 0x95a51ec> connection = <django.db.DefaultConnectionProxy object at 0x90cd46c> notificationgroup = <module 'noc.main.models.notificationgroup' from '/opt/noc/main/models/notificationgroup.py'> audittrail = <module 'noc.main.models.audittrail' from '/opt/noc/main/models/audittrail.pyc'> timepattern = <module 'noc.main.models.timepattern' from '/opt/noc/main/models/timepattern.pyc'> Style = <class 'noc.main.models.style.Style'> Group = <class 'django.contrib.auth.models.Group'> Context = <class 'django.template.context.Context'> Notification = <class 'noc.main.models.notification.Notification'> periodic_registry = <noc.lib.periodic.PeriodicRegistry object at 0x95a72ec> prefixtable = <module 'noc.main.models.prefixtable' from '/opt/noc/main/models/prefixtable.pyc'> SystemNotification = <class 'noc.main.models.SystemNotification'> customfieldenumvalue = <module 'noc.main.models.customfieldenumvalue' from '/opt/noc/main/models/customfieldenumvalue.pyc'> SystemTemplate = <class 'noc.main.models.SystemTemplate'> UserProfile = <class 'noc.main.models.userprofile.UserProfile'> CIDRField = <class 'noc.lib.fields.CIDRField'> CustomFieldEnumGroup = <class 'noc.main.models.customfieldenumgroup.CustomFieldEnumGroup'> audit_trail_delete = <function audit_trail_delete at 0x94adbc4> rx_coding = <_sre.SRE_Pattern object at 0x95c7ca8> AUDIT_TRAIL_EXCLUDE = set(['auth_message', 'django_admin_log', 'django_session', 'fm_eventlog', 'kb_kbentryhistory', 'kb_kbentrypreviewlog', 'main_audittrail', 'sa_maptask', 'sa_reducetask']) NOTIFICATION_METHOD_CHOICES = [('mail', 'mail'), ('file', 'file'), ('xmpp', 'xmpp')] timepatternterm = <module 'noc.main.models.timepatternterm' from '/opt/noc/main/models/timepatternterm.pyc'> User = <class 'django.contrib.auth.models.User'> post_save = <django.dispatch.dispatcher.Signal object at 0x91942ac> __doc__ = None check_extension = <function inner_validator at 0x8e351b4> Language = <class 'noc.main.models.Language'> PyRule = <class 'noc.main.models.PyRule'> Checkpoint = <class 'noc.main.models.Checkpoint'> class_prepared = <django.dispatch.dispatcher.Signal object at 0x919420c> RBDManader = <class 'noc.main.models.RBDManader'> DjangoTemplate = <class 'django.template.base.Template'> MaxLengthValidator = <class 'django.core.validators.MaxLengthValidator'> TimePattern = <class 'noc.main.models.timepattern.TimePattern'> TextArrayField = <class 'noc.lib.fields.TextArrayField'> site = <noc.lib.app.site.Site object at 0x932250c> tag = <module 'noc.main.models.tag' from '/opt/noc/main/models/tag.pyc'> update_fts = <function update_fts at 0x94adb1c> get_user = <function get_user at 0x95a51b4> DBTrigger = <class 'noc.main.models.DBTrigger'> TP = <class 'noc.lib.timepattern.TimePattern'> __package__ = 'noc.main.models' database_storage = <noc.lib.database_storage.DatabaseStorage object at 0x94c6fec> Favorites = <class 'noc.main.models.favorites.Favorites'> customfield = <module 'noc.main.models.customfield' from '/opt/noc/main/models/customfield.pyc'> USER_NOTIFICATION_METHOD_CHOICES = [('mail', 'mail'), ('xmpp', 'xmpp')] RefBook = <class 'noc.main.models.RefBook'> models = <module 'django.db.models' from '/opt/noc/lib/python2.7/site-packages/django/db/models/__init__.pyc'> stompaccess = <module 'noc.main.models.stompaccess' from '/opt/noc/main/models/stompaccess.pyc'> __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} CustomFieldEnumValue = <class 'noc.main.models.customfieldenumvalue.CustomFieldEnumValue'> interface_registry = {'IAddVlan': <class 'noc.sa.interfaces.iaddvlan.IAddVlan'>, 'IAlarmTrigger': <class 'noc.sa.interfaces.ialarmtrigger.IAlarmTrigger'>, 'IAuthenticationBackend': <class 'noc.sa.interfaces.iauthenticationbackend.IAuthenticationBackend'>, 'IAuthenticationForm': <class 'noc.sa.interfaces.iauthenticationform.IAuthenticationForm'>, 'ICommands': <class 'noc.sa.interfaces.icommands.ICommands'>, 'IConfigDiffFilter': <class 'noc.sa.interfaces.iconfigdifffilter.IConfigDiffFilter'>, 'IConfigFilter': <class 'noc.sa.interfaces.iconfigfilter.IConfigFilter'>, 'IConfigValidator': <class 'noc.sa.interfaces.iconfigvalidator.IConfigValidator'>, 'IDBPostDelete': <class 'noc.sa.interfaces.idbpostdelete.IDBPostDelete'>, 'IDBPostSave': <class 'noc.sa.interfaces.idbpostsave.IDBPostSave'>, 'IDBPreDelete': <class 'noc.sa.interfaces.idbpredelete.IDBPreDelete'>, 'IDBPreSave': <class 'noc.sa.interfaces.idbpresave.IDBPreSave'>, 'IDispositionCondition': <class 'noc.sa.interfaces.idispositioncondition.IDispositionCondition'>, 'IEvent': <class 'noc.sa.interfaces.ievent.IEvent'>, 'IEventTrigger': <class 'noc.sa.interfaces.ieventtrigger.IEventTrigger'>, 'IGetARP': <class 'noc.sa.interfaces.igetarp.IGetARP'>, 'IGetActivatorInfo': <class 'noc.sa.interfaces.igetactivatorinfo.IGetActivatorInfo'>, 'IGetBFDSessions': <class 'noc.sa.interfaces.igetbfdsessions.IGetBFDSessions'>, 'IGetCDPNeighbors': <class 'noc.sa.interfaces.igetcdpneighbors.IGetCDPNeighbors'>, 'IGetChassisID': <class 'noc.sa.interfaces.igetchassisid.IGetChassisID'>, 'IGetConfig': <class 'noc.sa.interfaces.igetconfig.IGetConfig'>, 'IGetCopperTDRDiag': <class 'noc.sa.interfaces.igetcoppertdrdiag.IGetCopperTDRDiag'>, 'IGetDHCPBinding': <class 'noc.sa.interfaces.igetdhcpbinding.IGetDHCPBinding'>, 'IGetDOMStatus': <class 'noc.sa.interfaces.igetdomstatus.IGetDOMStatus'>, 'IGetDictList': <class 'noc.sa.interfaces.igetdictlist.IGetDictList'>, 'IGetDiscoveryCustom': <class 'noc.sa.interfaces.igetdiscoverycustom.IGetDiscoveryCustom'>, 'IGetDiscoveryID': <class 'noc.sa.interfaces.igetdiscoveryid.IGetDiscoveryID'>, 'IGetDot11Associations': <class 'noc.sa.interfaces.igetdot11associations.IGetDot11Associations'>, 'IGetFDPNeighbors': <class 'noc.sa.interfaces.igetfdpneighbors.IGetFDPNeighbors'>, 'IGetFQDN': <class 'noc.sa.interfaces.igetfqdn.IGetFQDN'>, 'IGetHTTPGet': <class 'noc.sa.interfaces.igethttpget.IGetHTTPGet'>, 'IGetIPDiscovery': <class 'noc.sa.interfaces.igetipdiscovery.IGetIPDiscovery'>, 'IGetIPv6Neighbor': <class 'noc.sa.interfaces.igetipv6neighbor.IGetIPv6Neighbor'>, 'IGetIfIndex': <class 'noc.sa.interfaces.igetifindex.IGetIfIndex'>, 'IGetInterfaceStatus': <class 'noc.sa.interfaces.igetinterfacestatus.IGetInterfaceStatus'>, 'IGetInterfaces': <class 'noc.sa.interfaces.igetinterfaces.IGetInterfaces'>, 'IGetInventory': <class 'noc.sa.interfaces.igetinventory.IGetInventory'>, 'IGetLLDPNeighbors': <class 'noc.sa.interfaces.igetlldpneighbors.IGetLLDPNeighbors'>, 'IGetLicense': <class 'noc.sa.interfaces.igetlicense.IGetLicense'>, 'IGetList': <class 'noc.sa.interfaces.igetlist.IGetList'>, 'IGetLocalUsers': <class 'noc.sa.interfaces.igetlocalusers.IGetLocalUsers'>, 'IGetMACAddressTable': <class 'noc.sa.interfaces.igetmacaddresstable.IGetMACAddressTable'>, 'IGetMPLSVPN': <class 'noc.sa.interfaces.igetmplsvpn.IGetMPLSVPN'>, 'IGetOAMStatus': <class 'noc.sa.interfaces.igetoamstatus.IGetOAMStatus'>, 'IGetObjectStatus': <class 'noc.sa.interfaces.igetobjectstatus.IGetObjectStatus'>, 'IGetObjectsStatus': <class 'noc.sa.interfaces.igetobjectsstatus.IGetObjectsStatus'>, 'IGetPortchannel': <class 'noc.sa.interfaces.igetportchannel.IGetPortchannel'>, 'IGetREPTopology': <class 'noc.sa.interfaces.igetreptopology.IGetREPTopology'>, 'IGetResolverConfig': <class 'noc.sa.interfaces.igetresolverconfig.IGetResolverConfig'>, 'IGetSNMPGet': <class 'noc.sa.interfaces.igetsnmpget.IGetSNMPGet'>, 'IGetSNMPGetNext': <class 'noc.sa.interfaces.igetsnmpgetnext.IGetSNMPGetNext'>, 'IGetSpanningTree': <class 'noc.sa.interfaces.igetspanningtree.IGetSpanningTree'>, 'IGetSwitchport': <class 'noc.sa.interfaces.igetswitchport.IGetSwitchport'>, 'IGetUDLDNeighbors': <class 'noc.sa.interfaces.igetudldneighbors.IGetUDLDNeighbors'>, 'IGetVersion': <class 'noc.sa.interfaces.igetversion.IGetVersion'>, 'IGetVlans': <class 'noc.sa.interfaces.igetvlans.IGetVlans'>, 'IHasLocalUser': <class 'noc.sa.interfaces.ihaslocaluser.IHasLocalUser'>, 'IHasVlan': <class 'noc.sa.interfaces.ihasvlan.IHasVlan'>, 'IInterfaceClassification': <class 'noc.sa.interfaces.iinterfaceclassification.IInterfaceClassification'>, 'INotifySAE': <class 'noc.sa.interfaces.inotifysae.INotifySAE'>, 'IPeriodicTask': <class 'noc.sa.interfaces.iperiodictask.IPeriodicTask'>, 'IPing': <class 'noc.sa.interfaces.iping.IPing'>, 'IPingCheck': <class 'noc.sa.interfaces.ipingcheck.IPingCheck'>, 'IReboot': <class 'noc.sa.interfaces.ireboot.IReboot'>, 'IReduceTask': <class 'noc.sa.interfaces.ireducetask.IReduceTask'>, 'IRemoveVlan': <class 'noc.sa.interfaces.iremovevlan.IRemoveVlan'>, 'ISetSwitchport': <class 'noc.sa.interfaces.isetswitchport.ISetSwitchport'>, 'ISyncPrefixLists': <class 'noc.sa.interfaces.isyncprefixlists.ISyncPrefixLists'>, 'ISyncVlans': <class 'noc.sa.interfaces.isyncvlans.ISyncVlans'>, 'Interface': <class 'noc.sa.interfaces.base.Interface'>} BinaryField = <class 'noc.lib.fields.BinaryField'> NotificationGroupOther = <class 'noc.main.models.notificationgroup.NotificationGroupOther'> types = <module 'types' from '/opt/noc/lib/python2.7/types.pyc'> os = <module 'os' from '/opt/noc/lib/python2.7/os.pyc'> UserProfileContact = <class 'noc.main.models.userprofilecontact.UserProfileContact'> RefBookData = <class 'noc.main.models.RefBookData'> NotificationGroupUser = <class 'noc.main.models.notificationgroup.NotificationGroupUser'> ------------------------------------------------------------------------ File: /opt/noc/lib/app/access.py (Line: 9) Function: <module> 2 ##---------------------------------------------------------------------- 3 ## Access control 4 ##---------------------------------------------------------------------- 5 ## Copyright (C) 2007-2009 The NOC Project 6 ## See LICENSE for details 7 ##---------------------------------------------------------------------- 8 from django.db.models import Q 9 ==> import noc.main.models 10 11 12 class PermissionDenied(Exception): 13 """ 14 Basic Permission Denied exception 15 """ Variables: __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} __file__ = None __package__ = None Q = None __name__ = None __doc__ = None ------------------------------------------------------------------------ File: /opt/noc/lib/app/__init__.py (Line: 9) Function: <module> 2 ##---------------------------------------------------------------------- 3 ## Application classes 4 ##---------------------------------------------------------------------- 5 ## Copyright (C) 2007-2009 The NOC Project 6 ## See LICENSE for details 7 ##---------------------------------------------------------------------- 8 from site import * 9 ==> from access import * 10 from application import * 11 from modelapplication import * 12 from treeapplication import * 13 from extapplication import * 14 from extmodelapplication import * 15 from extdocapplication import * Variables: force_unicode = None defaultdict = None reverse = None ViewDoesNotExist = None os = None reverse_lazy = None HttpResponseNotFound = None get_language = None set_urlconf = None site = None handler403 = None __path__ = None get_callable = None url = None HttpResponseForbidden = None HttpResponse = None NoReverseMatch = None normalize = None handler500 = None get_mod_func = None ImproperlyConfigured = None warnings = None urllib = None __package__ = None re = None module_has_submodule = None patterns = None MultiValueDict = None RegexURLPattern = None get_script_prefix = None include = None local = None __doc__ = None import_module = None json_decode = None lazy = None ResolverMatch = None RegexURLResolver = None LocaleRegexProvider = None __builtins__ = {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2012 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'format': <built-in function format>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'memoryview': <type 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <function _gmpy_pow at 0x9905c34>, 'print': <built-in function print>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>} get_resolver = None __file__ = None DynamicMenu = None URL = None glob = None HTTP_METHODS = None __name__ = None LocaleRegexURLResolver = None get_urlconf = None ProxyNode = None types = None INSTALLED_APPS = None clear_url_caches = None hashlib = None resolve = None logging = None smart_str = None handler404 = None settings = None Http404 = None config = None iri_to_uri = None get_ns_resolver = None memoize = None is_valid_path = None Resolver404 = None set_script_prefix = None error_report = None Site = None get_traceback = None JSONEncoder = None ------------------------------------------------------------------------ File: /opt/noc/main/web.py (Line: 139) Function: children_loop 132 sockets = self.server._pending_sockets 133 self.server._pending_sockets = [] 134 self.server.add_sockets(sockets) 135 # Connect to mongodb 136 import noc.lib.nosql 137 # Initialize site 138 logging.info("Registering web applications") 139 ==> from noc.lib.app import site 140 site.autodiscover() 141 # Run children's I/O loop 142 logging.info("Starting to serve requests") 143 tornado.ioloop.IOLoop.instance().start() 144 145 def at_exit(self): Variables: self = <noc.main.web.Web object at 0xb758f4cc> sockets = [<socket._socketobject object at 0x90d310c>] noc = <module 'noc' from '/opt/noc/__init__.pyc'> ------------------------------------------------------------------------ File: /opt/noc/main/web.py (Line: 111) Function: run 104 nc = cpu_count() 105 self.t_children = set() 106 while True: 107 # Run children 108 while len(self.t_children) < nc: 109 pid = os.fork() 110 if pid == 0: 111 ==> self.children_loop() 112 elif pid < 0: 113 logging.error("Unable to fork child") 114 else: 115 logging.info("Running child %d" % pid) 116 self.t_children.add(pid) 117 # Wait for status Variables: status = 0 vi = sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0) self = <noc.main.web.Web object at 0xb758f4cc> nc = 1 pid = 0 noc_wsgi = <tornado.wsgi.WSGIContainer object at 0x8e3714c> application = <tornado.web.Application object at 0x8e3716c> address = '127.0.0.1' port = 8000 listen = '127.0.0.1:8000' ------------------------------------------------------------------------ File: /opt/noc/lib/daemon.py (Line: 364) Function: guarded_run 357 358 def process_command(self): 359 """ 360 Process self.args[0] command 361 :return: 362 """ 363 getattr(self, self.args[0])() 364 ==> 365 def guarded_run(self): 366 """ 367 Run daemon and catch common exceptions 368 :return: 369 """ 370 try: Variables: self = <noc.main.web.Web object at 0xb758f4cc> ------------------------------------------------------------------------ END OF TRACEBACK
  27. type
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement