mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-30 05:23:59 +03:00
22 lines
430 B
Python
22 lines
430 B
Python
"""Example web views."""
|
|
|
|
|
|
class BaseWebView(object):
|
|
"""Example base class of web view."""
|
|
|
|
def __init__(self, services):
|
|
"""Initializer.
|
|
|
|
:param services: Bundle of service providers
|
|
:type services: catalogs.Services
|
|
"""
|
|
self.services = services
|
|
|
|
|
|
class Auth(BaseWebView):
|
|
"""Example auth web view."""
|
|
|
|
|
|
class Photos(BaseWebView):
|
|
"""Example photo processing web view."""
|