Skip to Content.
Sympa Menu

devel - Re: [sympa-dev] Q regarding scenarios

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Olivier Salaun - CRU <address@concealed>
  • To: Christian Mock <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-dev] Q regarding scenarios
  • Date: Wed, 21 Jan 2004 08:58:01 +0100

No, '-1' means that the condition was not met, whatever the action is it is ignored.
We are then evaluating the next rule. If no rule is left, the default 'true() -> do_it' is evaluated.

Christian Mock wrote:

I try to understand the scenario code, and I see the following
(sub request_action, List.pm:4246 in sympa-4.0.a7):

if ($result == -1) {
do_log('debug3',"rule
$rule->{'condition'},$rule->{'auth_method'},$rule->{'action'} rejected");
next;
}

As I understand the code, -1 means that the action was "reject", and the
"next" goes to the next action -- which would mean that a reject action before a do_it action would not trigger unless the conditions for the
do_it were _not_ met -- is this just me misunderstanding the code, or
is this a bug?

--
Olivier Salaun
Comite Reseau des Universites





Archive powered by MHonArc 2.6.19+.

Top of Page