Message8483
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 |
|
| Date |
User |
Action |
Args |
| 2026-08-03 03:05:07 | rouilj | set | messageid: <1785726307.09.0.770801233285.issue2550930@roundup-tracker.org> |
| 2026-08-03 03:05:07 | rouilj | set | recipients:
+ rouilj, ber, ThomasAH |
| 2026-08-03 03:05:07 | rouilj | link | issue2550930 messages |
| 2026-08-03 03:05:07 | rouilj | create | |
|