Yeah, I thought about it too, but I'd prefer to avoid saving to the
config file, if possible...

Thanks.

>>
>> The only problem is, I have to manually do:
>>
>> [trac]
>> permission_policies = MyPluginPermissionPolicy,
>> DefaultPermissionPolicy, LegacyAttachmentPolicy
>>
>> in trac.ini. I would like to avoid this, and make my plugin
>> automatically add itself to the permission policies list.
>
> You could possibly access the Config object directly.
>
> env.config.set('trac', 'permission_policies',
> 'MyPluginPermissionPolicy,' + orig_policies)
>
> The only problem is this will be written to the config when .save() is
> called...but if that's your intent anyway...
>

> --
> "Life? Don't talk to me about life." - Marvin
>
> >
>



-- 
Álvaro J. Iradier Muro
Departamento de Desarrollo
[email protected]

Polar Technologies
T +34 976 527 952
F +34 976 466 125
www.polartech.es

Antes de imprimir este mensaje, por favor, compruebe que es verdaderamente
necesario. El medioambiente es cosa de todos.

AVISO LEGAL
Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener
información confidencial, siendo para uso exclusivo del destinatario,
quedando prohibida su divulgación, copia o distribución a terceros sin la
autorización expresa del remitente. Si Vd. ha recibido este mensaje
erróneamente, se ruega lo notifique al remitente y proceda a su borrado.
Gracias por su colaboración.

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to