From c93b6fcfdff64667558adee766374298cea85697 Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Tue, 11 Oct 2016 17:45:56 +0300 Subject: [PATCH] Update run script for services example --- README.rst | 16 ++-------------- examples/miniapps/services/run.py | 13 +------------ 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/README.rst b/README.rst index 6bd7e530..397891d8 100644 --- a/README.rst +++ b/README.rst @@ -147,17 +147,11 @@ several IoC containers for some example application: auth_service=Services.auth, photos_service=Services.photos) -Next example demonstrates run of dependency injection example application -defined above: +Next example demonstrates run of example application defined above: .. code-block:: python - """Run dependency injection example application. - - Instructions for running: - - python run.py 1 secret photo.jpg - """ + """Run example application.""" import sys import logging @@ -192,12 +186,6 @@ defined above: # photos_service=example.services.Photos(logger=logger, # db=database, # s3=s3)) - # - # Output: - # - # User 1 has been found in database - # User 1 has been successfully authenticated - # Photo photo.jpg has been successfully uploaded by user 1 Alternative definition styles of providers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/examples/miniapps/services/run.py b/examples/miniapps/services/run.py index ba97c5cd..cb001336 100644 --- a/examples/miniapps/services/run.py +++ b/examples/miniapps/services/run.py @@ -1,9 +1,4 @@ -"""Run dependency injection example application. - -Instructions for running: - - python run.py 1 secret photo.jpg -""" +"""Run example application.""" import sys import logging @@ -38,9 +33,3 @@ if __name__ == '__main__': # photos_service=example.services.Photos(logger=logger, # db=database, # s3=s3)) - # - # Output: - # - # User 1 has been found in database - # User 1 has been successfully authenticated - # Photo photo.jpg has been successfully uploaded by user 1