noc.lib.app.site

Module Contents

noc.lib.app.site.logger
class noc.lib.app.site.ProxyNode

Bases: object

noc.lib.app.site.HTTP_METHODS
class noc.lib.app.site.URL(url, name=None, method=None)

Bases: object

URL Data wrapper

__repr__(self)
__str__(self)
class noc.lib.app.site.Site

Bases: object

Application site. Registers applications, builds menu and handling views

folder_glyps
urls

Returns URLConf

rx_namespace
register_named_view(self, mod_ns, app_ns, name, view)

Register named application view

iter_view_urls(self, view)

Generator returning view’s URL objects

site_access(self, app, view)

Curry application with access

site_view(self, app, view_map)

Decorator for application view

register_app_menu(self, app, view=None)
register_url_resolver(self, app)
register_views(self, app, app_resolver)

Register application views :param app: :param app_resolver: :return:

register(self, app_class)

Schedule application class to be installed to the router. Scheduling is necessary to allow the class decorators to add custom views

Parameters:app_class
Returns:
do_register(self, app_class)

Actually register class

Parameters:app_class
Returns:
add_module_menu(self, m)
autodiscover(self)

Auto-load and initialize all application classes

reverse(self, url, *args, **kwargs)

Reverse URL. Use common django url reversing scheme kwargs QUERY handled as query part

sort_menu(self)

Sort application menu

get_menu_id(self, path)
add_contributor(self, cls, contributor)
iter_predefined_reports(self)
noc.lib.app.site.site