[interchange-cvs] interchange - jon modified 2 files

interchange-core@interchange.redhat.com interchange-core@interchange.redhat.com
Wed Jun 5 22:15:01 2002


User:      jon
Date:      2002-06-06 02:14:48 GMT
Modified:  lib/Vend Tag: STABLE_4_8-branch Interpolate.pm Parse.pm
Log:
Restore addAttr setting to [order] tag, so that options work (such as
'base' and 'cart').

Change what looked like a bug (and in any case was undocumented):
'area' option is now a boolean which makes [order] act like [area] instead
of [page], and the 'page' option applies in either case.

Revision  Changes    Path
No                   revision



No                   revision



2.9.2.16  +3 -4      interchange/lib/Vend/Interpolate.pm


rev 2.9.2.16, prev_rev 2.9.2.15
Index: Interpolate.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.9.2.15
retrieving revision 2.9.2.16
diff -u -u -r2.9.2.15 -r2.9.2.16
--- Interpolate.pm	18 Mar 2002 20:18:59 -0000	2.9.2.15
+++ Interpolate.pm	6 Jun 2002 02:14:47 -0000	2.9.2.16
@@ -1,6 +1,6 @@
 # Vend::Interpolate - Interpret Interchange tags
 # 
-# $Id: Interpolate.pm,v 2.9.2.15 2002/03/18 20:18:59 jon Exp $
+# $Id: Interpolate.pm,v 2.9.2.16 2002/06/06 02:14:47 jon Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -27,7 +27,7 @@
 require Exporter;
 @ISA = qw(Exporter);
 
-$VERSION = substr(q$Revision: 2.9.2.15 $, 10);
+$VERSION = substr(q$Revision: 2.9.2.16 $, 10);
 
 @EXPORT = qw (
 
@@ -6120,7 +6120,6 @@
 sub tag_order {
     my($code,$quantity,$opt) = @_;
 	$opt = {} unless $opt;
-    my($r);
 	my @parms = (
 					"mv_action=refresh",
 				  );
@@ -6137,7 +6136,7 @@
 	$opt->{page} = find_special_page('order')
 		unless $opt->{page};
 
-	return form_link($opt->{area}, $opt->{arg}, $opt)
+	return form_link($opt->{page}, $opt->{arg}, $opt)
 		if $opt->{area};
 	return tag_page($opt->{page}, $opt->{arg}, $opt);
 }



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


rev 2.0.2.6, prev_rev 2.0.2.5
Index: Parse.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Parse.pm,v
retrieving revision 2.0.2.5
retrieving revision 2.0.2.6
diff -u -u -r2.0.2.5 -r2.0.2.6
--- Parse.pm	28 Feb 2002 14:41:59 -0000	2.0.2.5
+++ Parse.pm	6 Jun 2002 02:14:47 -0000	2.0.2.6
@@ -1,6 +1,6 @@
 # Vend::Parse - Parse Interchange tags
 # 
-# $Id: Parse.pm,v 2.0.2.5 2002/02/28 14:41:59 racke Exp $
+# $Id: Parse.pm,v 2.0.2.6 2002/06/06 02:14:47 jon Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -35,7 +35,7 @@
 
 @ISA = qw(Exporter Vend::Parser);
 
-$VERSION = substr(q$Revision: 2.0.2.5 $, 10);
+$VERSION = substr(q$Revision: 2.0.2.6 $, 10);
 
 @EXPORT = ();
 @EXPORT_OK = qw(find_matching_end);
@@ -271,6 +271,7 @@
 					mvasp           1
 				    nitems			1
 				    options			1
+					order			1
 					perl            1
 					price			1
 					profile			1