-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Note about the API on CPSInstaller and the event service subscribers :

To get a subscriber :
- ----------------------

>>> evtool = getToolByName(portal, 'portal_eventservice')
>>> subscriber = evtool.getSubscriberByName('portal_trees')

getSubscriberByName(susbcriber_name, default) supports a default value
argument if not found.

To enable / disable :
- -----------------------

>>> subscriber.enable()
>>> subscriber.disable()

CPSInstaller API :
- --------------------

>>> installer.disableEventSubscriber('portal_trees')
>>> installer.enableEventSubscriber('portal_trees')

Think about doing it for portal_trees and portal_subscriptions at least
within your product installers to speed up the installation sccripts and
avoid notifications at update time in those cases.

Cheers,

        J.

Julien Anguenot wrote:
> Hi all,
> 
> You may now enable / disable event service subscribers.
> 
> For instance, within your installer you may disable the portal_trees
> subscriber to avoid the trees to be rebuilt several times for nothing.
> 
> It's checked in within the HEAD branch of CPSCore.
> 
> Cheers,
> 
>       J.
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Plateform : http://www.cps-project.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFCZ33gGhoG8MxZ/pIRAtcSAJ9FfiBP2N5VR3zqBlOzBx4luuWsSwCcDX94
X46YjfKH4E1sa8MQQJjTxqc=
=D7PY
-----END PGP SIGNATURE-----
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to