Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: cvs

interchange - jon modified 3 files

 

 

Interchange cvs RSS feed   Index | Next | Previous | View Threaded


interchange-cvs at icdevgroup

Apr 21, 2008, 10:09 PM

Post #1 of 4 (196 views)
Permalink
interchange - jon modified 3 files

User: jon
Date: 2008-04-22 05:09:44 GMT
Modified: lib/Vend Config.pm Dispatch.pm Server.pm
Log:
Change UserTrack behavior to better match expectations.

* "UserTrack no" formerly also disabled TrackFile, because the whole
Vend::Track module was disabled. This was not expected behavior. People
are apparently using TrackFile fairly commonly, so this would make
"UserTrack no" pretty unattractive.

* Make "UserTrack no" only disable sending the X-Track HTTP response header.

* As before, leaving TrackFile undefined will stop logging to a track file.

* Make UserTrack default to false now, which is an incompatible change, but
one that I don't expect to adversely affect anyone, as the X-Track response
header doesn't seem to get used. Adding "UserTrack yes" to catalog.cfg
brings it back.

In short, most people upgrading will stop having an X-Track response header
sent, and otherwise will notice no difference.

Revision Changes Path
2.235 interchange/lib/Vend/Config.pm


rev 2.235, prev_rev 2.234
Index: Config.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Config.pm,v
retrieving revision 2.234
retrieving revision 2.235
diff -u -u -r2.234 -r2.235
--- Config.pm 26 Feb 2008 13:55:47 -0000 2.234
+++ Config.pm 22 Apr 2008 05:09:44 -0000 2.235
@@ -1,6 +1,6 @@
# Vend::Config - Configure Interchange
#
-# $Id: Config.pm,v 2.234 2008-02-26 13:55:47 markj Exp $
+# $Id: Config.pm,v 2.235 2008-04-22 05:09:44 jon Exp $
#
# Copyright (C) 2002-2008 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -54,7 +54,7 @@
use Vend::Data;
use Vend::Cron;

-$VERSION = substr(q$Revision: 2.234 $, 10);
+$VERSION = substr(q$Revision: 2.235 $, 10);

my %CDname;
my %CPname;
@@ -705,7 +705,7 @@
['ExternalExport', undef, join " ", @External_directives],
['CartTrigger', 'routine_array', ''],
['CartTriggerQuantity', 'yesno', 'no'],
- ['UserTrack', 'yesno', 'yes'],
+ ['UserTrack', 'yesno', 'no'],
['DebugHost', 'ip_address_regexp', ''],
['BounceReferrals', 'yesno', 'no'],




1.96 interchange/lib/Vend/Dispatch.pm


rev 1.96, prev_rev 1.95
Index: Dispatch.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Dispatch.pm,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -u -r1.95 -r1.96
--- Dispatch.pm 25 Feb 2008 10:02:30 -0000 1.95
+++ Dispatch.pm 22 Apr 2008 05:09:44 -0000 1.96
@@ -1,6 +1,6 @@
# Vend::Dispatch - Handle Interchange page requests
#
-# $Id: Dispatch.pm,v 1.95 2008-02-25 10:02:30 racke Exp $
+# $Id: Dispatch.pm,v 1.96 2008-04-22 05:09:44 jon Exp $
#
# Copyright (C) 2002-2008 Interchange Development Group
# Copyright (C) 2002 Mike Heins <mike[at]perusion.net>
@@ -26,7 +26,7 @@
package Vend::Dispatch;

use vars qw($VERSION);
-$VERSION = substr(q$Revision: 1.95 $, 10);
+$VERSION = substr(q$Revision: 1.96 $, 10);

use POSIX qw(strftime);
use Vend::Util;
@@ -1494,8 +1494,9 @@
Vend::Server::set_process_name("$Vend::Cat $CGI::host $sessionid " . ($Vend::Session->{username} || '-') . " $Vend::FinalPath");

# TRACK
- $Vend::Track = new Vend::Track
- if $Vend::Cfg->{UserTrack} and not ($Vend::admin and ! $::Variable->{MV_TRACK_ADMIN});
+ $Vend::Track = Vend::Track->new
+ if ($Vend::Cfg->{UserTrack} or $Vend::Cfg->{TrackFile})
+ and not ($Vend::admin and ! $::Variable->{MV_TRACK_ADMIN});
# END TRACK

if($Vend::Cfg->{DisplayErrors} and $Global::DisplayErrors) {



2.91 interchange/lib/Vend/Server.pm


rev 2.91, prev_rev 2.90
Index: Server.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Server.pm,v
retrieving revision 2.90
retrieving revision 2.91
diff -u -u -r2.90 -r2.91
--- Server.pm 26 Mar 2008 14:19:35 -0000 2.90
+++ Server.pm 22 Apr 2008 05:09:44 -0000 2.91
@@ -1,6 +1,6 @@
# Vend::Server - Listen for Interchange CGI requests as a background server
#
-# $Id: Server.pm,v 2.90 2008-03-26 14:19:35 jon Exp $
+# $Id: Server.pm,v 2.91 2008-04-22 05:09:44 jon Exp $
#
# Copyright (C) 2002-2008 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -26,7 +26,7 @@
package Vend::Server;

use vars qw($VERSION);
-$VERSION = substr(q$Revision: 2.90 $, 10);
+$VERSION = substr(q$Revision: 2.91 $, 10);

use Cwd;
use POSIX qw(setsid strftime);
@@ -565,7 +565,7 @@

# TRACK
$Vend::StatusLine .= "X-Track: " . $Vend::Track->header() . "\r\n"
- if $Vend::Track;
+ if $Vend::Track and $Vend::Cfg->{UserTrack};
# END TRACK
$Vend::StatusLine .= "Pragma: no-cache\r\n"
if delete $::Scratch->{mv_no_cache};
@@ -615,7 +615,7 @@
$| = 1;
select $save;
$Vend::StatusLine .= "\r\nX-Track: " . $Vend::Track->header() . "\r\n"
- if $Vend::Track;
+ if $Vend::Track and $Vend::Cfg->{UserTrack};
# END TRACK
$Vend::StatusLine .= "Pragma: no-cache\r\n"
if delete $::Scratch->{mv_no_cache};
@@ -679,7 +679,7 @@
print $fh canon_status("Content-Type: text/html; charset=$response_charset");
# TRACK
print $fh canon_status("X-Track: " . $Vend::Track->header())
- if $Vend::Track;
+ if $Vend::Track and $Vend::Cfg->{UserTrack};
# END TRACK
}
print $fh canon_status("Pragma: no-cache")





_______________________________________________
interchange-cvs mailing list
interchange-cvs[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-cvs


interchange-cvs at icdevgroup

Apr 28, 2008, 10:38 AM

Post #2 of 4 (169 views)
Permalink
interchange - jon modified 3 files [In reply to]

User: jon
Date: 2008-04-28 17:38:19 GMT
Modified: . MANIFEST WHATSNEW-5.5
Added: eg check_perl_itl
Log:
Add eg/check_perl_itl by Greg Sabino Mullane, for syntax-checking ITL [perl] and [calc] blocks.

Update MANIFEST, add expected 5.5.2 beta release date of tomorrow.

Revision Changes Path
2.223 interchange/MANIFEST


rev 2.223, prev_rev 2.222
Index: MANIFEST
===================================================================
RCS file: /var/cvs/interchange/MANIFEST,v
retrieving revision 2.222
retrieving revision 2.223
diff -u -u -r2.222 -r2.223
--- MANIFEST 17 Apr 2008 15:48:12 -0000 2.222
+++ MANIFEST 28 Apr 2008 17:38:19 -0000 2.223
@@ -17,6 +17,7 @@
code/Filter/dbi_quote.filter
code/Filter/decode_entities.filter
code/Filter/digits.filter
+code/Filter/digits_dash.filter
code/Filter/digits_dot.filter
code/Filter/dos.filter
code/Filter/duration.filter
@@ -293,6 +294,7 @@
code/UserTag/save_cart.tag
code/UserTag/summary.tag
code/UserTag/table_organize.tag
+code/UserTag/timed_display.tag
code/UserTag/title_bar.tag
code/UserTag/ups_query.tag
code/UserTag/usertrack.tag
@@ -328,6 +330,7 @@
code/Widget/uploadhelper.widget
code/Widget/value.widget
code/Widget/yesno.widget
+code/Widget/ynzero.widget
configure
debian/400mod_interchange.info
debian/catalogs.cfg
@@ -368,7 +371,9 @@
debian/makecat.wrapper
debian/po/cs.po
debian/po/de.po
+debian/po/fi.po
debian/po/fr.po
+debian/po/nl.po
debian/po/POTFILES.in
debian/po/pt.po
debian/po/ru.po
@@ -999,11 +1004,13 @@
dist/standard/variables/PAGE_INIT
dist/standard/variables/THEME_CSS
dist/subdomains.cfg
+eg/check_perl_itl
eg/compact
eg/cvv2.svg
eg/filter/calculated.filter
eg/gpg_display
eg/ifdef
+eg/merge-tab-files
eg/news_feature/dbconf/default_db/news.dbm
eg/news_feature/dbconf/mysql/news.mysql
eg/news_feature/dbconf/oracle/news.ora
@@ -1108,6 +1115,7 @@
lib/Vend/Payment/MCVE.pm
lib/Vend/Payment/NetBilling.pm
lib/Vend/Payment/PRI.pm
+lib/Vend/Payment/Protx2.pm
lib/Vend/Payment/PSiGate.pm
lib/Vend/Payment/Sage.pm
lib/Vend/Payment/Signio.pm



1.112 interchange/WHATSNEW-5.5


rev 1.112, prev_rev 1.111
Index: WHATSNEW-5.5
===================================================================
RCS file: /var/cvs/interchange/WHATSNEW-5.5,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -u -r1.111 -r1.112
--- WHATSNEW-5.5 25 Apr 2008 09:08:03 -0000 1.111
+++ WHATSNEW-5.5 28 Apr 2008 17:38:19 -0000 1.112
@@ -7,7 +7,7 @@

See UPGRADE document for a list of incompatible changes.

-Interchange 5.5.2 (unreleased).
+Interchange 5.5.2 released on 2008-04-29.

Core
----
@@ -387,6 +387,18 @@
* Added missing dbconfig-common hooks and set defaults for database name and
database user to interchange-cat-standard Debian package.

+Extra tools
+-----------
+
+* Added -o option to eg/te, which writes output to a file instead of calling
+ an editor.
+
+* Added eg/merge-tab-files, helpful for merging tab-delimited files on
+ matching keys.
+
+* Added eg/check_perl_itl, a helper for syntax-checking [calc] and [perl]
+ blocks in ITL pages from within an editor.
+

------------------------------------------------------------------------------




1.1 interchange/eg/check_perl_itl


rev 1.1, prev_rev 1.0
Index: check_perl_itl
===================================================================
#!/usr/bin/perl -- -*-cperl-*-

## Check all the perl blocks embedded in ITL tags in one or more files
## Greg Sabino Mullane <greg[at]endpoint.com>

use strict;
use warnings;
use Getopt::Long;

our $VERSION = '1.0.1';

@ARGV or show_help();

my $opt= {
verbose => 0,
keeptempfile => 0,
quiet => 0,
};

GetOptions ## no critic (ProhibitCallsToUndeclaredSubs)
($opt,
'verbose+',
'help',
'keeptempfile',
'quiet'
);

$opt->{help} and show_help();

sub show_help {

print qq{
Usage: $0 [Options] filename(s)
Description: Checks that perl blocks in ITL code is valid
Options:
--help Show this help message
--verbose Verbose output
--keeptempfile Do not erase the temporary file(s) created
--quiet Show failing files only

};
exit;
}

my %seenit;
for my $file (@ARGV) {
next if $seenit{$file}++;
if (-d $file) {
$opt->{verbose} and print qq{** Skipping directory "$file"\n};
next;
}
if (! -f $file) {
$opt->{verbose} and print qq{** Skipping "$file"\n};
next;
}
if ($file =~ /\.tmp$/o) {
$opt->{verbose} and print qq{** Skipping temp file "$file"\n};
next;
}
check_perl_itl($file);
}

exit;

sub check_perl_itl {

my $file = shift;
open my $rh, '<', $file or die qq{Could not open "$file": $!\n};

my $tempfile = "$file.perltest.tmp";
open my $wh, '>', $tempfile or die qq{Could not write "$tempfile": $!\n};
$opt->{verbose} >= 2 and print qq{** Wrote "$tempfile"\n};
my $top = qq{#!perl

## Temporary file created by extracting perl blocks from the file "$file"

use strict;
use warnings;
};
$top .= q{use vars qw/
$CGI
$CGI_array
$Carts
$Config
$DbSearch
$Document
$Scratch
$Session
$Tag
$TextSearch
$Tmp
$Values
$Variable
%Sql %Db
/;

};

print $wh $top;
my $templines = $top =~ tr/\n/\n/;

my $inperl = 0;
my $subnum = 0;
my %mapline;
while (<$rh>) {

if (!$inperl) {
next unless m{\[perl\s*([^\]]*)\](.*?)(\[/perl\])?$};
my ($attr,$extra, $closetag) = ($1,$2,$3);
$inperl = 1;
$subnum++;
print $wh "sub perl_itl_$subnum {\n";
$templines++;
if (length $extra and $extra =~ /\S/) {
print $wh "$extra\n";
$mapline{++$templines} = $.;
}
if ($closetag) {
print $wh "\n} ## end of perl_itl_$subnum\n\n";
$templines += 3;
$inperl = 0;
}
next;
}

if (m{(.*)\Q[/perl]}o) {
my $pre = $1;
print $wh "$pre\n} ## end of perl_itl_$subnum\n\n";
$templines += 3;
$inperl = 0;
next;
}

print $wh "$_";
$mapline{++$templines} = $.;
}
close $wh or die qq{Could not close "$tempfile": $!\n};

if ($opt->{verbose} >= 2) {
print "** Subroutines found: $subnum\n";
print "** Lines in original file: $.\n";
print "** Lines in temp file: $templines\n";
}

close $rh or die qq{Could not close "$file": $!\n};

my $errors = qx{perl -c $tempfile 2>&1};
unlink $tempfile unless $opt->{keeptempfile};

if ($errors !~ /had compilation errors/) {
print qq{File "$file" had no Perl problems\n} unless $opt->{quiet};
return;
}

print qq{File "$file" has the following Perl problems:\n};
for my $line (split /\n/ => $errors) {
next if $line =~ /had compilation errors/o;
chomp $line;

$line =~ s/at $tempfile line (\d+)\.?/exists $mapline{$1} ? "(line $mapline{$1})" : "(original line $1)"/e;
print "--> $line\n";
}

return;
}






_______________________________________________
interchange-cvs mailing list
interchange-cvs[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-cvs


interchange-cvs at icdevgroup

May 6, 2008, 10:12 PM

Post #3 of 4 (154 views)
Permalink
interchange - jon modified 3 files [In reply to]

User: jon
Date: 2008-05-07 05:12:04 GMT
Modified: . MANIFEST WHATSNEW-5.5
Added: eg iclint
Log:
Add new iclint tool for checking ITL syntax (roughly).

By Greg Sabino Mullane.

Revision Changes Path
2.226 interchange/MANIFEST


rev 2.226, prev_rev 2.225
Index: MANIFEST
===================================================================
RCS file: /var/cvs/interchange/MANIFEST,v
retrieving revision 2.225
retrieving revision 2.226
diff -u -u -r2.225 -r2.226
--- MANIFEST 7 May 2008 03:57:32 -0000 2.225
+++ MANIFEST 7 May 2008 05:12:04 -0000 2.226
@@ -1010,6 +1010,7 @@
eg/cvv2.svg
eg/filter/calculated.filter
eg/gpg_display
+eg/iclint
eg/ifdef
eg/merge-tab-files
eg/news_feature/dbconf/default_db/news.dbm



1.116 interchange/WHATSNEW-5.5


rev 1.116, prev_rev 1.115
Index: WHATSNEW-5.5
===================================================================
RCS file: /var/cvs/interchange/WHATSNEW-5.5,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -u -r1.115 -r1.116
--- WHATSNEW-5.5 6 May 2008 17:12:18 -0000 1.115
+++ WHATSNEW-5.5 7 May 2008 05:12:04 -0000 1.116
@@ -19,6 +19,8 @@
Extra tools
-----------

+* Added new eg/iclint tool for quick-and-dirty ITL syntax checking.
+
* Improved eg/check_perl_itl error detection.





1.1 interchange/eg/iclint


rev 1.1, prev_rev 1.0
Index: iclint
===================================================================
#!/usr/bin/perl -- -*-cperl-*-

## Check an interchange file for problems.
## Greg Sabino Mullane, greg[at]endpoint.com
## Created because Greg often uses [if foobar] instead of [if scratch foobar]...
## Add stuff to the DATA section as you find it...

use strict;
use warnings;
use Data::Dumper;
use Getopt::Long;

my $VERSION = '1.0.4';

## Set the default arguments
my $icarg =
{
verbose => 0,
dietag => 0,
warntagonce => 0,
errorexit => 1,
};

GetOptions
($icarg,
'verbose=i',
'dietag=i',
'warntagonce=i',
'errorexit=i',
'help',
);

help() if ! @ARGV or $icarg->{help};

sub help {
warn qq{Usage: $0 [args] file1 [file2 file3 ...]
verbose -- detailed output (default=0)
dietag -- die on unknown tags (default=0)
warntagonce -- only show one warning per tag type (default=0)
errorexit -- exit as soon as a problem is found (default=1)
};
exit 1;
}

my $DIE_ON_UNKNOWN_TAG = $icarg->{dietag};
my $ONE_WARNING_PER_TAG = $icarg->{warntagonce};
my $DIE_ON_ERROR = $icarg->{errorexit};
my $VERBOSE = $icarg->{verbose};


my %error;

@ARGV or die qq{Usage: $0 file [file2 file3 ...]\n};

## Read in our tag information
my %tag;
while (<DATA>) {
next unless /^(\w[\w\-]+)\s*(.*)/;
my ($tag,$args) = ($1,$2);
exists $tag{lc $tag} and die qq{Oops - tag defined twice: $tag\n};
for my $arg (split /\s+/ => $args) {
if ($arg =~ /(\w+)=(.+)/) {
my ($c,$d) = ($1,$2);
$tag{lc $tag}{$c} = ($d =~ /,/ or $c eq 'validargs') ? {map {$_,1} split/,/ => $d} : $d;
}
else {
$tag{lc $tag}{$arg}++;
}
}
}
#die Dumper \%tag;

for my $file (@ARGV) {
open my $f, '<', $file or die qq{Could not open "$file": $!\n};
warn "Checking $file...\n";
my $slurp;
{ local $/; $slurp=<$f>; }
## Perl blocks often have comments inside of them, so empty them out first:
$slurp =~ s{(\[perl[^\]]*\]).*?(\[/perl\])}{$1$2}gsmi;

## Empty out all comments, perl, calc, and calcn blocks
$slurp =~ s{(\[comment[^\]]*\]).*?(\[/comment\])}{$1$2}gsmi;
$slurp =~ s{(\[perl[^\]]*\]).*?(\[/perl\])}{$1$2}gsmi;
$slurp =~ s{(\[calcn[^\]]*\]).*?(\[/calcn\])}{$1$2}gsmi;
$slurp =~ s{(\[calc[^n\]]*\]).*?(\[/calc\])}{$1$2}gsmi;

## Get temporary tags
while ($slurp =~ m{\[(?:query|loop)[^\]\[]+prefix=(\w+)}gsmi) {
my $prefix = $1;
if (exists $tag{$prefix} and ! exists $tag{$prefix}{prefix}) {
#error('query','prefix',qq{Bad prefix name used in query tag: "$prefix"});
}
$tag{$prefix}{prefix}=1;
}

## De-nest nested tags and parse them
1 while $slurp =~ s/(\[[^\]]+?)\[([^\]]+?)\]/&parse_tag($2); $1/gsme;

while ($slurp =~ /\[([^\]]+)\]/gsm) {
parse_tag($1);
}

## Any tags not add up?
for my $t (sort keys %tag) {
next unless $tag{$t}{close};
(!exists $tag{$t}{levels} or $tag{$t}{levels} == 0)
or error($t,'badlevel',qq{Bad number of levels: $tag{$t}{levels}});
}

close $f or warn qq{Could not close "$file": $!\n};
}


sub parse_tag {

my $section = shift;

## Collapse it into a single line
$section =~ s/[\n\r]/ /g;

## Is this a closing tag?
my $close = $section =~ s{^\s*/}{} ? 1 : 0;

## Grab the first word as the tag name
$section =~ s/^\s*(\w+)\s*// or die qq{Weird section: $section\n};
my $tag = lc $1;
$section =~ s/\s*$//;
$VERBOSE and printf "Checking tag $tag %s\n", exists $tag{$tag}{levels} ? $tag{$tag}{levels} : '';

## Do we know about this tag yet?
if (!exists $tag{$tag}) {
warn qq{Unknown tag "$tag"\n};
exit if $DIE_ON_UNKNOWN_TAG;
$tag{$tag}{unknown} = 1;
}
return if $tag{$tag}{unknown};

## If this is a named prefix, swap to prefix checking
if ($tag{$tag}{prefix}) {
$tag = 'prefix';
}

## If closeable, track opens and closes for a final count
if ($section !~ /^-/) {
if ($tag{$tag}{close}) {
$tag{$tag}{levels} += $close ? -1 : +1;
}
## If not closeable, yell if we see a closing tag for it
elsif ($close and !$tag{$tag}{closeok}) {
error($tag,'close',q{Closing tag is not allowed});
}
}
## From this point forward, ignore closing tags
return if $close;

## Check validargs if they exists
if ($tag{$tag}{validargs}) {
$section =~ /(\w+)/
or error($tag,'validargs',q{Arguments required, but not found}) and return;
my $arg = $1;
if (!exists $tag{$tag}{validargs}{$arg} and !exists $tag{$arg}{prefix}) {
error($tag,'validargs',qq{Invalid argument "$arg"});
return;
}
}

## Does it meet the minimum number of arguments?
my @words = split /\s+/ => $section;
my $words = @words;

if ($tag{$tag}{minargs}) {
$words >= $tag{$tag}{minargs}
or error($tag,'minargs',qq{Minimum number of arguments not reached: found $words, need $tag{$tag}{minargs}});
}

## Does it allow args at all (rare)
if ($tag{$tag}{noargs} and $words and $section !~ /^-/) {
error($tag,'noargs',qq{No arguments to tag allowed ($section)});
}

return;

} ## end of parsetag


sub error {

my ($tag,$type,$msg) = @_;

$error{$tag}{$type}++;
return if $ONE_WARNING_PER_TAG and $error{$tag}{$type} > 1;

warn qq{ERROR: Tag: "$tag" Problem: $msg\n};
exit if $DIE_ON_ERROR;

return;

} # end of error

__DATA__
## Lines starting with '#' like this one are skipped
## Format: TAGNAME ATTRIBS
## Case does not matter
## Possible attribs:
## close - tag must be closed explicitly
## validargs: list of valid first args, comma-separated
## minargs: minimum number of arguments inside of the tag
## noargs: no arguments are allowed
## closeok - may or may not need a closing tag (e.g. prefixes)

## Basic control
if close minargs=1 validargs=scratch,variable,cgi,type,value,items,session,item,discount,errors,explicit,sql,loop,config,inner,data,module,acclist,file,ordered
then close noargs
either close
else close
elsif close minargs=1 validargs=scratch,variable,cgi,type,value,items,session
unless close
condition close noargs
and minargs=1
or mt

## Blocks and variables
calc close noargs
calcn close xvalidargs=a,b
tmp close
tmpn close
perl close
sql close
scratch minargs=1
scratchd minargs=1
set close minargs=1
seti close minargs=1
cgi minargs=1

## Looping
loop close validargs=list,code,param,option,lr,pos,data,no,calc,filter,prefix,acclist,search,alternate,random
on-match close
no-match close

## Debugging
catch close minargs=1
comment close
dump mt
log close minargs=1 validargs=type
try close validargs=label minargs=1

## Jumping around
bounce validargs=page,href minargs=1
goto minargs=1 validargs=name,

## Shipping related
currency close
delivery validargs=shipmode,cutoff,extra_days,date minargs=1
fly-tax mt
handling mt
item close
quantity noargs
shipping mt
subtotal noargs
total mt

## HTML
area mt
button close minargs=2 validargs=name,text,src,form
form mt
image mt
page minargs=1
selected minargs=1

## Unsorted
assign validargs=clear,
banner close
control mt
convert close minargs=1 validargs=date,
convert_date close minargs=1 validargs=days,fmt
data minargs=2 validargs=session,table,base,products
display validargs=table,name
email close minargs=1 validargs=to,from,subject
error validargs=name,all,std_label,auto
filter close minargs=1
include minargs=1
label minargs=1
list close noargs
modifier close minargs=1
more noargs
no close noargs
process mt
query close
read minargs=1
setup noargs
table close
timed close
userdb minargs=1
value minargs=1
var minargs=1

## Special case:
prefix closeok minargs=1

## Local/unknown tags:
managed-content mt
fancy mt
cms mt
promo mt
city noclose
pagepop mt
map mt
cities close
uk mt






_______________________________________________
interchange-cvs mailing list
interchange-cvs[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-cvs


interchange-cvs at icdevgroup

May 13, 2008, 4:18 PM

Post #4 of 4 (128 views)
Permalink
interchange - jon modified 3 files [In reply to]

User: jon
Date: 2008-05-13 23:18:44 GMT
Modified: . WHATSNEW-5.5
Modified: debian interchange.wrapper makecat.wrapper
Log:
Convert some bash-specific syntax to standard Bourne shell (RT #194).

Revision Changes Path
1.119 interchange/WHATSNEW-5.5


rev 1.119, prev_rev 1.118
Index: WHATSNEW-5.5
===================================================================
RCS file: /var/cvs/interchange/WHATSNEW-5.5,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -u -r1.118 -r1.119
--- WHATSNEW-5.5 13 May 2008 22:49:28 -0000 1.118
+++ WHATSNEW-5.5 13 May 2008 23:18:44 -0000 1.119
@@ -150,6 +150,8 @@
deprecated, so make sure a copy is available here until we switch to a
different module.

+* Converted a few bashisms to standard Bourne shell compatibility (RT #194).
+
Extra tools
-----------




2.4 interchange/debian/interchange.wrapper


rev 2.4, prev_rev 2.3
Index: interchange.wrapper
===================================================================
RCS file: /var/cvs/interchange/debian/interchange.wrapper,v
retrieving revision 2.3
retrieving revision 2.4
diff -u -u -r2.3 -r2.4
--- interchange.wrapper 6 Jul 2003 17:46:45 -0000 2.3
+++ interchange.wrapper 13 May 2008 23:18:44 -0000 2.4
@@ -8,7 +8,7 @@
. /etc/interchange/init.cfg
OPTS="SocketFile=/var/run/interchange/interchange.sock IPCsocket=/var/run/interchange/interchange.sock.ipc PIDfile=/var/run/interchange/interchange.pid --pidfile=/var/run/interchange/interchange.pid --log=/var/log/interchange/error.log --rundir=/var/run/interchange"
CMD="env MINIVEND_STORABLE=$USE_STORABLE MINIVEND_FORCE_THREADS=1 /usr/lib/interchange/bin/interchange $OPTS $@"
-if [ "$UID" -eq 0 ]; then
+if [ "`/usr/bin/id -ru`" -eq 0 ]; then
su -s /bin/sh -c "$CMD" $USER
else
$CMD



2.4 interchange/debian/makecat.wrapper


rev 2.4, prev_rev 2.3
Index: makecat.wrapper
===================================================================
RCS file: /var/cvs/interchange/debian/makecat.wrapper,v
retrieving revision 2.3
retrieving revision 2.4
diff -u -u -r2.3 -r2.4
--- makecat.wrapper 2 Jan 2008 09:21:49 -0000 2.3
+++ makecat.wrapper 13 May 2008 23:18:44 -0000 2.4
@@ -4,7 +4,7 @@
OPTS="--interchangeuser=$USER --linkprogram=/usr/lib/cgi-bin/ic/vlink --documentroot=$DOCROOT --catalogconf=/etc/interchange/catalogs.cfg --serverconf=/etc/apache2/apache2.conf"

CMD="/usr/lib/interchange/bin/makecat $OPTS $@"
-if [ "$UID" -eq 0 ]; then
+if [ "`/usr/bin/id -ru`" -eq 0 ]; then
su -s /bin/sh -c "$CMD" $USER
else
OPTS="$OPTS --nocfg --norunning"





_______________________________________________
interchange-cvs mailing list
interchange-cvs[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-cvs

Interchange cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.