Source code for collecting_society_web.views.licensing

# For copyright and license terms, see COPYRIGHT.rst (top level of repository)
# Repository: https://github.com/C3S/collecting_society_web

import logging

from pyramid.view import (
    view_config,
    view_defaults
)

from portal_web.views import ViewBase

log = logging.getLogger(__name__)


[docs] @view_defaults( context='..resources.LicensingResource') class LicensingViews(ViewBase):
[docs] @view_config( name='', permission='authenticated') def root(self): return self.redirect('dashboard')
[docs] @view_config( name='dashboard', renderer='../templates/licensing/dashboard.pt', permission='authenticated') def dashboard(self): return {}