[Product-Developers] Whats the role/function of borg.localrole package in Plone 4.1?

Gilles Lenfant gilles.lenfant at alterway.fr
Wed Aug 10 21:35:49 UTC 2011


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: nnieto at noenieto.com
> W: http://noenieto.com
> T:  @tzicatl
> Li: Perfil en LinkedIn
> 
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers



More information about the Product-Developers mailing list