Roundup Tracker - Issues

Message7074

Author cmeerw
Recipients cmeerw, rouilj, schlatterbeck, tttech-klonner
Date 2021-02-10.07:37:23
Message-id <1612942643.87.0.478694468956.issue2551112@roundup.psfhosted.org>
In-reply-to
The main complication now is that get_tracker is called before __init__ 
has finished, so a simple implementation that would use a single 
tracker instance (maybe because you know you WSGI server is single-
threaded anyway) doesn't work any more:

class MyRequestDispatcher(RequestDispatcher):
    def __init__(self, home):
        RequestDispatcher.__init__(self, home)
        self._tracker = roundup.instance.open(self.home, not 
self.debug)

    @contextmanager
    def get_tracker(self):
        yield self._tracker
History
Date User Action Args
2021-02-10 07:37:23cmeerwsetmessageid: <1612942643.87.0.478694468956.issue2551112@roundup.psfhosted.org>
2021-02-10 07:37:23cmeerwsetrecipients: + cmeerw, schlatterbeck, rouilj, tttech-klonner
2021-02-10 07:37:23cmeerwlinkissue2551112 messages
2021-02-10 07:37:23cmeerwcreate