comparison roundup/instance.py @ 6536:b78c45828e42

post_init must be called on the database .. otherwise things set up in post_init (notably rev_multilink properties) will be missing. Note that post_init is idempotent and can be called multiple times.
author Ralf Schlatterbeck <rsc@runtux.com>
date Mon, 29 Nov 2021 11:31:14 +0100
parents 808f7a8ed2b6
children e1588ae185dc 408fd477761f
comparison
equal deleted inserted replaced
6535:47b4391e1503 6536:b78c45828e42
131 # reload extensions and detectors 131 # reload extensions and detectors
132 for extension in self.get_extensions('extensions'): 132 for extension in self.get_extensions('extensions'):
133 extension(self) 133 extension(self)
134 detectors = self.get_extensions('detectors') 134 detectors = self.get_extensions('detectors')
135 db = env['db'] 135 db = env['db']
136 # *Must* call post_init! It is not an error if called multiple times.
137 db.post_init ()
136 db.tx_Source = None 138 db.tx_Source = None
137 139
138 # apply the detectors 140 # apply the detectors
139 for detector in detectors: 141 for detector in detectors:
140 detector(db) 142 detector(db)

Roundup Issue Tracker: http://roundup-tracker.org/