On Apr 9, 7:26 am, Jeff Hammel <jham...@openplans.org> wrote: > I hope to write an interface, IComputedFieldProvider (or similar), soon which > will fake computed fields with an ITemplateStreamFilter. A better solution > would be to patch Trac core to do this. But yeah, its a common problem and > its annoying to do. See (e.g.) the TracHoursPlugin for an example of this > (field: totalhours). > > Jeff <snip>
actually, patching trac core to do this, IMHO, is a worse solution. That's what the "provider" interfaces are for. In reference to the "better solution" comment: I don't think you'd want an ITemplateStreamFilter, but promote your solution to something else here. Although, the solution you are working on has the merits of being one of the easier solutions, and might end up being more flexible to leverage to other tasks as well. Either way, I am curious to see your solution if you make it public. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---