2021.4 #19
@ -11,11 +11,10 @@ class ApplicationTemplate(TemplateFileABC):
|
|||||||
self._name = 'application.py'
|
self._name = 'application.py'
|
||||||
self._path = 'src/'
|
self._path = 'src/'
|
||||||
self._value = textwrap.dedent("""\
|
self._value = textwrap.dedent("""\
|
||||||
from cpl.application.application_abc import ApplicationABC
|
from cpl.application import ApplicationABC, ApplicationRuntimeABC
|
||||||
from cpl.application.application_runtime_abc import ApplicationRuntimeABC
|
from cpl.configuration import ConfigurationABC
|
||||||
from cpl.configuration.configuration_abc import ConfigurationABC
|
from cpl.console import Console
|
||||||
from cpl.console.console import Console
|
from cpl.dependency_injection import ServiceProviderABC
|
||||||
from cpl.dependency_injection.service_provider_abc import ServiceProviderABC
|
|
||||||
|
|
||||||
|
|
||||||
class Application(ApplicationABC):
|
class Application(ApplicationABC):
|
||||||
|
@ -11,7 +11,7 @@ class MainWithApplicationHostAndStartupTemplate(TemplateFileABC):
|
|||||||
self._name = 'main.py'
|
self._name = 'main.py'
|
||||||
self._path = 'src/'
|
self._path = 'src/'
|
||||||
self._value = textwrap.dedent("""\
|
self._value = textwrap.dedent("""\
|
||||||
from cpl.application.application_builder import ApplicationBuilder
|
from cpl.application import ApplicationBuilder
|
||||||
|
|
||||||
from application import Application
|
from application import Application
|
||||||
from startup import Startup
|
from startup import Startup
|
||||||
@ -48,7 +48,7 @@ class MainWithApplicationHostTemplate(TemplateFileABC):
|
|||||||
self._name = 'main.py'
|
self._name = 'main.py'
|
||||||
self._path = 'src/'
|
self._path = 'src/'
|
||||||
self._value = textwrap.dedent("""\
|
self._value = textwrap.dedent("""\
|
||||||
from cpl.application.application_builder import ApplicationBuilder
|
from cpl.application import ApplicationBuilder
|
||||||
|
|
||||||
from application import Application
|
from application import Application
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ class MainWithoutApplicationHostTemplate(TemplateFileABC):
|
|||||||
self._name = 'main.py'
|
self._name = 'main.py'
|
||||||
self._path = 'src/'
|
self._path = 'src/'
|
||||||
self._value = textwrap.dedent("""\
|
self._value = textwrap.dedent("""\
|
||||||
from cpl.console.console import Console
|
from cpl.console import Console
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -11,10 +11,9 @@ class StartupTemplate(TemplateFileABC):
|
|||||||
self._name = 'startup.py'
|
self._name = 'startup.py'
|
||||||
self._path = 'src/'
|
self._path = 'src/'
|
||||||
self._value = textwrap.dedent("""\
|
self._value = textwrap.dedent("""\
|
||||||
from cpl.application.application_runtime_abc import ApplicationRuntimeABC
|
from cpl.application import ApplicationRuntimeABC, StartupABC
|
||||||
from cpl.application.startup_abc import StartupABC
|
from cpl.configuration import ConfigurationABC
|
||||||
from cpl.configuration.configuration_abc import ConfigurationABC
|
from cpl.dependency_injection import ServiceProviderABC
|
||||||
from cpl.dependency_injection.service_provider_abc import ServiceProviderABC
|
|
||||||
|
|
||||||
|
|
||||||
class Startup(StartupABC):
|
class Startup(StartupABC):
|
||||||
|
Loading…
Reference in New Issue
Block a user