Subject: Developers of Sympa
List archive
- 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
-
Q regarding scenarios,
Christian Mock, 01/20/2004
- Re: [sympa-dev] Q regarding scenarios, Christian Mock, 01/20/2004
- Re: [sympa-dev] Q regarding scenarios, Olivier Salaun - CRU, 01/21/2004
Archive powered by MHonArc 2.6.19+.