Roundup Tracker - Issues

Message8482

Author rouilj
Recipients ThomasAH, ber, rouilj
Date 2026-08-03.02:16:33
Message-id <1785723393.8.0.875063191833.issue2550930@roundup-tracker.org>
In-reply-to
This is a second try to provide a default implementation of localReplace that can be
overridden using the extension method.

I define __localReplace(message) in TemplatingUtils.

In __getattr__ I look up the name in self.client.instance.templating_utils. If it is not
found, check to see if the name is 'localReplace'. If so, return self.__localReplace.

This allows a fallback for _localReplace so we can add it in the right places in the templates.
But it doesn't support overriding existing TemplatingUtils methods.

See: add_localReplace_to_all_templates2.diff
History
Date User Action Args
2026-08-03 02:16:33rouiljsetmessageid: <1785723393.8.0.875063191833.issue2550930@roundup-tracker.org>
2026-08-03 02:16:33rouiljsetrecipients: + rouilj, ber, ThomasAH
2026-08-03 02:16:33rouiljlinkissue2550930 messages
2026-08-03 02:16:33rouiljcreate