Re: allowing content rules to be launched by other rules

thomas desvenain <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <CAFn5D-gsY6kWuoOv96LQzb6TirmE6WTqGGfaz069ZFhUzRwZ=Q@mail.gmail.com>
On Mon, Jul 8, 2013 at 8:18 PM, ajung <[email protected]> wrote:

> -1 - sounds like yet another level of complexity and featurism that is not
> often needed.
> Explict configuration of multiple rules is more obvious and easy to handle
> than stuff happening magically under the hood.




> Keep it simple, keep it clear
> and obvious.
>

The current behavior is absolutely not obvious, not clear and not simple.
Anyone think that if he has got a "publish when added" rule and a "notify
when publish" rule,
then if he adds a content, it will be published and a notification will be
send.
It doesn't, and only people that read the code understand this is a
feature, not a bug.
The alternative for user, having two rules (a rule that publish AND notify
when added, and an other rule that notify when added), and assign them on
different parts of the website, do not keep it simple.

Having an option to allow this would, at least, document the default
behaviour.

We already have an option "stop rules after this one". The one i suggest is
not more complex. It is actually at the same level of complexity and at the
same level of intervention.



>
> -aj
>
>
> thomas desvenain wrote
> > Hi
> >
> > Today, a content rule can't be launched by an event triggered during the
> > execution of an other rule.
> > This avoids behavior unexpected for user an probably many errors.
> > the 'rule_filter' ensures that.
> >
> > But I think that it could be useful that sometimes, a rule can be
> > triggered
> > from an other rule.
> >
> > for example : a rule that automatically 'publish' a content when it is
> > added should trigger a rule that sends an email when a content is
> > published.
> >
> > What do you think about an option on the rule, unselected by default, to
> > allow the rule to be launched during an other rule ?
> >
> > I would be pleased to implement it, but I'd like to know about your
> > opinion.
> >
> > Thanks
> >
> > Thomas
> >
> > --
> > Thomas Desvenain
> >
> > Téléphone : 09 51 37 35 18
> >
> >
> ------------------------------------------------------------------------------
> > This SF.net email is sponsored by Windows:
> >
> > Build for Windows Store.
> >
> > http://p.sf.net/sfu/windows-dev2dev
> > _______________________________________________
> > Plone-developers mailing list
>
> > [email protected]
>
> > https://lists.sourceforge.net/lists/listinfo/plone-developers
>
>
>
>
>
> --
> View this message in context:
> http://plone.293351.n2.nabble.com/allowing-content-rules-to-be-launched-by-other-rules-tp7566479p7566508.html
> Sent from the Core Developers mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Plone-developers mailing list
> Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/plone-developers
>



-- 
Thomas Desvenain

Téléphone : 09 51 37 35 18

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.