On Oct 27, 2006, at 4:40 PM, Trip the Space Parasite wrote:

>
> Noah Kantrowitz wrote:
>> Sorry, I forgot Alec changed how that work in Tags. Append "?
>> hdfdump=1" to any URL in a Trac site and you will see a printout of
>> the HDF. The first chunk should be the hdf.loadpaths variable. It is
>> an array (well index => value mapping) of folders. When looking for a
>> template CS will scan them in order, so just make sure your folder is
>> in front of the Trac ones.
>
> Thanks, hdfdump=1 looks pretty handy!
>
> However, if I'm interpreting the code right, the main Trac code just
> says to each plugin in turn,
> "Gimme your directory list". I could of course modify that code, but
> otherwise I don't see a way for a plugin to demand that its
> contribution be put at the beginning of the list instead of the end.

Instead of returning your directory from the normal chrome handlers,  
you would need to make a post-request plugin that alters the HDF  
after the process_request() is done. You would need to walk the HDF  
to collect what was on it already, insert your entry at the top, and  
shove it all back in the HDF.

--Noah


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/trac-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to