Mercurial > p > roundup > code
diff roundup/instance.py @ 7045:ca90f7270cd4 issue2550923_computed_property
merge from main tip. This should fix test failure in Markdown2TestCase.test_string_markdown_code_block_attribute by merging html diff method used in tests.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 07 Nov 2022 22:58:38 -0500 |
| parents | e1588ae185dc 408fd477761f |
| children | 82bbb95e5690 |
line wrap: on
line diff
--- a/roundup/instance.py Thu Apr 21 16:54:17 2022 -0400 +++ b/roundup/instance.py Mon Nov 07 22:58:38 2022 -0500 @@ -134,9 +134,11 @@ extension(self) detectors = self.get_extensions('detectors') db = env['db'] - # *Must* call post_init! It is not an error if called multiple times. - db.post_init () db.tx_Source = None + # Useful for script when multiple open calls happen. Scripts have + # to inject the i18n object, there is currently no support for this + if hasattr(self, 'i18n'): + db.i18n = self.i18n # apply the detectors for detector in detectors: @@ -166,8 +168,9 @@ "non-existent class %s" % (classname, propname, linkto)) - db.post_init() self.db_open = 1 + # *Must* call post_init! It is not an error if called multiple times. + db.post_init() return db def load_interfaces(self):
