Source

trac-ticketlinks / sample-plugins / Timestamp.py

Author Commit Message Labels Comments Date
cboos
Follow-up to r6295: make the file revision string information global to the module. Also enhances the plugins admin panel so that it can show that information.
Branches
trunk
cboos
Add revision information for each single file sample plugin, so that there's some basic tracability when inspecting the plugin source files.
Branches
trunk
cboos
Timestamp sample macro: `strftime` returns UTF-8 string, need to use `to_unicode` here. Fixes #5778. This also updates the sample plugin to use datetime, like the rest of Trac 0.11 is doing. Finally, I've noticed that the win32 specific code in format_datetime is only really necessary for Python 2.3 (related to #2971).
Branches
trunk
cboos
Follow-up to r4621, fix the example macros.
Branches
trunk
cboos
Remove remnants of old-style macros, as we couldn't support them anyway anymore. The wiki-macros folder should be kept, though, at least for 0.11, as it now contains a README documenting the need for a conversion to the new-style macros. Likewise, the example macros (!HelloWorld and Timestamp) have been converted as single file plugins, and placed in the new `sample-plugins` folder. The `sample-plugins` folder could be used for other, small, useful or otherwise illustrative p…
Branches
trunk