Hi everybody,

I'm working on a plugin that needs to add itself to the list of
IPermissionPolicies, something like:

        permission_system = PermissionSystem(self.env)
        permission_system.policies.insert(0, self)

However this isn't working, because "policies" is a property:

 policies = OrderedExtensionsOption('trac', 'permission_policies',
       IPermissionPolicy,
       'DefaultPermissionPolicy, LegacyAttachmentPolicy',
       False,
       """List of components implementing `IPermissionPolicy`, in the order in
       which they will be applied. These components manage fine-grained access
       control to Trac resources.
       Defaults to the DefaultPermissionPolicy (pre-0.11 behavior) and
       LegacyAttachmentPolicy (map ATTACHMENT_* permissions to realm specific
       ones)""")


Deleting the property doesn't work either.

Is there a "clean" or black-magic way of programatically doing this,
with no need to set the permission policies in trac.ini?

Thanks very much.

-- 
Á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