[Rt-commit] [svn] r1264 - in rt: . branches/3.2-RELEASE/html/Elements branches/3.2-RELEASE/html/NoAuth branches/3.3-TESTING/html/Download/Tabular branches/PLATANO-EXPERIMENTAL/docs/design_docs

autrijus at pallas.eruditorum.org autrijus at pallas.eruditorum.org
Mon Jul 19 22:56:02 EDT 2004


Author: autrijus
Date: Mon Jul 19 22:56:01 2004
New Revision: 1264

Modified:
   rt/   (props changed)
   rt/branches/3.2-RELEASE/html/Elements/Header
   rt/branches/3.2-RELEASE/html/Elements/SetupSessionCookie
   rt/branches/3.2-RELEASE/html/NoAuth/webrt.css
   rt/branches/3.3-TESTING/html/Download/Tabular/dhandler
   rt/branches/PLATANO-EXPERIMENTAL/docs/design_docs/ruleset-workflow.txt
Log:
 
 r6188 at not:  autrijus | 2004-07-20T02:52:39.146361Z
 
 
 
 
 


Modified: rt/branches/3.2-RELEASE/html/Elements/Header
==============================================================================
--- rt/branches/3.2-RELEASE/html/Elements/Header	(original)
+++ rt/branches/3.2-RELEASE/html/Elements/Header	Mon Jul 19 22:56:01 2004
@@ -97,8 +97,8 @@
 </table>
 <%INIT>
 
-$r->header_out('Pragma' => 'no-cache');
-$r->header_out('Cache-control' => 'no-cache');
+$r->headers_out->{'Pragma'} = 'no-cache';
+$r->headers_out->{'Cache-control'} = 'no-cache';
 </%INIT>
 
 <%ARGS>

Modified: rt/branches/3.2-RELEASE/html/Elements/SetupSessionCookie
==============================================================================
--- rt/branches/3.2-RELEASE/html/Elements/SetupSessionCookie	(original)
+++ rt/branches/3.2-RELEASE/html/Elements/SetupSessionCookie	Mon Jul 19 22:56:01 2004
@@ -96,7 +96,7 @@
             -value => $session{_session_id},
             -path  => '/',
         );
-        $r->header_out('Set-Cookie', $cookie->as_string);
+        $r->headers_out->{'Set-Cookie'} = $cookie->as_string;
 
     } 
 

Modified: rt/branches/3.2-RELEASE/html/NoAuth/webrt.css
==============================================================================
--- rt/branches/3.2-RELEASE/html/NoAuth/webrt.css	(original)
+++ rt/branches/3.2-RELEASE/html/NoAuth/webrt.css	Mon Jul 19 22:56:01 2004
@@ -381,5 +381,5 @@
 </%flags>
 <%init>
 $r->content_type('text/css');
-$r->header_out('Expires' ,'+30m');
+$r->headers_out->{'Expires'} = '+30m';
 </%init>

Modified: rt/branches/3.3-TESTING/html/Download/Tabular/dhandler
==============================================================================
--- rt/branches/3.3-TESTING/html/Download/Tabular/dhandler	(original)
+++ rt/branches/3.3-TESTING/html/Download/Tabular/dhandler	Mon Jul 19 22:56:01 2004
@@ -37,7 +37,7 @@
 
 #$r->content_type( 'application/octet-stream' );
 $r->content_type( 'text/plain' );
-$r->header_out( 'Content-Disposition' => "attachment; filename=$filename" );
+$r->headers_out->{'Content-Disposition'} = "attachment; filename=$filename";
 $m->clear_buffer();
 $m->out(join("\t", "Id", map $_->[1], @cols), "\n");
 foreach my $id (@ids) {

Modified: rt/branches/PLATANO-EXPERIMENTAL/docs/design_docs/ruleset-workflow.txt
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL/docs/design_docs/ruleset-workflow.txt	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL/docs/design_docs/ruleset-workflow.txt	Mon Jul 19 22:56:01 2004
@@ -1,6 +1,11 @@
+# For an online version, see http://wiki.bestpractical.com/?RulesetWorkflow
+
+_*This is a design document for a work in progress.
+It describes features that do not exist today and may never exist*_
+
 == Text Description
 
-* The user of OrderRequest queue fill in a numeric "CF", called "Price".
+* The user of PurchaseOrder queue fill in a numeric "CF", called "Price".
 * On creation, it needs to create following approvals:
 ** "ManagerApproval" if CF.Price is > 1000
 ** "PresidentApproval" if CF.Price is > 2000
@@ -39,13 +44,19 @@
   UNLESS RulesetLocked $Argument
       DO CreateTicketWithRuleset $Argument
 
+=== RuleAction "CreateTicketWithRuleset"
+
+  GIVEN $Ticket AS CreateTicket(@OtherArguments)
+     DO SetTicketRuleSet $Argument
+     DO RunTicketRuleSet $Argument
+  
 === GlobalRule "AquireLocks"
 
 * AppliesTo: All Objects
 * Condition: OnCreate
 * Action: AquireMyLocks
 
-=== Queue "OrderRequest"
+=== Queue "PurchaseOrder"
 
 * Rule:
 ** Condition: OnCreate
@@ -63,17 +74,17 @@
 * Rule:
 ** Condition: OnCreate 
 ** Condition: CF.Price > 1000
-** Action: TryCreateTicketWithRuleset "Manager"
+** Action: TryCreateTicketWithRuleset "ManagerApproval"
 
 * Rule:
 ** Condition: OnCreate 
 ** Condition: CF.Price > 2000
-** Action: TryCreateTicketWithRuleset "President"
+** Action: TryCreateTicketWithRuleset "PresidentApproval"
 
 * Rule:
 ** Condition: OnCreate 
 ** Condition: "Finance" is not blocked
-** Action: TryCreateTicketWithRuleset "Finance"
+** Action: TryCreateTicketWithRuleset "FinanceApproval"
 
 * Rule:
 ** Condition: OnReject


More information about the Rt-commit mailing list