Message7077
On Thu, Feb 11, 2021 at 11:08:46PM +0000, John Rouillard wrote:
> Ralf do you have feedback here?
John, Christof,
what do you think about factoring out the call to get_tracker into a
preload method, something along the lines of (untested, if you agree
I'll implement this):
class RequestDispatcher(object):
def __init__(self, home, debug=False, timing=False, lang=None):
...
self.preload()
def preload(self):
""" trigger pre-loading of imports and templates """
with self.get_tracker():
pass
Then derived classes may easily override the preload method if needed
and we still have preloading the default.
Ralf
--
Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16
Open Source Consulting www: www.runtux.com
Reichergasse 131, A-3411 Weidling email: office@runtux.com |
|
Date |
User |
Action |
Args |
2021-02-12 09:27:39 | schlatterbeck | set | recipients:
+ schlatterbeck, rouilj, cmeerw, tttech-klonner |
2021-02-12 09:27:39 | schlatterbeck | link | issue2551112 messages |
2021-02-12 09:27:39 | schlatterbeck | create | |
|