mirror of
https://git.zavage.net/Zavage-Software/app_skellington.git
synced 2024-12-21 22:29:20 -07:00
backref to root app avail. in context
This commit is contained in:
parent
78695ed62e
commit
6f5a6f5c91
@ -65,7 +65,8 @@ License
|
||||
-------
|
||||
I'm releasing this software under one of the most permissive
|
||||
licenses, the MIT software license. This applies to this source repository
|
||||
and all files within it.
|
||||
and all files within it. Alternatively, you are permitted you
|
||||
to use any of this under the GPL to the fullest legal extent allowed.
|
||||
|
||||
Notes
|
||||
-----
|
||||
|
@ -57,6 +57,11 @@ class ApplicationContainer:
|
||||
logger.configure_logging()
|
||||
|
||||
self.ctx = ApplicationContext(config, logger)
|
||||
|
||||
# Reference to root_app avail. in context
|
||||
self.ctx.root_app = self
|
||||
|
||||
# Reference to context service avail. in root_app
|
||||
self['ctx'] = lambda: self.ctx
|
||||
|
||||
self.cli = cli.CommandTree() # Command-line interface
|
||||
|
Loading…
Reference in New Issue
Block a user