python-dependency-injector/examples/catalogs/bundles/views.py
2015-11-09 10:41:34 +02:00

22 lines
438 B
Python

"""Example web views."""
class BaseWebView(object):
"""Example base class of web view."""
def __init__(self, services):
"""Initializer.
:type services: catalogs.Services
:param services: Bundle of service providers
"""
self.services = services
class AuthView(BaseWebView):
"""Example auth web view."""
class PhotosView(BaseWebView):
"""Example photo processing web view."""