Le 10 août 2011 à 18:50, Noe Nieto a écrit :

> Hi, I'm developing some functionality that requires the use of local roles.
> 
> I see that borg.localrole is included with the Plone 4.1 distribution. What 
> function does it perform on a vainilla plone?

Nothing (in a vanilla Plone) ;)

More seriously, borg.localrole grants additional roles if you provide an 
adapter for your contents that implement 
borg.localrole.interfaces.ILocalroleProvider.

This means that you need to put some code in your Plone site or add-on to have 
the effect of this plugin.

Read the doctests in its various modules to see how this works. Have a look at 
the code in https://svn.plone.org/svn/collective/collective.groupspace.roles/ 
to see how it's used in real life.

-- 
Gilles Lenfant

> 
> 
> -- 
> ---
> Noe Nieto
> NNieto Consulting Services
> M: [email protected]
> W: http://noenieto.com
> T:  @tzicatl
> Li: Perfil en LinkedIn
> 
> _______________________________________________
> Product-Developers mailing list
> [email protected]
> https://lists.plone.org/mailman/listinfo/plone-product-developers

_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to