geonode.base

Subpackages

Submodules

Attributes

default_app_config

Classes

NotificationsAppConfigBase

Base class for AppConfig notifications setup

BaseAppConfig

Base class for AppConfig notifications setup

Functions

register_url_event([event_type])

Decorator on views, which will register url event

register_event(request, event_type, resource)

Wrapper function to be used inside views to collect event and resource

register_proxy_event(request)

Process request to geoserver proxy. Extract layer and ows type

Package Contents

class geonode.base.NotificationsAppConfigBase[source]

Bases: django.apps.AppConfig

Base class for AppConfig notifications setup

You should subclass it and provide list of notifications in NOTIFICATIONS attribute to automatically register to post_migrate signal.

NOTIFICATIONS
_get_logger()[source]
_register_notifications(*args, **kwargs)[source]
ready()[source]
class geonode.base.BaseAppConfig[source]

Bases: geonode.notifications_helper.NotificationsAppConfigBase

Base class for AppConfig notifications setup

You should subclass it and provide list of notifications in NOTIFICATIONS attribute to automatically register to post_migrate signal.

name = 'geonode.base'[source]
NOTIFICATIONS[source]
geonode.base.register_url_event(event_type=None)[source]

Decorator on views, which will register url event

usage:

>>> register_url_event()(TemplateView.view_as_view())
geonode.base.register_event(request, event_type, resource)[source]

Wrapper function to be used inside views to collect event and resource

Parameters:
  • request – Request object

  • event_type – name of event type

  • resource – string (then resource type will be url) or Resource instance

>>> from geonode.base import register_event
>>> def view(request):
        register_event(request, 'view', layer)
geonode.base.register_proxy_event(request)[source]

Process request to geoserver proxy. Extract layer and ows type

geonode.base.default_app_config = 'geonode.base.BaseAppConfig'[source]