On Sat, Dec 3, 2011 at 8:26 AM, Chris Nelson <[email protected]>wrote:
> On 12/02/2011 06:18 PM, osimons wrote: > >> On Dec 2, 9:55 pm, Chris Nelson<[email protected]**> wrote: >> >>> I can set up an extension point but my question is "where do I get the >>> >>> name from that I put in trac.ini to enable/disable each instance? >>> Presumably, I'd use the same name in an ExtensionOption. >>> >>> trac.ini: >>> >>> teamcalendar.calendar.**TeamCalendar = enabled >>> tracjsgantt.tracpm.**SimpleCalendar = disabled >>> >>> or in my source: >>> >>> cal = ExtensionOption('TracPM', >>> 'calendar', >>> IResourceCalendar, >>> 'teamcalendar.calendar.**TeamCalendar') >>> >>> But those names are an educated guess and I'd rather know how to >>> derive/create them than hope I'm right. >>> >> >> ExtensionPoint makes the magic by itself and loads the components for you, but does not provide access to read entries under components section . If you want to read that I think you should consider using env.config object . If you want to know whether a given component is enabled , there's one such method somewhere AFAICR in ComponentManager or its metaclass (if any ;). CMIIW guys ;) -- Regards, Olemis Facebook => http://www.facebook.com/olemis Twitter => http://www.twitter.com/olemislc (@olemislc) Blog ES => http://simelo-es.blogspot.com Blog EN => http://simelo-en.blogspot.com Quora => http://www.quora.com/olemis Youtube => http://youtube.com/user/greatsoftw Featured article : Adios Google Wave ... vivirás en nuestros servidores http://simelo-es.blogspot.com/2011/11/adios-google-wave-viviras-en-nuestros_24.html Get a signature like this. <http://r1.wisestamp.com/r/landing?promo=17&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_17> CLICK HERE.<http://r1.wisestamp.com/r/landing?promo=17&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_17> -- You received this message because you are subscribed to the Google Groups "Trac Users" 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-users?hl=en.
