Commit 8d0af861 authored by Dmitry Lukhtionov's avatar Dmitry Lukhtionov
Browse files

PEP8 formatting

--HG--
branch : feature/microservices
parent 84010a05
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## inv.card
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# inv.card
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.extapplication import ExtApplication
from noc.core.translation import ugettext as _
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## bi.dashboardlayout application
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# bi.dashboardlayout application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app import ExtDocApplication, view
from noc.bi.models.dashboardlayout import DashboardLayout
from noc.core.translation import ugettext as _
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## cm.errortype application
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# cm.errortype application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.cm.models.errortype import ErrorType
from noc.core.translation import ugettext as _
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## ObjectNotify Manager
##----------------------------------------------------------------------
## Copyright (C) 2007-2010 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# ObjectNotify Manager
# ---------------------------------------------------------------------
# Copyright (C) 2007-2010 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
from django.contrib import admin
from noc.lib.app.modelapplication import ModelApplication
from noc.cm.models import ObjectNotify
from noc.core.translation import ugettext as _
##
## ObjectNotify admin
##
#
# ObjectNotify admin
#
class ObjectNotifyAdmin(admin.ModelAdmin):
list_display=["type","administrative_domain","notify_immediately","notify_delayed","notification_group"]
list_filter=["type","administrative_domain","notification_group"]
##
## ObjectNotify application
##
#
# ObjectNotify application
#
class ObjectNotifyApplication(ModelApplication):
model=ObjectNotify
model_admin=ObjectNotifyAdmin
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## PrefixList Manager
##----------------------------------------------------------------------
## Copyright (C) 2007-2010 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# PrefixList Manager
# ---------------------------------------------------------------------
# Copyright (C) 2007-2010 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
from django.contrib import admin
from noc.cm.repoapp import RepoApplication
from noc.cm.models import PrefixList
from noc.core.translation import ugettext as _
##
## PrefixList admin
##
#
# PrefixList admin
#
class PrefixListAdmin(admin.ModelAdmin):
list_display=["repo_path","last_modified","status"]
search_fields=["repo_path"]
##
## PrefixList application
##
#
# PrefixList application
#
class PrefixListApplication(RepoApplication):
repo="prefix-list"
model=PrefixList
......
# -*- coding: utf-8 -*-
"""
##----------------------------------------------------------------------
## Interface Facts Report
##----------------------------------------------------------------------
## Copyright (C) 2007-2017 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# Interface Facts Report
# ---------------------------------------------------------------------
# Copyright (C) 2007-2017 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
"""
from django import forms
## NOC modules
# NOC modules
from noc.lib.app.simplereport import SimpleReport, TableColumn, PredefinedReport, SectionRow
from noc.lib.nosql import get_db
from pymongo import ReadPreference
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Latest Change Report
##----------------------------------------------------------------------
## Copyright (C) 2007-2010 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# Latest Change Report
# ---------------------------------------------------------------------
# Copyright (C) 2007-2010 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
from noc.lib.app.simplereport import SimpleReport,TableColumn
from noc.cm.models import Object
from django import forms
import datetime
from noc.core.translation import ugettext as _
##
## Report Form
##
#
# Report Form
#
class ReportForm(forms.Form):
repo=forms.ChoiceField(label=_("Type"),choices=[("prefix-list","prefix-list")])
days=forms.IntegerField(label=_("In Days"),min_value=1)
##
##
##
#
#
#
class ReportreportLatestChanges(SimpleReport):
title=_("Latest Changes")
form=ReportForm
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## cm.reportvalidationmethods
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# cm.reportvalidationmethods
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.simplereport import SimpleReport, TableSection, SectionRow
from noc.cm.validators.base import validator_registry
from noc.core.translation import ugettext as _
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## RPSL Manager
##----------------------------------------------------------------------
## Copyright (C) 2007-2010 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# RPSL Manager
# ---------------------------------------------------------------------
# Copyright (C) 2007-2010 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
from django.contrib import admin
from noc.cm.repoapp import RepoApplication
from noc.cm.models import RPSL
from noc.core.translation import ugettext as _
##
## RPSL admin
##
#
# RPSL admin
#
class RPSLAdmin(admin.ModelAdmin):
list_display=["repo_path","last_modified","status"]
search_fields=["repo_path"]
##
## RPSL application
##
#
# RPSL application
#
class RPSLApplication(RepoApplication):
repo="rpsl"
model=RPSL
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## cm.validationpolicy application
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# cm.validationpolicy application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.cm.models.validationpolicy import ValidationPolicy
from noc.core.translation import ugettext as _
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## cm.validationpolicysettings application
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# cm.validationpolicysettings application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.cm.models.validationpolicysettings import (
ValidationPolicySettings, ValidationPolicyItem)
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## cm.validationrule application
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# cm.validationrule application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.cm.models.validationrule import ValidationRule
from noc.cm.models.objectfact import ObjectFact
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## crm.subscriber application
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# crm.subscriber application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.crm.models.subscriber import Subscriber
from noc.core.translation import ugettext as _
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## crm.subscriberprofile application
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# crm.subscriberprofile application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.crm.models.subscriberprofile import SubscriberProfile
from noc.core.translation import ugettext as _
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## crm.supplier application
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# crm.supplier application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.crm.models.supplier import Supplier
from noc.core.translation import ugettext as _
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## crm.supplierprofile application
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# crm.supplierprofile application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.crm.models.supplierprofile import SupplierProfile
from noc.core.translation import ugettext as _
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## dns.dnsserver application
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# dns.dnsserver application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.extmodelapplication import ExtModelApplication, view
from noc.dns.models.dnsserver import DNSServer
from noc.core.translation import ugettext as _
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## dns.dnszone application
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# dns.dnszone application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.extmodelapplication import ExtModelApplication, view
from noc.lib.app.modelinline import ModelInline
from noc.lib.app.repoinline import RepoInline
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## dns.dnszoneprofile application
##----------------------------------------------------------------------
## Copyright (C) 2007-2016 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# dns.dnszoneprofile application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.extmodelapplication import ExtModelApplication, view
from noc.dns.models.dnszoneprofile import DNSZoneProfile
from noc.core.translation import ugettext as _
......
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Duplicated FQDNs Report
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
# ---------------------------------------------------------------------
# Duplicated FQDNs Report
# ---------------------------------------------------------------------
# Copyright (C) 2007-2011 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
## NOC modules
# NOC modules
from noc.lib.app.simplereport import SimpleReport
from noc.ip.models import VRF
from noc.core.translation import ugettext as _
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment