Roundup Tracker - Issues

Message8483

Author rouilj
Recipients ThomasAH, ber, rouilj
Date 2026-08-03.03:05:06
Message-id <1785726307.09.0.770801233285.issue2550930@roundup-tracker.org>
In-reply-to
Third way add __getattribute__() to TemplatingUtils. Look up name first in
self.client.instance.templating_utils. If not found look up as instance attribute.

This is a problem if internal names starting with '_' are allowed to be registered.
So registerUtil and registerUtilMethod prevent any name starting with underscore '_'.

I am still unsure if registerutilMethod by manipulating the class attributes could
leak changes into trackers running in other threads. If it does, I may have to figure
out how to create a templating_utils_method dict and call the functions in it like
a method would be called.

See: add_localReplace_to_all_templates.diff
History
Date User Action Args
2026-08-03 03:05:07rouiljsetmessageid: <1785726307.09.0.770801233285.issue2550930@roundup-tracker.org>
2026-08-03 03:05:07rouiljsetrecipients: + rouilj, ber, ThomasAH
2026-08-03 03:05:07rouiljlinkissue2550930 messages
2026-08-03 03:05:07rouiljcreate