On 09/22/2010 11:23 AM, Martin Scharrer wrote:
> On 09/22/2010 03:58 AM, Russ Tyndall wrote:
>> Hello,
>>
>> The 
>> TimingAndEstimationPlugin<http://trac-hacks.org/wiki/TimingAndEstimationPlugin>has
>> a user
>> manual<http://trac-hacks.org/browser/timingandestimationplugin/branches/trac0.12/timingandestimationplugin/usermanual.py>that
>> I upgrade
>> through the standard
>> IEnvironmentSetupParticipant<http://trac-hacks.org/browser/timingandestimationplugin/branches/trac0.12/timingandestimationplugin/api.py#L214>functions.
>>  Its a bit kludgey but it has been working through a couple
>> versions of trac and thus I haven't needed to upgrade for anything better.
>> I also haven't needed to deal with i18n yet, so I'm not sure how that would
>> affect my strategy.  I certainly like your package resouce stuff, better
>> than my giant python string :)
> 
> Thanks, but the package resource stuff comes from Trac itself. I just
> had a look in trac.wiki.admin.
> I would also like to set the wiki pages read-only, and I'm not sure if
> this is possible with that code.

I know decided to go with a IRequestHandler which uses `format_to_html`
to deliver the manual pages stored in wiki format in the plugin EGG
structure. This way the Trac installation does not have to store any
manual files which makes upgrades very easy. Also, multiple
installations share one set of files which are not changeable at all by
the users. No WIKI_VIEW permission is needed as well.

Regards,
Martin
(martin_s)
_______________________________________________
th-users mailing list
[email protected]
https://lists.trac-hacks.org/mailman/listinfo/th-users

Reply via email to