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

22 lines
430 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.
:param services: Bundle of service providers
2015-11-20 14:46:57 +03:00
:type services: catalogs.Services
2015-10-19 10:31:21 +03:00
"""
self.services = services
2015-11-20 14:46:57 +03:00
class Auth(BaseWebView):
2015-10-19 10:31:21 +03:00
"""Example auth web view."""
2015-11-20 14:46:57 +03:00
class Photos(BaseWebView):
2015-10-19 10:31:21 +03:00
"""Example photo processing web view."""