Running:

Plone 3.0.1
Zope 2.10.4


I am working on a product that will add extra local roles managed in the
@@sharing view in Plone (sharing tab).

I've added the necessary code into configure.zcml and localroles.py of
my product.  However, when I place my product within the /Products
directory the new local roles appear within the sharing tab of existing
and newly created Plone instances, even though my Product has never been
installed. I would like to be able to only have these roles apply when
the Product is installed. Any help is greatly appreciated!


Mike



My files are below:


File: configure.zcml

...

<!-- Local roles managed in the @@sharing view -->

    <utility
        name="Manager"
        factory=".localroles.ManagerRole"
        />

    <utility
        name="Owner"
        factory=".localroles.OwnerRole"
        />
...


File: localroles.py

from zope.interface import implements
from plone.app.workflow.interfaces import ISharingPageRole

from Products.CMFPlone import PloneMessageFactory as _

class ManagerRole(object):
    implements(ISharingPageRole)

    title = u"Manager"
    required_permission = 'Manage portal'

class OwnerRole(object):
    implements(ISharingPageRole)

    title = u"Owner"
    required_permission = 'Manage portal'






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

Reply via email to