python-dependency-injector/examples/catalogs/bundles/views.py

22 lines
438 B
Python
Raw Normal View History

2015-10-19 10:31:21 +03:00
"""Example web views."""
class BaseWebView(object):
"""Example base class of web view."""
def __init__(self, services):
"""Initializer.
:type services: catalogs.Services
2015-10-19 10:31:21 +03:00
:param services: Bundle of service providers
"""
self.services = services
class AuthView(BaseWebView):
"""Example auth web view."""
class PhotosView(BaseWebView):
"""Example photo processing web view."""