Skip to content

Commit

Permalink
Remove builtin support for Tw2, now in charge of tgext.tw2
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed Mar 4, 2024
1 parent facae42 commit 731a434
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 109 deletions.
101 changes: 0 additions & 101 deletions tg/configurator/components/toscawidgets2.py

This file was deleted.

9 changes: 1 addition & 8 deletions tg/configurator/fullstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from .components.i18n import I18NConfigurationComponent
from .components.caching import CachingConfigurationComponent
from .components.session import SessionConfigurationComponent
from .components.toscawidgets2 import ToscaWidgets2ConfigurationComponent
from .components.statics import StaticsConfigurationComponent

log = logging.getLogger(__name__)
Expand All @@ -34,7 +33,6 @@ class FullStackApplicationConfigurator(MinimalApplicationConfigurator):
- Authentication
- Sessions
- Caching
- Widgets (ToscaWidgets2)
- Databases (Ming and SQLAlchemy)
- Transaction Manager
- Custom Error Pages
Expand All @@ -56,11 +54,6 @@ def __init__(self):
self.register(SessionConfigurationComponent)
self.register(CachingConfigurationComponent)

# from here on, due to TW2, the response is a generator
# so any middleware that relies on the response to be
# a string needs to be applied before this point.
self.register(ToscaWidgets2ConfigurationComponent)

self.register(MingConfigurationComponent)
self.register(SQLAlchemyConfigurationComponent)
self.register(TransactionManagerConfigurationComponent)
Expand All @@ -69,7 +62,7 @@ def __init__(self):
self.register(SeekableRequestConfigurationComponent)
self.register(SlowRequestsConfigurationComponent)
self.register(ErrorReportingConfigurationComponent)

self.register(StaticsConfigurationComponent, after=True)

# Place the debuggers after the registry so that we
Expand Down

0 comments on commit 731a434

Please sign in to comment.