On 5/20/24 16:12, RjOllos wrote:
On Monday, May 13, 2024 at 1:57:07 PM UTC-7 s mcgraw wrote:

    Hello all,

    I am new to Trac and am looking into migrating an old in-house task 
tracking system to Trac and had a couple questions.

    1. Most of the existing tickets and doc being migrated are rst and we will continue 
that practice so not requiring every entry to be wrapped in a "{{{#!rst" block 
would be nice.  Is it possible make the default wiki formatting engine the 
reStructuredText one rather than Trac's native one?

You can do that with a plugin. MarkdownMacro has the feature for Markdown. It 
would be straightforward to copy the implementation for RST.
https://trac-hacks.org/wiki/MarkdownMacro

    2. I would like dates/times to display in absolute format but in an ISO-like format with the 
"T" replaced with a space and with seconds and timezone left off: "2024-02-01 
13:26".  Is this possible?

There are some configuration options:
https://trac.edgewall.org/wiki/TracIni#trac-default_date_format-option

If you want to remove the "T" and other mods, maybe some JavaScript 
customization. Or you can write likely write a plugin that hooks into the datetime 
formatting methods.

Thanks for the pointer to MarkdownMacro, I'll take a close look at that.  I'm 
still trying to grok the plugin architecture and the Trac code in general so it 
may take a bit.

I'm not sure I understand your suggestion of using a plugin for modifying the ISO 
datetime format.  That would require some existing extension points in the datetime 
module wouldn't it?  I don't think I saw anything that looked like that.  For now I made 
a hack in the datetime module to modify the ISO format output which seems work ok but 
it's quite possible I'll discover down the line that I broke something else so it would 
be nice to find a way that's more "approved".

-- Stuart

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/80813375-0f92-46a7-9c13-caf752f2731f%40gmail.com.

Reply via email to