[interchange-cvs] interchange - edl modified 2 files

interchange-core@interchange.redhat.com interchange-core@interchange.redhat.com
Thu Oct 25 20:18:00 2001


User:      edl
Date:      2001-10-26 00:17:33 GMT
Modified:  lib/Vend Interpolate.pm Parse.pm
Log:
While working on the docs I found that addAttr had been disabled for [order],
and consequently parameters like cart, page, etc were being ignored. Restored
it and added the line in Interpolate to handle an optional cartname.

Revision  Changes    Path
2.24      +5 -2      interchange/lib/Vend/Interpolate.pm


rev 2.24, prev_rev 2.23
Index: Interpolate.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.23
retrieving revision 2.24
diff -u -r2.23 -r2.24
--- Interpolate.pm	2001/10/19 00:32:37	2.23
+++ Interpolate.pm	2001/10/26 00:17:32	2.24
@@ -1,6 +1,6 @@
 # Vend::Interpolate - Interpret Interchange tags
 # 
-# $Id: Interpolate.pm,v 2.23 2001/10/19 00:32:37 mheins Exp $
+# $Id: Interpolate.pm,v 2.24 2001/10/26 00:17:32 edl Exp $
 #
 # Copyright (C) 1996-2001 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -27,7 +27,7 @@
 require Exporter;
 @ISA = qw(Exporter);
 
-$VERSION = substr(q$Revision: 2.23 $, 10);
+$VERSION = substr(q$Revision: 2.24 $, 10);
 
 @EXPORT = qw (
 
@@ -6238,6 +6238,9 @@
 	push(@parms, "mv_order_item=$code");
 	push(@parms, "mv_order_mv_ib=$opt->{base}")
 		if($opt->{base});
+
+	push(@parms, "mv_cartname=$opt->{cart}")
+		if($opt->{cart});
 
 	push(@parms, "mv_order_quantity=$quantity")
 		if($quantity);



2.5       +3 -2      interchange/lib/Vend/Parse.pm


rev 2.5, prev_rev 2.4
Index: Parse.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Parse.pm,v
retrieving revision 2.4
retrieving revision 2.5
diff -u -r2.4 -r2.5
--- Parse.pm	2001/10/18 09:34:29	2.4
+++ Parse.pm	2001/10/26 00:17:32	2.5
@@ -1,6 +1,6 @@
 # Vend::Parse - Parse Interchange tags
 # 
-# $Id: Parse.pm,v 2.4 2001/10/18 09:34:29 mheins Exp $
+# $Id: Parse.pm,v 2.5 2001/10/26 00:17:32 edl Exp $
 #
 # Copyright (C) 1996-2001 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -35,7 +35,7 @@
 
 @ISA = qw(Exporter Vend::Parser);
 
-$VERSION = substr(q$Revision: 2.4 $, 10);
+$VERSION = substr(q$Revision: 2.5 $, 10);
 
 @EXPORT = ();
 @EXPORT_OK = qw(find_matching_end);
@@ -263,6 +263,7 @@
 					item_list       1
 					loop			1
 					onfly			1
+					order			1
 					page            1
 					mail            1
 					msg				1