From admins at hal.eu Sun Jul 2 12:25:28 2006 From: admins at hal.eu (admins@hal.eu) Date: Sun Jul 2 12:25:31 2006 Subject: [ic] Haksior Message-ID: <20060702162521.573131B67AD@mail.perusion.com> We invite on site http://haksior.com The Haksior is with peck of software the service. Quite free programmes. The best programmes. The science of service of systems, all for free. We invite on site http://haksior.com From drtester at netzero.com Mon Jul 3 00:43:41 2006 From: drtester at netzero.com (drtester@netzero.com) Date: Mon Jul 3 00:44:40 2006 Subject: [ic] Menus and category list in 5.4.1 Message-ID: <20060702.214411.21868.264466@webmail61.nyc.untd.com> How then would someone edit content from the UI? -- "Paul Jordan" wrote: interchange-users-bounces@icdevgroup.org wrote: >> And a last question: why on earth would the content editing be hidden >> by default? Editing pages I would think is one of the most basic >> things people would want to do. > > I must have missed something as I would like to know the > rationale/direction with this move also. I might be completely incorrect, and just going off what I came to "think I know" along the way. However I am fairly certain the content editor is deprecated in the sense that it was getting very buggy and the dev group was not certain they were going to attempt to maintain it. Maybe someone can correct me. Paul Jordan _______________________________________________ interchange-users mailing list interchange-users@icdevgroup.org http://www.icdevgroup.org/mailman/listinfo/interchange-users _____________________________________________________________________ PrivatePhone - FREE telephone number & voicemail. A number so private, you can make it public. http://www.privatephone.com From eric_bont at hotmail.com Mon Jul 3 06:53:44 2006 From: eric_bont at hotmail.com (Eric Bont) Date: Mon Jul 3 06:54:20 2006 Subject: [ic] rate 2006 ups standard Message-ID: Hi, I want to use UPS standard with the lastest (2006) rates. Does anyone know how I can update the UPS tables and how I can use standard UPS? Thanks Eric From paul at gishnetwork.com Mon Jul 3 11:24:52 2006 From: paul at gishnetwork.com (Paul Jordan) Date: Mon Jul 3 11:25:11 2006 Subject: [ic] Menus and category list in 5.4.1 In-Reply-To: <20060702.214411.21868.264466@webmail61.nyc.untd.com> Message-ID: <20060703152502.8BBC11B6826@mail.perusion.com> interchange-users-bounces@icdevgroup.org wrote: > -- "Paul Jordan" wrote: > interchange-users-bounces@icdevgroup.org wrote: >>> And a last question: why on earth would the content editing be >>> hidden by default? Editing pages I would think is one of the most >>> basic things people would want to do. >> >> I must have missed something as I would like to know the >> rationale/direction with this move also. > > > I might be completely incorrect, and just going off what I > came to "think I know" along the way. However I am fairly > certain the content editor is deprecated in the sense that it > was getting very buggy and the dev group was not certain they > were going to attempt to maintain it. > > Maybe someone can correct me. > > Paul Jordan > > How then would someone edit content from the UI? > Please post correctly. As I said, I was just saying what I came to "feel" that - over the changes in IC, and the posts to the list, I am not on the Dev Group. I remember talking at some point with Mike and he was telling me about some editor built into Mozilla that was able to edit the pages. Maybe an html editor of your choice, I dunno. Maybe the content editor works. I do know people still use it, whether they are using 5.4 or not I don't know. I used it myself in the beginning (4.8), but it soon started having many bugs, at least for me, with rendering and interpolation. Now I only use VI for its simplicity. Send an email to the list with a better subject line asking what people use to edit their ITL pages with (not including CLI editors) - That should be interesting. Remember not to top post too. Paul From tim.g at edsd.com Mon Jul 3 14:13:08 2006 From: tim.g at edsd.com (Tim Good) Date: Mon Jul 3 14:12:18 2006 Subject: [ic] Problems using SearchOp Message-ID: <200607031815.k63IFYBW003384@email.edsd.com> I am trying to create my own op for searching on $somedate ge than today. Folling directions at: http://www.icdevgroup.org/pipermail/interchange-users/2005-A pril/042874.html Which differ slightly from: http://www.icdevgroup.org/interchange-doc-5.2.0/frames/icdat abase_32.html Interchange: 5.4.1 stable, Perl: Perl 5.8.7 non-threaded Here is what I put in my catelog.cfg : ## Custom search op for greater than todays date ## used to filter auctions which haven't started yet ## from search results. CodeDef auctionstart SearchOp CodeDef auctionstart Routine < References: <200606282040.04869.kevin@cursor.biz> Message-ID: On Jun 28, 2006, at 2:40 PM, Kevin Walsh wrote: > Joshua Lavin wrote: >> Using IC 5.4.0, Interchange::Link for mod_perl2. >> >> My special_pages/missing.html does not return a header of 404/Not >> found. Rather they return 200/OK. This is not desired. >> >> When I used Mod::Interchange, I used the 'tag' tag in missing.html: >> >> [tag op=header] >> Status: 404 Not found >> Content-type: text/html; charset=ISO-8859-1 >> [/tag] >> >> This no longer works with IC:Link (gives a blank page). Also reported >> here: >> http://www.icdevgroup.org/pipermail/interchange-users/2006-March/ >> 045144.html >> >> I believe the problem stems from this code in Link.pm: >> >> elsif($set_status =~ /^404/) { >> #warn "404 not found status\n"; >> close (SOCK) or die "close: $!\n"; >> return Apache2::Const::OK; >> } >> >> Is there any reason why this could not return >> Apache2::Const::NOT_FOUND? Would that not allow us to use a >> missing.html? (Could I use an ErrorDocument then, delivered by IC?) >> >> Anyone else having this problem? >> > My "missing" pages use the [tag] code you posted above. I use > mod_interchange everywhere and that works fine. In fact, I was > going to commit that [tag] code to the Standard demo. I won't do > that now. > > I don't have an Interchange::Link setup to play with but, looking > at the code, it seems that you might be able to get away with the > following (completely untried and untested) patch: [snipped] > I'm not sure whether the NOT_FOUND return code is necessary. It's > probably not; OK is probably sufficient. If the NOT_FOUND proves to > be incorrect then just remove the "-" lines and forget the "+" lines, > otherwise apply the whole patch and see what it does. Thanks for the help, Kevin. Your patch gave me the missing.html with Apache's 404 page appended. :-) I got IC to return a simple 404 with this patch to Link.pm v1.10: ------------------------------------------------------------ --- Link.pm.orig 2006-06-28 09:39:41.000000000 -0500 +++ Link.pm 2006-07-03 13:47:01.000000000 -0500 @@ -746,7 +746,7 @@ elsif($set_status =~ /^404/) { #warn "404 not found status\n"; close (SOCK) or die "close: $!\n"; - return Apache2::Const::OK; + return Apache2::Const::NOT_FOUND; } elsif($set_status eq 'httpd_deliver') { $deliver_object = $set_status; ------------------------------------------------------------ If you use the [tag] code as above, this will return a 404, but it *uses the default Apache 404 page*. Without the [tag] code, it gives missing.html with a 200 status. I wanted the best of both worlds (I have a custom IC-generated missing page), so I put "ErrorDocument 404 /special_pages/ missing2.html" in my apache conf, and made a symlink to ../ special_pages from CATROOT/pages. I created the missing2.html page without the [tag] code, and had to use @@MV_SUBJECT@@ instead of [subject]. Note that this was on a catalog at the root URL. -- Josh Lavin Kingdom Design http://www.kingdomdesign.com/ From tom at ttucker.com Mon Jul 3 21:08:12 2006 From: tom at ttucker.com (Tom Tucker) Date: Mon Jul 3 21:08:47 2006 Subject: [ic] Problems using SearchOp In-Reply-To: <200607031815.k63IFYBW003384@email.edsd.com> Message-ID: > I am trying to create my own op for searching on $somedate > ge than today. > Folling directions at: > http://www.icdevgroup.org/pipermail/interchange-users/2005-A > pril/042874.html > Which differ slightly from: > http://www.icdevgroup.org/interchange-doc-5.2.0/frames/icdat > abase_32.html > > Interchange: 5.4.1 stable, Perl: Perl 5.8.7 non-threaded > Here is what I put in my catelog.cfg : > [snip] > And the error I get is: > > search error: Limit subroutine creation: Can't use an > undefined value as an ARRAY reference at > /usr/local/interchange/lib/Vend/Search.pm line 653. > > Is this option, to create a custom op, still active in my > version stated above? I have the same problem with 5.4.0 stable. I copies the CodeDef form the sample into VENDROOT/interchange.cfg and I get the same error. Tom From bob at nleaudio.com Tue Jul 4 00:56:19 2006 From: bob at nleaudio.com (Bob Puff@NLE) Date: Tue Jul 4 00:55:46 2006 Subject: [ic] Breadcrumbs? Message-ID: <44A9F4F3.1070302@nleaudio.com> > Now I'm wondering if my install is messed up. In 5.4.1, The blue line > on the top heading under the "Home - Log in - Your Cart - ..." > displays > the text: > > [breadcrumbs reset-on-product=1] > > This is on the standard demo cart. > > How do I fix this? > > Bob > > Sample URL: http://nleaudio.net/cgi-bin/bobtest/ Does anyone have an idea on this one? What would cause this tag not to be interpreted? Bob From bob at nleaudio.com Tue Jul 4 01:26:34 2006 From: bob at nleaudio.com (Bob Puff@NLE) Date: Tue Jul 4 01:25:49 2006 Subject: [ic] Breadcrumbs? Message-ID: <44A9FC0A.1000002@nleaudio.com> After further digging, it seems as if the breadcrumbs.tag is not being loaded. I tried adding an include to the bottom of the catalog.cfg, but get the following on a restart: Low traffic settings. Calling UI......UI is loaded... Interchange V5.4.1 Running with new signals, external programs could be unreliable. Re-run with environment variable PERL_SIGNALS set to "unsafe" to change this. Configuring catalog bobtest...Using MySQL, DSN=dbi:mysql:nleaudio_teststore...Us erTag 'breadcrumbs' subroutine failed safe check: 'require' trapped by operation mask at (eval 332) line 4, line 189. done. Not sure what is the next step. Bob From joachim at schubis-dd.de Tue Jul 4 01:50:28 2006 From: joachim at schubis-dd.de (Joachim Schubert) Date: Tue Jul 4 01:49:53 2006 Subject: [ic] Breadcrumbs? In-Reply-To: <44A9F4F3.1070302@nleaudio.com> References: <44A9F4F3.1070302@nleaudio.com> Message-ID: <20060704055028.GA723@cubus.zuhause.lan> On Tue, Jul 04, 2006 at 12:56:19AM -0400, Bob Puff@NLE wrote: > > Now I'm wondering if my install is messed up. In 5.4.1, The blue line > > on the top heading under the "Home - Log in - Your Cart - ..." > > displays > > the text: > > > > [breadcrumbs reset-on-product=1] > > > > This is on the standard demo cart. > > > > How do I fix this? > > ---snip--- In my install (from source) the breadcrumbs.tag is in: VENDROOT/code/template_tag/standard/breadcrumbs.tag The makecat copies among others this file from directory CATROOT/standard/config/ to this place. HTH Achim -- From jon at endpoint.com Tue Jul 4 02:23:22 2006 From: jon at endpoint.com (Jon Jensen) Date: Tue Jul 4 02:23:36 2006 Subject: [ic] Breadcrumbs? In-Reply-To: <44A9FC0A.1000002@nleaudio.com> References: <44A9FC0A.1000002@nleaudio.com> Message-ID: On Tue, 4 Jul 2006, Bob Puff@NLE wrote: > After further digging, it seems as if the breadcrumbs.tag is not being loaded. > I tried adding an include to the bottom of the catalog.cfg, but get the following on a restart: > > Low traffic settings. > Calling UI......UI is loaded... > Interchange V5.4.1 > Running with new signals, external programs could be unreliable. > Re-run with environment variable PERL_SIGNALS set to "unsafe" to change this. > Configuring catalog bobtest...Using MySQL, DSN=dbi:mysql:nleaudio_teststore...Us > erTag 'breadcrumbs' subroutine failed safe check: 'require' trapped by operation > mask at (eval 332) line 4, line 189. > > done. > > Not sure what is the next step. As another poster intimated, try including it in interchange.cfg. Jon -- Jon Jensen End Point Corporation http://www.endpoint.com/ From augustine.andrew at gmail.com Tue Jul 4 09:28:36 2006 From: augustine.andrew at gmail.com (Andrew N) Date: Tue Jul 4 09:28:47 2006 Subject: [ic] Cart Spawned in New Browser Window on Click and Auto Refreshed? Message-ID: <78e8b7ef0607040628q778a5735p6b2d6e4534965c97@mail.gmail.com> Greetings. Is there a way to, when a link is clicked, have the cart pop up in a separate browser window (I'll call it Window B and I'll call the original page Window A). Then the user is browsing still in Window A and adding items to the cart through Window A. The page does not go the cart page, but stays on the same page, possibly the same position of the page, in Window A. However the cart is updated in Window B upon item additions and deletions? Thank you in advance! Andy From bob at nleaudio.com Tue Jul 4 10:09:49 2006 From: bob at nleaudio.com (Bob Puff) Date: Tue Jul 4 10:06:43 2006 Subject: [ic] Breadcrumbs? Message-ID: <44AA76AD.8080305@nleaudio.com> > In my install (from source) the breadcrumbs.tag is in: > VENDROOT/code/template_tag/standard/breadcrumbs.tag > > The makecat copies among others this file from directory > CATROOT/standard/config/ > to this place. Yes, as it is in my install as well. However, I don't see any place where CATROOT/standard/config/*.tag was included. > As another poster intimated, try including it in interchange.cfg. I tried adding it to the interchange.cfg file as such: # Include individual usertags. include usertag/*.tag include /home/nleaudio/catalogs/bobtest/standard/config/breadcrumbs.tag ...but still, no love. It does get rid of the error (once I removed it from the catalog.cfg), but IC still is not parsing that tag. Could it have anything to do with this message that I get when I start IC: Running with new signals, external programs could be unreliable. Re-run with environment variable PERL_SIGNALS set to "unsafe" to change this. Bob From bob at nleaudio.com Tue Jul 4 10:20:10 2006 From: bob at nleaudio.com (Bob Puff) Date: Tue Jul 4 10:16:58 2006 Subject: [ic] Breadcrumbs? Message-ID: <44AA791A.1020705@nleaudio.com> I did just find this: http://www.gossamer-threads.com/lists/interchange/users/38451 ...which advises this: > Edit this file: /path/to/interchange/bin/interchange > and make the second line read: > $ENV{PERL_SIGNALS} = "unsafe"; That got rid of the warning message when I restart IC, but breadcrumbs still isn't working. sigh. Bob From interchange at hertell.com Tue Jul 4 10:28:08 2006 From: interchange at hertell.com (Rene Hertell) Date: Tue Jul 4 10:28:43 2006 Subject: [ic] Breadcrumbs? In-Reply-To: <44AA791A.1020705@nleaudio.com> References: <44AA791A.1020705@nleaudio.com> Message-ID: <44AA7AF8.6000605@hertell.com> Bob Puff wrote: > I did just find this: > http://www.gossamer-threads.com/lists/interchange/users/38451 > > ...which advises this: > >> Edit this file: /path/to/interchange/bin/interchange >> and make the second line read: >> $ENV{PERL_SIGNALS} = "unsafe"; > > That got rid of the warning message when I restart IC, but breadcrumbs > still isn't working. sigh. What about other *.tag-files that you have in your UserTag directory (i have them in /home/interch/interchange/code/UserTag). Do they work? try for example with the [env] tag. Does it give you any output? If it does, then IC includes that dir and it's files.. What about file permissions? Any wrong user that owns that file, etc.? Ren? From bob at nleaudio.com Tue Jul 4 14:40:27 2006 From: bob at nleaudio.com (Bob Puff) Date: Tue Jul 4 14:37:11 2006 Subject: [ic] Breadcrumbs? Solved! Message-ID: <44AAB61B.3000108@nleaudio.com> Hi Gang, I found a solution! Rene pointed me to the directory that holds all the global usertags that IC uses. breadcrumbs.tag wasn't in there! Once I copied it there, everything works now! The fix, for those reading the archive: cp -a VENDROOT/standard/config/breadcrumbs.tag VENTROOT/code/UserTag/ (where VENDROOT for me is /usr/local/interchange) Kind of strange how it didn't work when I included it in the main interchange.cfg file, but perhaps it was a certain order or something. I did have all the permissions correct. Can this be fixed in CVS? Bob P.S. I found another site running a recent IC that has the same problems, so this must not be unique to me. From paul at gishnetwork.com Tue Jul 4 15:36:21 2006 From: paul at gishnetwork.com (Paul Jordan) Date: Tue Jul 4 15:36:35 2006 Subject: [ic] Location specific injected global code - or DEV setting? Message-ID: <20060704193626.8CD901B6607@mail.perusion.com> Hello list, IC 5.4 I was wondering how feasible it would be to have VENDROOT code be included in specific locations in all sub catalogs. First, for example, I'd be interested in including *any* catalog.cfg style directives/text in interchange.cfg. Possibly like: CatalogCfgPrepend * < References: <20060704193626.8CD901B6607@mail.perusion.com> Message-ID: <200607050105.54494.kevin@cursor.biz> "Paul Jordan" wrote: > I was wondering how feasible it would be to have VENDROOT code be included > in specific locations in all sub catalogs. First, for example, I'd be > interested in including *any* catalog.cfg style directives/text in > interchange.cfg. Possibly like: > > CatalogCfgPrepend * < > # DEV account login > UserDB projects_access user_field username > UserDB projects_access database projects_access > UserDB projects_access time_field none > UserDB projects_access crypt 0 > EOS > > Notice the * as in a possible: > > CatalogCfgPrepend catalogfoo catalogbar < EOS > Have you considered the ConfigAllBefore global directive, which defaults to catalog_before.cfg? That file would cover all websites under the configured Interchange instance, although you could probably restrict to specific websites using an "ifdef", along with some sort of website list regex. I'm thinking here of separate websites, configured with Catalog. You mentioned SubCatalogs. SubCatalogs will inherit settings from their master Catalog, so master settings for hash-type directives should be "prepended" already. > > Also, in some global VEDROOT way, could it be possible to include code > html/itl prepended into specific template variables? > > Possibly like > > TemplatePrepend LEFTONLY_TOP < > [if !scratch active][bounce getaccess][/if] > > EOS > Again, perhaps you could define (in the catalog_before.cfg config) a LEFTONLY_TOP_PREPEND variable, and then use __LEFTONLY_TOP_PREPEND__ in your LEFTONLY_TOP definition. -- _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/ From kevin at cursor.biz Wed Jul 5 08:36:34 2006 From: kevin at cursor.biz (Kevin Walsh) Date: Wed Jul 5 08:36:58 2006 Subject: [ic] Problems using SearchOp In-Reply-To: <200607031815.k63IFYBW003384@email.edsd.com> References: <200607031815.k63IFYBW003384@email.edsd.com> Message-ID: <200607051336.35586.kevin@cursor.biz> "Tim Good" wrote: > I am trying to create my own op for searching on $somedate > ge than today. > Folling directions at: > http://www.icdevgroup.org/pipermail/interchange-users/2005-A > pril/042874.html > Which differ slightly from: > http://www.icdevgroup.org/interchange-doc-5.2.0/frames/icdat > abase_32.html > > Interchange: 5.4.1 stable, Perl: Perl 5.8.7 non-threaded > Here is what I put in my catelog.cfg : > > ## Custom search op for greater than todays date > ## used to filter auctions which haven't started yet > ## from search results. > CodeDef auctionstart SearchOp > CodeDef auctionstart Routine < sub { > my ($self, $i, $pat) = @_; > $pat = reverse($pat); > $pat = qr($pat)i; > > return sub { > my $itemstart = shift; > return ($itemstart ge "2006-07-03 00:00:00"); > }; > } > You don't need the two $pat lines in there, by the way. They were useful in the code you copied/pasted but are not used at all in your code. On the other hand, you might want to pass your date string in as a mv_searchspec (se=yourdatestring), and capture that in $pat, instead of hard-coding the value in your code. > > And the error I get is: > > search error: Limit subroutine creation: Can't use an > undefined value as an ARRAY reference at > /usr/local/interchange/lib/Vend/Search.pm line 653. > Try this patch: *** lib/Vend/Search.pm- Wed Jul 5 12:44:01 2006 --- lib/Vend/Search.pm Wed Jul 5 13:30:27 2006 *************** *** 649,656 **** $c->[$i] =~ tr/ \t//; my $o = $c->[$i]; $c->[$i] = $s->{mv_numeric}[$i] ! ? [ @{$numopmap{$o}} ] ! : [ @{$stropmap{$o}} ]; if(! $c->[$i]) { my $r; $c->[$i] = [$r, $o], next --- 649,656 ---- $c->[$i] =~ tr/ \t//; my $o = $c->[$i]; $c->[$i] = $s->{mv_numeric}[$i] ! ? $numopmap{$o} ! : $stropmap{$o}; if(! $c->[$i]) { my $r; $c->[$i] = [$r, $o], next The dereference and re-reference seems wasteful to me, and is the cause of the problem you reported. If there's a reason for doing that, and I can't see one, then it can be done later in the code. -- _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/ From tim.g at edsd.com Wed Jul 5 09:44:48 2006 From: tim.g at edsd.com (Tim Good) Date: Wed Jul 5 09:45:33 2006 Subject: [ic] Problems using SearchOp In-Reply-To: <200607051336.35586.kevin@cursor.biz> Message-ID: <200607051348.k65DmkUr020977@email.edsd.com> > -----Original Message----- > From: interchange-users-bounces@icdevgroup.org > [mailto:interchange-users-bounces@icdevgroup.org] On Behalf > Of Kevin Walsh > Sent: Wednesday, July 05, 2006 6:37 AM > To: interchange-users@icdevgroup.org > Subject: Re: [ic] Problems using SearchOp > > "Tim Good" wrote: > > I am trying to create my own op for searching on $somedate ge than > > today. > > Folling directions at: > > http://www.icdevgroup.org/pipermail/interchange-users/2005-A > > pril/042874.html > > Which differ slightly from: > > http://www.icdevgroup.org/interchange-doc-5.2.0/frames/icdat > > abase_32.html > > > > Interchange: 5.4.1 stable, Perl: Perl 5.8.7 non-threaded > Here is what > > I put in my catelog.cfg : > > > > ## Custom search op for greater than todays date ## used to filter > > auctions which haven't started yet ## from search results. > > CodeDef auctionstart SearchOp > > CodeDef auctionstart Routine < > sub { > > my ($self, $i, $pat) = @_; > > $pat = reverse($pat); > > $pat = qr($pat)i; > > > > return sub { > > my $itemstart = shift; > > return ($itemstart ge "2006-07-03 00:00:00"); > > }; > > } > > > You don't need the two $pat lines in there, by the way. They > were useful in the code you copied/pasted but are not used at > all in your code. Thanks for pointing this out. I had realized that. > > On the other hand, you might want to pass your date string in > as a mv_searchspec (se=yourdatestring), and capture that in > $pat, instead of hard-coding the value in your code. > This was exactly my original thoughts but hard coded it to lessen the Troubleshooting points. > > > > And the error I get is: > > > > search error: Limit subroutine creation: Can't use an > undefined value > > as an ARRAY reference at /usr/local/interchange/lib/Vend/Search.pm > > line 653. > > > Try this patch: > > *** lib/Vend/Search.pm- Wed Jul 5 12:44:01 2006 > --- lib/Vend/Search.pm Wed Jul 5 13:30:27 2006 > *************** > *** 649,656 **** > $c->[$i] =~ tr/ \t//; > my $o = $c->[$i]; > $c->[$i] = $s->{mv_numeric}[$i] > ! ? [ @{$numopmap{$o}} ] > ! : [ @{$stropmap{$o}} ]; > if(! $c->[$i]) { > my $r; > $c->[$i] = [$r, $o], next > --- 649,656 ---- > $c->[$i] =~ tr/ \t//; > my $o = $c->[$i]; > $c->[$i] = $s->{mv_numeric}[$i] > ! ? $numopmap{$o} > ! : $stropmap{$o}; > if(! $c->[$i]) { > my $r; > $c->[$i] = [$r, $o], next > > The dereference and re-reference seems wasteful to me, and is > the cause of the problem you reported. If there's a reason > for doing that, and I can't see one, then it can be done > later in the code. > Kevin thank you for you time in figuring out the patch.That is exactly What the doctor ordered. Cheers! > -- > _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ > _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n > W a l s h > _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz > _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/ > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > From racke at linuxia.de Wed Jul 5 10:15:29 2006 From: racke at linuxia.de (Stefan Hornburg) Date: Wed Jul 5 10:18:45 2006 Subject: [ic] Problems using SearchOp In-Reply-To: <200607051348.k65DmkUr020977@email.edsd.com> References: <200607051348.k65DmkUr020977@email.edsd.com> Message-ID: <44ABC981.6000003@linuxia.de> Tim Good wrote: >>-----Original Message----- >>From: interchange-users-bounces@icdevgroup.org >>[mailto:interchange-users-bounces@icdevgroup.org] On Behalf >>Of Kevin Walsh >>Sent: Wednesday, July 05, 2006 6:37 AM >>To: interchange-users@icdevgroup.org >>Subject: Re: [ic] Problems using SearchOp >> >>"Tim Good" wrote: >> >>>I am trying to create my own op for searching on $somedate ge than >>>today. >>>Folling directions at: >>>http://www.icdevgroup.org/pipermail/interchange-users/2005-A >>>pril/042874.html >>>Which differ slightly from: >>>http://www.icdevgroup.org/interchange-doc-5.2.0/frames/icdat >>>abase_32.html >>> >>>Interchange: 5.4.1 stable, Perl: Perl 5.8.7 non-threaded >> >>Here is what >> >>>I put in my catelog.cfg : >>> >>>## Custom search op for greater than todays date ## used to filter >>>auctions which haven't started yet ## from search results. >>>CodeDef auctionstart SearchOp >>>CodeDef auctionstart Routine <>>sub { >>> my ($self, $i, $pat) = @_; >>> $pat = reverse($pat); >>> $pat = qr($pat)i; >>> >>> return sub { >>> my $itemstart = shift; >>> return ($itemstart ge "2006-07-03 00:00:00"); >>> }; >>>} >>> >> >>You don't need the two $pat lines in there, by the way. They >>were useful in the code you copied/pasted but are not used at >>all in your code. > > Thanks for pointing this out. I had realized that. > > >>On the other hand, you might want to pass your date string in >>as a mv_searchspec (se=yourdatestring), and capture that in >>$pat, instead of hard-coding the value in your code. >> > > This was exactly my original thoughts but hard coded it to lessen the > Troubleshooting points. > > >>>And the error I get is: >>> >>> search error: Limit subroutine creation: Can't use an >> >>undefined value >> >>>as an ARRAY reference at /usr/local/interchange/lib/Vend/Search.pm >>>line 653. >>> >> >>Try this patch: >> >>*** lib/Vend/Search.pm- Wed Jul 5 12:44:01 2006 >>--- lib/Vend/Search.pm Wed Jul 5 13:30:27 2006 >>*************** >>*** 649,656 **** >> $c->[$i] =~ tr/ \t//; >> my $o = $c->[$i]; >> $c->[$i] = $s->{mv_numeric}[$i] >>! ? [ @{$numopmap{$o}} ] >>! : [ @{$stropmap{$o}} ]; >> if(! $c->[$i]) { >> my $r; >> $c->[$i] = [$r, $o], next >>--- 649,656 ---- >> $c->[$i] =~ tr/ \t//; >> my $o = $c->[$i]; >> $c->[$i] = $s->{mv_numeric}[$i] >>! ? $numopmap{$o} >>! : $stropmap{$o}; >> if(! $c->[$i]) { >> my $r; >> $c->[$i] = [$r, $o], next >> >>The dereference and re-reference seems wasteful to me, and is >>the cause of the problem you reported. If there's a reason >>for doing that, and I can't see one, then it can be done >>later in the code. >> > > Kevin thank you for you time in figuring out the patch.That is exactly > What the doctor ordered. Cheers! It would be nice if you can post your finished SearchOp here, so people can see a real world example in the archives. Bye Racek -- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team From tim.g at edsd.com Wed Jul 5 10:39:18 2006 From: tim.g at edsd.com (Tim Good) Date: Wed Jul 5 10:39:42 2006 Subject: [ic] Problems using SearchOp In-Reply-To: <44ABC981.6000003@linuxia.de> Message-ID: <200607051443.k65EhGAN022881@email.edsd.com> > -----Original Message----- > From: interchange-users-bounces@icdevgroup.org > [mailto:interchange-users-bounces@icdevgroup.org] On Behalf > Of Stefan Hornburg > Sent: Wednesday, July 05, 2006 8:15 AM > To: interchange-users@icdevgroup.org > Subject: Re: [ic] Problems using SearchOp > > Tim Good wrote: > >>-----Original Message----- > >>From: interchange-users-bounces@icdevgroup.org > >>[mailto:interchange-users-bounces@icdevgroup.org] On Behalf > Of Kevin > >>Walsh > >>Sent: Wednesday, July 05, 2006 6:37 AM > >>To: interchange-users@icdevgroup.org > >>Subject: Re: [ic] Problems using SearchOp > >> > >>"Tim Good" wrote: > >> > >>>I am trying to create my own op for searching on $somedate ge than > >>>today. > >>>Folling directions at: > >>>http://www.icdevgroup.org/pipermail/interchange-users/2005-A > >>>pril/042874.html > >>>Which differ slightly from: > >>>http://www.icdevgroup.org/interchange-doc-5.2.0/frames/icdat > >>>abase_32.html > >>> > >>>Interchange: 5.4.1 stable, Perl: Perl 5.8.7 non-threaded > >> > >>Here is what > >> > >>>I put in my catelog.cfg : > >>> > >>>## Custom search op for greater than todays date ## used to filter > >>>auctions which haven't started yet ## from search results. > >>>CodeDef auctionstart SearchOp > >>>CodeDef auctionstart Routine < >>>sub { > >>> my ($self, $i, $pat) = @_; > >>> $pat = reverse($pat); > >>> $pat = qr($pat)i; > >>> > >>> return sub { > >>> my $itemstart = shift; > >>> return ($itemstart ge "2006-07-03 00:00:00"); > >>> }; > >>>} > >>> > >> > >>You don't need the two $pat lines in there, by the way. They were > >>useful in the code you copied/pasted but are not used at > all in your > >>code. > > > > Thanks for pointing this out. I had realized that. > > > > > >>On the other hand, you might want to pass your date string in as a > >>mv_searchspec (se=yourdatestring), and capture that in > $pat, instead > >>of hard-coding the value in your code. > >> > > > > This was exactly my original thoughts but hard coded it to > lessen the > > Troubleshooting points. > > > > > >>>And the error I get is: > >>> > >>> search error: Limit subroutine creation: Can't use an > >> > >>undefined value > >> > >>>as an ARRAY reference at /usr/local/interchange/lib/Vend/Search.pm > >>>line 653. > >>> > >> > >>Try this patch: > >> > >>*** lib/Vend/Search.pm- Wed Jul 5 12:44:01 2006 > >>--- lib/Vend/Search.pm Wed Jul 5 13:30:27 2006 > >>*************** > >>*** 649,656 **** > >> $c->[$i] =~ tr/ \t//; > >> my $o = $c->[$i]; > >> $c->[$i] = $s->{mv_numeric}[$i] > >>! ? [ @{$numopmap{$o}} ] > >>! : [ @{$stropmap{$o}} ]; > >> if(! $c->[$i]) { > >> my $r; > >> $c->[$i] = [$r, $o], next > >>--- 649,656 ---- > >> $c->[$i] =~ tr/ \t//; > >> my $o = $c->[$i]; > >> $c->[$i] = $s->{mv_numeric}[$i] > >>! ? $numopmap{$o} > >>! : $stropmap{$o}; > >> if(! $c->[$i]) { > >> my $r; > >> $c->[$i] = [$r, $o], next > >> > >>The dereference and re-reference seems wasteful to me, and is the > >>cause of the problem you reported. If there's a reason for doing > >>that, and I can't see one, then it can be done later in the code. > >> > > > > Kevin thank you for you time in figuring out the patch.That > is exactly > > What the doctor ordered. Cheers! > > It would be nice if you can post your finished SearchOp here, so > people can see a real world example in the archives. > > Bye > Racek Done! I have created two searchops: ## Custom search op for less than todays date ## used to filter auctions which haven't started yet ## from search results. CodeDef auctionstart SearchOp CodeDef auctionstart Routine <convert_date( { format => '%F %T' } ); return sub { my $itemstart = shift; return ($itemstart le $currentdate); }; } EOR ## Custom search op for greater than todays date ## used to filter auctions which have ended ## from search results. CodeDef auctionends SearchOp CodeDef auctionends Routine <convert_date( { format => '%F %T' } ); return sub { my $end = shift; return ($end ge $currentdate); }; } EOR > > -- > LinuXia Systems => http://www.linuxia.de/ > Expert Interchange Consulting and System Administration > ICDEVGROUP => http://www.icdevgroup.org/ > Interchange Development Team > > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > From docelic at mail.inet.hr Wed Jul 5 10:55:17 2006 From: docelic at mail.inet.hr (Davor Ocelic) Date: Wed Jul 5 10:52:33 2006 Subject: [ic] Problems using SearchOp In-Reply-To: <44ABC981.6000003@linuxia.de> References: <200607051348.k65DmkUr020977@email.edsd.com> <44ABC981.6000003@linuxia.de> Message-ID: <20060705165517.13d90a6c.docelic@mail.inet.hr> > Bye > Racek Wow, I thought you had an auto-included signature there :) From bob at nleaudio.com Wed Jul 5 13:06:23 2006 From: bob at nleaudio.com (Bob Puff@NLE) Date: Wed Jul 5 13:05:44 2006 Subject: [ic] Breadcrumbs? Solved! In-Reply-To: <200607051600.k65G092p026103@icdevgroup.org> References: <200607051600.k65G092p026103@icdevgroup.org> Message-ID: <44ABF18F.6090306@nleaudio.com> Unfortunately, I have to report this isn't totally solved. I added another cart, and when I restarted IC, it complained about a duplicate breadcrumbs usertag! I deleted the one that I copied in (previous message), and then it worked. So it appears that: When having only one cart, breadcrumbs.tag isn't included. When having more than one cart, breadcrumbs.tag IS included. Could this be a problem with makecat? Bob From kevin at cursor.biz Wed Jul 5 14:02:24 2006 From: kevin at cursor.biz (Kevin Walsh) Date: Wed Jul 5 14:02:36 2006 Subject: [ic] Problems using SearchOp In-Reply-To: <20060705165517.13d90a6c.docelic@mail.inet.hr> References: <200607051348.k65DmkUr020977@email.edsd.com> <44ABC981.6000003@linuxia.de> <20060705165517.13d90a6c.docelic@mail.inet.hr> Message-ID: <200607051902.25436.kevin@cursor.biz> Davor Ocelic wrote: > > Bye > > Racek > > Wow, I thought you had an auto-included signature there :) > The auto-includer made a typo. I blame the cosmic rays. Of course, I type the following every time I write an article: -- _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/ From kevin at cursor.biz Wed Jul 5 14:06:10 2006 From: kevin at cursor.biz (Kevin Walsh) Date: Wed Jul 5 14:06:21 2006 Subject: [ic] Problems using SearchOp In-Reply-To: <200607051348.k65DmkUr020977@email.edsd.com> References: <200607051348.k65DmkUr020977@email.edsd.com> Message-ID: <200607051906.11515.kevin@cursor.biz> "Tim Good" wrote: > > The dereference and re-reference seems wasteful to me, and is > > the cause of the problem you reported. If there's a reason > > for doing that, and I can't see one, then it can be done > > later in the code. > > > Kevin thank you for you time in figuring out the patch.That is exactly > What the doctor ordered. Cheers! > Not a problem. A slightly better version of that patch has been committed to CVS: http://www.icdevgroup.org/pipermail/interchange-cvs/2006-July/006867.html -- _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/ From jordan at gishnetwork.com Wed Jul 5 14:39:01 2006 From: jordan at gishnetwork.com (Paul Jordan) Date: Wed Jul 5 14:39:17 2006 Subject: [ic] Location specific injected global code - or DEV setting? In-Reply-To: <200607050105.54494.kevin@cursor.biz> Message-ID: <20060705183908.077981B6816@mail.perusion.com> interchange-users-bounces@icdevgroup.org wrote: > "Paul Jordan" wrote: >> I was wondering how feasible it would be to have VENDROOT code be >> included in specific locations in all sub catalogs. First, for >> example, I'd be interested in including *any* catalog.cfg style >> directives/text in interchange.cfg. Possibly like: >> >> CatalogCfgPrepend * <> >> # DEV account login >> UserDB projects_access user_field username >> UserDB projects_access database projects_access >> UserDB projects_access time_field none >> UserDB projects_access crypt 0 >> EOS >> >> Notice the * as in a possible: >> >> CatalogCfgPrepend catalogfoo catalogbar <> > Have you considered the ConfigAllBefore global directive, > which defaults to catalog_before.cfg? That's perfect Kevin, Thanks. I had always noticed them (vendroot/catalog_*.cfg) but assumed they were obsolete, similar to the old catroot/etc/before.cfg. I figured one day they'd just disappear from the distro. But, it is prefect, I was able to define a login profile, login table, and __VAR__ to include in all my templates to control things, all globally. I am thinking this DEV setup can do double duty on a live system for allowing developers to login during planned downtime. Awesome! Paul Jordan From paul at gishnetwork.com Wed Jul 5 14:50:55 2006 From: paul at gishnetwork.com (Paul Jordan) Date: Wed Jul 5 14:51:00 2006 Subject: [ic] Setting multiple scratch in one tag In-Reply-To: <20060624202432.794e0bc5.docelic@mail.inet.hr> Message-ID: <20060705185054.2903A1B6816@mail.perusion.com> interchange-users-bounces@icdevgroup.org wrote: > On Sat, 24 Jun 2006 10:08:07 -0700 > "Paul Jordan" wrote: > >> I was >> wondering, would there be any efficiency gain to have a tag made that >> did something like the following: >> >> [tmp list=1] >> page_title: Home >> seetab: home >> subtab_a: 1 >> foo: [sql-param bar] >> [/tmp] >> >> I imagine that it only needs to call ?something? once to set all >> four, yes? I am mainly thinking of the typing speed, readability and >> maintenance of these things, as well as any execution gains. > > Hey Paul, > > why not something like: > > [calc] > my %set = ( > key1 => 'val1', > key2 => 'val2', > key3 => 'val3', > ); > > while (my ($k,$v) = each %set) { $Tag->tmp($k, $v) } [/calc] > > > Too bad this can't be shorten even further. The 'each' > iterator only accepts an already existing hash (can't use > (k1=>v1) or %{ k1=>v1 } in place of %set), and it's also not > possible to use the shorter form > in 'while' ( $Tag->tmp($k, $v) while (my ($k,$v) = each %set) ). Thanks Davor I guess I didn't say it but as this would work, I was looking for something like the [import] tag for its cleanliness and speed WRT readability and ITL interpolation. At this point I do try to perlize everything I can, but in my ametureness I still do sometimes appreciate the readability of things. I rarely use the [import] tag and opt for dbi or [query] but it is still a very beautiful tag, none the less. With a hack as Jon suggested I could setup at the top of every page and see exactly what the page is and can do, like reading a book - almost like a mini documentation of the page. Your suggestion is good though, and I'll no doubt put it to use :-) Paul Jordan From peter at pajamian.dhs.org Wed Jul 5 17:11:48 2006 From: peter at pajamian.dhs.org (Peter) Date: Wed Jul 5 17:12:01 2006 Subject: [ic] Breadcrumbs? Solved! In-Reply-To: <44ABF18F.6090306@nleaudio.com> References: <200607051600.k65G092p026103@icdevgroup.org> <44ABF18F.6090306@nleaudio.com> Message-ID: <44AC2B14.7070109@pajamian.dhs.org> On 07/05/2006 10:06 AM, Bob Puff@NLE wrote: > Unfortunately, I have to report this isn't totally solved. > > I added another cart, and when I restarted IC, it complained about a duplicate breadcrumbs usertag! > I deleted the one that I copied in (previous message), and then it worked. So it appears that: > > When having only one cart, breadcrumbs.tag isn't included. > When having more than one cart, breadcrumbs.tag IS included. > > Could this be a problem with makecat? Close, there would have been some problem with when you ran makecat for the first catalog, it didn't copy the tag over properly. When you ran it the second time it did. Peter From bob at nleaudio.com Thu Jul 6 00:50:46 2006 From: bob at nleaudio.com (Bob Puff) Date: Thu Jul 6 00:47:39 2006 Subject: [ic] Breadcrumbs? Solved! Message-ID: <44AC96A6.4050203@nleaudio.com> > Close, there would have been some problem with when you ran makecat for > the first catalog, it didn't copy the tag over properly. When you ran > it the second time it did. But where did it copy it to? I haven't found any change, other than it being in the second cart's directory structure, identical to the first one. Bob From bob at nleaudio.com Thu Jul 6 00:54:06 2006 From: bob at nleaudio.com (Bob Puff) Date: Thu Jul 6 00:50:45 2006 Subject: [ic] Menu loader not updating database Message-ID: <44AC976E.1070804@nleaudio.com> Just ran into another interesting situation tonight. Was doing some major editing with the menu editor, to find that it wasn't showing up on the pages. A little more probing found that the database "tree" was not being updated (but the text file in the catalog was). I copied my menu to a new name, and _that_ one did update the database. Is there some way to force a database update of a menu? Bob From racke at linuxia.de Thu Jul 6 05:03:31 2006 From: racke at linuxia.de (Stefan Hornburg) Date: Thu Jul 6 05:06:47 2006 Subject: [ic] Menu loader not updating database In-Reply-To: <44AC976E.1070804@nleaudio.com> References: <44AC976E.1070804@nleaudio.com> Message-ID: <44ACD1E3.6020601@linuxia.de> Bob Puff wrote: > Just ran into another interesting situation tonight. Was doing some > major editing with the menu editor, to find that it wasn't showing up on > the pages. A little more probing found that the database "tree" was not > being updated (but the text file in the catalog was). I copied my menu > to a new name, and _that_ one did update the database. Which kind of database do you use for "tree" ? Bye Racke -- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team From eric_bont at hotmail.com Thu Jul 6 06:26:11 2006 From: eric_bont at hotmail.com (Eric Bont) Date: Thu Jul 6 06:26:24 2006 Subject: [ic] UPS shipping based on country-zone instead of zip-zone Message-ID: I have a Dutch ecommerce site that likes to use worldwide UPS shipping. I use Internal UPS lookup. I changed the 450.csv and, for example, the 3DaySelect.csv with my new UPS zones and rates. My problem: Most of the zones from UPS Netherlands (EU) are based on the countryname and not on the ZIP. How can I use for shippingcost the destination countryname instead of the destionation zip. In the UI [administration[[commerce][shipping] I filled in 'country' for "Field that chooses UPS destination (default zip)" but that doesn't work. Any idea's ? Thanks a lot Eric From tim.g at edsd.com Thu Jul 6 11:01:17 2006 From: tim.g at edsd.com (Tim Good) Date: Thu Jul 6 11:00:19 2006 Subject: [ic] Adding products using a form Message-ID: <200607061503.k66F3ejf032708@email.edsd.com> I am trying to us a form to add items to the products table. Interchange 5.4.1 Perl 5.8 My form starts like:
[form-session-id] [seti cancelurl]location.href=[page href="[cgi referring_page"][/seti]

Below is a preview of your proposed auction listing. By clicking on Submit you are agreeing to pay the posting fee described in [page href="[area pricing]"]Pricing.
Use Submit to actually submit if you are satisfied.
 

[loop list="sku prod_group description category summary comment terms stamp location itemstart duration coa samplebutton username price minimum buynow weight packaging shipinfo image image2 image3 image4 image5 image6 thumb image_large file1 file2"] [/loop] This is passed to the same page at: [elsif cgi operation eq 'Submit'] [if cgi tmp_sku] [set ui_new_item]0[/set] [else] [seti sku][counter file=etc/post_item.count start=60600001][/seti] [/else] [/if] [perl] $Values->{sku} = $Scratch->{sku}; [/perl] [update data] [include file="etc/post_item" interpolate=1] Your item has been submitted. Click [page href="[area [scratch sku]]"]here to view your item. I am getting the error: ugauction /cgi-bin/ugauction/member/post_item.html probable bad form -- number of values min=0 (image5) max=2 (itemstart) I have searched the groups and only come up with (as the best match)in CVS: User: racke Date: 2004-03-08 21:06:51 GMT Modified: lib/Vend/Table Editor.pm Log: weed out duplicates in ui_data_fields originating from bad metadata, causing error in item edit: probable bad form -- number of values min=0 (wholesale) max=2 (sku) Revision Changes Path 1.53 +8 -4 interchange/lib/Vend/Table/Editor.pm This is my exact error message but I can not figure out what this is telling me. Can someone please shed some light on this? Tim Good EDSD, LLC From racke at linuxia.de Thu Jul 6 11:25:22 2006 From: racke at linuxia.de (Stefan Hornburg) Date: Thu Jul 6 11:29:13 2006 Subject: [ic] Adding products using a form In-Reply-To: <200607061503.k66F3ejf032708@email.edsd.com> References: <200607061503.k66F3ejf032708@email.edsd.com> Message-ID: <44AD2B62.9040603@linuxia.de> Tim Good wrote: > I am trying to us a form to add items to the products table. > > Interchange 5.4.1 Perl 5.8 > My form starts like: > enctype="multipart/form-data"> > [form-session-id] > > > > > > > > [seti cancelurl]location.href=[page href="[cgi > referring_page"][/seti] >

> Below is a preview of your proposed auction listing. By > clicking on Submit you are agreeing to pay the posting fee > described in [page href="[area pricing]"]Pricing.
> Use Submit to actually submit if you are > satisfied.
> class="search_button"> >   onClick='[scratch cancelurl]' class="search_button"> >

> [loop list="sku prod_group description category summary > comment terms stamp location itemstart duration coa > samplebutton username price minimum buynow weight packaging > shipinfo image image2 image3 image4 image5 image6 thumb > image_large file1 file2"] > > [/loop] > > This is passed to the same page at: > [elsif cgi operation eq 'Submit'] > [if cgi tmp_sku] > [set ui_new_item]0[/set] > [else] > [seti sku][counter file=etc/post_item.count > start=60600001][/seti] > [/else] > [/if] > [perl] > $Values->{sku} = $Scratch->{sku}; > [/perl] > > [update data] > [include file="etc/post_item" interpolate=1] > > Your item has been submitted. Click [page href="[area > [scratch sku]]"]here to view your item. > > I am getting the error: > ugauction /cgi-bin/ugauction/member/post_item.html probable > bad form -- number of values min=0 (image5) max=2 > (itemstart) You have itemstart _two_ times in your form. Bye Racke -- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team From tim.g at edsd.com Thu Jul 6 11:58:45 2006 From: tim.g at edsd.com (Tim Good) Date: Thu Jul 6 11:59:09 2006 Subject: [ic] Adding products using a form In-Reply-To: <44AD2B62.9040603@linuxia.de> Message-ID: <200607061602.k66G2kVp002688@email.edsd.com> > -----Original Message----- > From: interchange-users-bounces@icdevgroup.org > [mailto:interchange-users-bounces@icdevgroup.org] On Behalf > Of Stefan Hornburg > Sent: Thursday, July 06, 2006 9:25 AM > To: interchange-users@icdevgroup.org > Subject: Re: [ic] Adding products using a form > > Tim Good wrote: > > I am trying to us a form to add items to the products table. > > > > Interchange 5.4.1 Perl 5.8 > > My form starts like: > > > enctype="multipart/form-data"> > > [form-session-id] > > > type="hidden" name="ui_hide_key" value="1"> > name="mv_data_table" value="products"> > name="mv_data_function" value="insert"> > name="mv_action" value="set"> > name="mv_update_empty" value="1"> > name="mv_data_fields" value="sku prod_group description category > > summary comment terms stamp location itemstart duration coa > > samplebutton username price minimum buynow weight packaging > shipinfo > > image image2 image3 > > image4 image5 image6 thumb image_large file1 file2"> [seti > > cancelurl]location.href=[page href="[cgi referring_page"][/seti]

> align="center"> Below is a preview of > your proposed > > auction listing. By clicking on Submit you are agreeing to pay the > > posting fee described in [page href="[area > pricing]"]Pricing.
> > Use Submit to actually submit if you are > satisfied.
> > > class="search_button"> > >   > onClick='[scratch cancelurl]' class="search_button">

[loop > > list="sku prod_group description category summary comment > terms stamp > > location itemstart duration coa samplebutton username price minimum > > buynow weight packaging shipinfo image image2 image3 image4 image5 > > image6 thumb image_large file1 file2"] > name="[loop-code]" value="[value [loop-code]]"> [/loop] > > > > This is passed to the same page at: > > [elsif cgi operation eq 'Submit'] > > [if cgi tmp_sku] > > [set ui_new_item]0[/set] > > [else] > > [seti sku][counter file=etc/post_item.count start=60600001][/seti] > > [/else] [/if] [perl] $Values->{sku} = $Scratch->{sku}; [/perl] > > > > [update data] > > [include file="etc/post_item" interpolate=1] > > > > Your item has been submitted. Click [page href="[area [scratch > > sku]]"]here to view your item. > > > > I am getting the error: > > ugauction /cgi-bin/ugauction/member/post_item.html probable > bad form > > -- number of values min=0 (image5) max=2 > > (itemstart) > > You have itemstart _two_ times in your form. > > Bye > Racke > So if I follow this correctly this error message is a return from checking duplicate fields and (or) Checking for missing required fields? If above is correct, then would my error message also mean that (image5) is missing and required? > > -- > LinuXia Systems => http://www.linuxia.de/ Expert Interchange > Consulting and System Administration ICDEVGROUP => > http://www.icdevgroup.org/ Interchange Development Team > > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > From racke at linuxia.de Thu Jul 6 12:38:27 2006 From: racke at linuxia.de (Stefan Hornburg) Date: Thu Jul 6 12:41:39 2006 Subject: [ic] Adding products using a form In-Reply-To: <200607061602.k66G2kVp002688@email.edsd.com> References: <200607061602.k66G2kVp002688@email.edsd.com> Message-ID: <44AD3C83.3060005@linuxia.de> Tim Good wrote: >>-----Original Message----- >>From: interchange-users-bounces@icdevgroup.org >>[mailto:interchange-users-bounces@icdevgroup.org] On Behalf >>Of Stefan Hornburg >>Sent: Thursday, July 06, 2006 9:25 AM >>To: interchange-users@icdevgroup.org >>Subject: Re: [ic] Adding products using a form >> >>Tim Good wrote: >> >>>I am trying to us a form to add items to the products table. >>> >>>Interchange 5.4.1 Perl 5.8 >>>My form starts like: >>>>>enctype="multipart/form-data"> >>> [form-session-id] >>> >>type="hidden" name="ui_hide_key" value="1"> >>name="mv_data_table" value="products"> >>name="mv_data_function" value="insert"> >>name="mv_action" value="set"> >>name="mv_update_empty" value="1"> >>name="mv_data_fields" value="sku prod_group description category >>>summary comment terms stamp location itemstart duration coa >>>samplebutton username price minimum buynow weight packaging >> >>shipinfo >> >>>image image2 image3 >>>image4 image5 image6 thumb image_large file1 file2"> [seti >>>cancelurl]location.href=[page href="[cgi referring_page"][/seti]

>>align="center"> Below is a preview of >> >>your proposed >> >>>auction listing. By clicking on Submit you are agreeing to pay the >>>posting fee described in [page href="[area >> >>pricing]"]Pricing.
>> >>>Use Submit to actually submit if you are >> >>satisfied.
>> >>> >>class="search_button"> >>> >>onClick='[scratch cancelurl]' class="search_button">

[loop >>>list="sku prod_group description category summary comment >> >>terms stamp >> >>>location itemstart duration coa samplebutton username price minimum >>>buynow weight packaging shipinfo image image2 image3 image4 image5 >>>image6 thumb image_large file1 file2"] >>name="[loop-code]" value="[value [loop-code]]"> [/loop] >>> >>>This is passed to the same page at: >>>[elsif cgi operation eq 'Submit'] >>>[if cgi tmp_sku] >>>[set ui_new_item]0[/set] >>>[else] >>>[seti sku][counter file=etc/post_item.count start=60600001][/seti] >>>[/else] [/if] [perl] $Values->{sku} = $Scratch->{sku}; [/perl] >>> >>>[update data] >>>[include file="etc/post_item" interpolate=1] >>> >>>Your item has been submitted. Click [page href="[area [scratch >>>sku]]"]here to view your item. >>> >>>I am getting the error: >>>ugauction /cgi-bin/ugauction/member/post_item.html probable >> >>bad form >> >>>-- number of values min=0 (image5) max=2 >>>(itemstart) >> >>You have itemstart _two_ times in your form. >> >>Bye >> Racke >> > > So if I follow this correctly this error message is a return from checking > duplicate fields and (or) > Checking for missing required fields? > > If above is correct, then would my error message also mean that (image5) is > missing and required? You can not have duplicate fields when submitting one item. I think you can leave out fields, although that doesn't makes sense. Bye Racke -- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team From tom at globalfocusdm.com Thu Jul 6 12:47:09 2006 From: tom at globalfocusdm.com (Thomas J.M. Burton) Date: Thu Jul 6 12:47:28 2006 Subject: [ic] QuickBooks Module and REFNUM - Help anyone? Message-ID: <44AD3E8D.1030402@globalfocusdm.com> Hello IC Users, I'm working on setting up the QuickBooks module for two clients and I'd like to be able to assign a different field than sku to the REFNUM in the Items export and INVITEM in the transaction IIF files. Can anyone tell me what I'd need to do in order to get the module working this way? I've set up a qb_refnum field in my products and inventory tables and would like to be able to utilize that throughout the module whenever an item's REFNUM is used. I'm using the most recent version of the QuickBooks module that I could find as of Feb 2006 and... Server Info: Interchange 5.0 Apache-AdvancedExtranetServer/2.0.47 Mandrake Linux/6.3.92mdk mod_perl/1.99_09 Perl/v5.8.1 Thanks, Tom -- _______________________________ Global Focus Digital Media, LLC www.globalfocusdm.com !DSPAM:44ad421014955533711298! From tim.g at edsd.com Thu Jul 6 13:00:09 2006 From: tim.g at edsd.com (Tim Good) Date: Thu Jul 6 13:00:38 2006 Subject: [ic] Adding products using a form In-Reply-To: <44AD3C83.3060005@linuxia.de> Message-ID: <200607061704.k66H4BCg005244@email.edsd.com> > -----Original Message----- > From: interchange-users-bounces@icdevgroup.org > [mailto:interchange-users-bounces@icdevgroup.org] On Behalf > Of Stefan Hornburg > Sent: Thursday, July 06, 2006 10:38 AM > To: interchange-users@icdevgroup.org > Subject: Re: [ic] Adding products using a form > > Tim Good wrote: > >>-----Original Message----- > >>From: interchange-users-bounces@icdevgroup.org > >>[mailto:interchange-users-bounces@icdevgroup.org] On Behalf > Of Stefan > >>Hornburg > >>Sent: Thursday, July 06, 2006 9:25 AM > >>To: interchange-users@icdevgroup.org > >>Subject: Re: [ic] Adding products using a form > >> > >>Tim Good wrote: > >> > >>>I am trying to us a form to add items to the products table. > >>> > >>>Interchange 5.4.1 Perl 5.8 > >>>My form starts like: > >>> >>>enctype="multipart/form-data"> > >>> [form-session-id] > >>> >>>type="hidden" name="ui_hide_key" value="1"> >>>name="mv_data_table" value="products"> >>>name="mv_data_function" value="insert"> >>>name="mv_action" value="set"> >>>name="mv_update_empty" value="1"> >>>name="mv_data_fields" value="sku prod_group description category > >>>summary comment terms stamp location itemstart duration coa > >>>samplebutton username price minimum buynow weight packaging > >> > >>shipinfo > >> > >>>image image2 image3 > >>>image4 image5 image6 thumb image_large file1 file2"> [seti > >>>cancelurl]location.href=[page href="[cgi > referring_page"][/seti]

>>>align="center"> Below is a preview of > >> > >>your proposed > >> > >>>auction listing. By clicking on Submit you are agreeing to pay the > >>>posting fee described in [page href="[area > >> > >>pricing]"]Pricing.
> >> > >>>Use Submit to actually submit if you are > >> > >>satisfied.
> >> > >>> >>>class="search_button"> > >>>  >>>onClick='[scratch cancelurl]' class="search_button">

[loop > >>>list="sku prod_group description category summary comment > >> > >>terms stamp > >> > >>>location itemstart duration coa samplebutton username > price minimum > >>>buynow weight packaging shipinfo image image2 image3 image4 image5 > >>>image6 thumb image_large file1 file2"] >>>name="[loop-code]" value="[value [loop-code]]"> [/loop] > >>> > >>>This is passed to the same page at: > >>>[elsif cgi operation eq 'Submit'] > >>>[if cgi tmp_sku] > >>>[set ui_new_item]0[/set] > >>>[else] > >>>[seti sku][counter file=etc/post_item.count start=60600001][/seti] > >>>[/else] [/if] [perl] $Values->{sku} = $Scratch->{sku}; [/perl] > >>> > >>>[update data] > >>>[include file="etc/post_item" interpolate=1] > >>> > >>>Your item has been submitted. Click [page href="[area [scratch > >>>sku]]"]here to view your item. > >>> > >>>I am getting the error: > >>>ugauction /cgi-bin/ugauction/member/post_item.html probable > >> > >>bad form > >> > >>>-- number of values min=0 (image5) max=2 > >>>(itemstart) > >> > >>You have itemstart _two_ times in your form. > >> > >>Bye > >> Racke > >> > > > > So if I follow this correctly this error message is a return from > > checking duplicate fields and (or) Checking for missing required > > fields? > > > > If above is correct, then would my error message also mean that > > (image5) is missing and required? > > You can not have duplicate fields when submitting one item. I > think you can leave out fields, although that doesn't makes sense. > > > Bye > Racke > > Racke ... I can confirm (1) you were right on itemstart was what was keeping the Data from being submitted (2) you can leave fields out or have them be blank. Thanks again for your quick response! > > -- > LinuXia Systems => http://www.linuxia.de/ Expert Interchange > Consulting and System Administration ICDEVGROUP => > http://www.icdevgroup.org/ Interchange Development Team > > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > From aaron at karatedepot.com Thu Jul 6 22:25:05 2006 From: aaron at karatedepot.com (Aaron Rubin) Date: Thu Jul 6 22:25:16 2006 Subject: [ic] (no subject) Message-ID: <029e01c6a16c$8fe3aac0$6502a8c0@aaronhome> Has anyone integrated Google Checkout checkout button for interchange? ? -- Aaron Rubin http://www.KarateDepot.com http://www.MagsDirect.com http://www.BoxingDepot.com http://www.EverythingFitness.com http://www.ScrubsGallery.com 1-845-875-6412 From aaron at karatedepot.com Thu Jul 6 22:46:41 2006 From: aaron at karatedepot.com (Aaron Rubin) Date: Thu Jul 6 22:46:50 2006 Subject: [ic] Google Checkout w/ IC Message-ID: <02ac01c6a16f$936cca20$6502a8c0@aaronhome> Has anyone integrated the Google Checkout checkout button into interchange? ? -- Aaron Rubin http://www.KarateDepot.com http://www.MagsDirect.com http://www.BoxingDepot.com http://www.EverythingFitness.com http://www.ScrubsGallery.com 1-845-875-6412 ? From jon at endpoint.com Thu Jul 6 22:52:10 2006 From: jon at endpoint.com (Jon Jensen) Date: Thu Jul 6 22:52:20 2006 Subject: [ic] (no subject) In-Reply-To: <029e01c6a16c$8fe3aac0$6502a8c0@aaronhome> References: <029e01c6a16c$8fe3aac0$6502a8c0@aaronhome> Message-ID: On Thu, 6 Jul 2006, Aaron Rubin wrote: > Has anyone integrated Google Checkout checkout button for interchange? We have done a "Google Checkout API" integration and Google has us listed as a third-party developer on their site (lower right-hand corner): http://checkout.google.com/seller/developers.html Note that their API integration is a fairly involved project. However, the "Buy Now buttons" option uses simple HTML and doesn't require programming. Jon -- Jon Jensen End Point Corporation http://www.endpoint.com/ From bob at nleaudio.com Thu Jul 6 23:07:19 2006 From: bob at nleaudio.com (Bob Puff@NLE) Date: Thu Jul 6 23:06:38 2006 Subject: [ic] Menu loader not updating database Message-ID: <44ADCFE7.4020101@nleaudio.com> Hi Racke, > Which kind of database do you use for "tree" ? Using MySQL databases. I've got debugging turned on, but nothing in the debug logs or normal error logs shows anything. Bob From jeff at endpoint.com Fri Jul 7 07:21:50 2006 From: jeff at endpoint.com (Jeff Boes) Date: Fri Jul 7 07:22:25 2006 Subject: [ic] Data tag doesn't interpolate "foreign" arguments? Message-ID: <44AE43CE.5070604@endpoint.com> I think I've isolated an inconsistency in the way the [data] tag operates. [data table="foo" column="bar" foreign.fk1="[scratch abc]"] This syntax will attempt to retrieve a record from "foo" where the key column "fk1" is the literal "[scratch abc]"; that is, arguments of the "foreign" parameter are not interpolated. Is this a known problem? -- Jeffery Boes <>< jeff@endpoint.com From racke at linuxia.de Fri Jul 7 08:35:59 2006 From: racke at linuxia.de (Stefan Hornburg) Date: Fri Jul 7 08:39:26 2006 Subject: [ic] Data tag doesn't interpolate "foreign" arguments? In-Reply-To: <44AE43CE.5070604@endpoint.com> References: <44AE43CE.5070604@endpoint.com> Message-ID: <44AE552F.5010503@linuxia.de> Jeff Boes wrote: > I think I've isolated an inconsistency in the way the [data] tag operates. > > [data table="foo" column="bar" foreign.fk1="[scratch abc]"] > > This syntax will attempt to retrieve a record from "foo" where the key > column "fk1" is the literal "[scratch abc]"; that is, arguments of the > "foreign" parameter are not interpolated. Is this a known problem? I suppose you need to use [data table="foo" column="bar" foreign=fkl key="[scratch abc]"] Bye Racke -- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team From jeff at endpoint.com Fri Jul 7 08:58:32 2006 From: jeff at endpoint.com (Jeff Boes) Date: Fri Jul 7 08:58:55 2006 Subject: [ic] Data tag doesn't interpolate "foreign" arguments? In-Reply-To: <44AE552F.5010503@linuxia.de> References: <44AE43CE.5070604@endpoint.com> <44AE552F.5010503@linuxia.de> Message-ID: <44AE5A78.3070402@endpoint.com> Stefan Hornburg wrote: > Jeff Boes wrote: >> I think I've isolated an inconsistency in the way the [data] tag >> operates. >> >> [data table="foo" column="bar" foreign.fk1="[scratch abc]"] >> >> This syntax will attempt to retrieve a record from "foo" where the key >> column "fk1" is the literal "[scratch abc]"; that is, arguments of the >> "foreign" parameter are not interpolated. Is this a known problem? > > I suppose you need to use > > [data table="foo" column="bar" foreign=fkl key="[scratch abc]"] > But what it the foreign key has multiple parts? This doesn't appear to work: [data table="foo" column="bar" foreign.0=fk1 foreign.1=fk2 key.0="[scratch abc]" key.1="[scratch xyz]"] -- Jeffery Boes <>< jeff@endpoint.com From racke at linuxia.de Fri Jul 7 09:14:03 2006 From: racke at linuxia.de (Stefan Hornburg) Date: Fri Jul 7 09:17:13 2006 Subject: [ic] Data tag doesn't interpolate "foreign" arguments? In-Reply-To: <44AE5A78.3070402@endpoint.com> References: <44AE43CE.5070604@endpoint.com> <44AE552F.5010503@linuxia.de> <44AE5A78.3070402@endpoint.com> Message-ID: <44AE5E1B.3090706@linuxia.de> Jeff Boes wrote: > Stefan Hornburg wrote: > >>Jeff Boes wrote: >> >>>I think I've isolated an inconsistency in the way the [data] tag >>>operates. >>> >>>[data table="foo" column="bar" foreign.fk1="[scratch abc]"] >>> >>>This syntax will attempt to retrieve a record from "foo" where the key >>>column "fk1" is the literal "[scratch abc]"; that is, arguments of the >>>"foreign" parameter are not interpolated. Is this a known problem? >> >>I suppose you need to use >> >>[data table="foo" column="bar" foreign=fkl key="[scratch abc]"] >> > > But what it the foreign key has multiple parts? This doesn't appear to work: > > [data table="foo" column="bar" foreign.0=fk1 foreign.1=fk2 > key.0="[scratch abc]" key.1="[scratch xyz]"] > Foreign keys in your database and the foreign parameter are two different things. Use [query] instead. Bye Racke -- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team From jeff at endpoint.com Fri Jul 7 09:52:42 2006 From: jeff at endpoint.com (Jeff Boes) Date: Fri Jul 7 09:53:08 2006 Subject: [ic] Data tag doesn't interpolate "foreign" arguments? In-Reply-To: <44AE5E1B.3090706@linuxia.de> References: <44AE43CE.5070604@endpoint.com> <44AE552F.5010503@linuxia.de> <44AE5A78.3070402@endpoint.com> <44AE5E1B.3090706@linuxia.de> Message-ID: <44AE672A.6060501@endpoint.com> Stefan Hornburg wrote: >> >> But what it the foreign key has multiple parts? This doesn't appear >> to work: >> >> [data table="foo" column="bar" foreign.0=fk1 foreign.1=fk2 >> key.0="[scratch abc]" key.1="[scratch xyz]"] >> > > Foreign keys in your database and the foreign parameter are two > different things. Use [query] instead. > > I understand the difference. What I've determined is that if the [data] tag has multiple "foreign" parameters, none of them are interpolated. -- Jeffery Boes <>< jeff@endpoint.com From kevin at cursor.biz Fri Jul 7 10:27:45 2006 From: kevin at cursor.biz (Kevin Walsh) Date: Fri Jul 7 10:28:11 2006 Subject: [ic] Data tag doesn't interpolate "foreign" arguments? In-Reply-To: <44AE43CE.5070604@endpoint.com> References: <44AE43CE.5070604@endpoint.com> Message-ID: <200607071527.46495.kevin@cursor.biz> Jeff Boes wrote: > I think I've isolated an inconsistency in the way the [data] tag operates. > > [data table="foo" column="bar" foreign.fk1="[scratch abc]"] > > This syntax will attempt to retrieve a record from "foo" where the key > column "fk1" is the literal "[scratch abc]"; that is, arguments of the > "foreign" parameter are not interpolated. Is this a known problem? > Just put this on your page: [pragma interpolate_itl_references 1] Or this in catalog.cfg: Pragma interpolate_itl_references 1 -- _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/ From jeff at endpoint.com Fri Jul 7 11:10:41 2006 From: jeff at endpoint.com (Jeff Boes) Date: Fri Jul 7 11:10:59 2006 Subject: [ic] Data tag doesn't interpolate "foreign" arguments? In-Reply-To: <200607071527.46495.kevin@cursor.biz> References: <44AE43CE.5070604@endpoint.com> <200607071527.46495.kevin@cursor.biz> Message-ID: <44AE7971.5030909@endpoint.com> Kevin Walsh wrote: > Just put this on your page: > > [pragma interpolate_itl_references 1] > > That did the trick! Thanks! -- Jeffery Boes <>< jeff@endpoint.com From emailgrant at gmail.com Sat Jul 8 20:44:58 2006 From: emailgrant at gmail.com (Grant) Date: Sat Jul 8 20:45:07 2006 Subject: [ic] mv_no_session causing weird scratch behavior Message-ID: <49bf44f10607081744t1bb4f14ege3ea6b4c233feac8@mail.gmail.com> I'm setting some scratch variables via [seti] that aren't carrying over to the next page until I add an item to the shopping cart. Then it works as expected. I'm using mv_no_session and when I turn that off it works as expected from the start of the session. Does this make sense to anyone? My browser has cookies enabled and I'm using IC 5.2. - Grant From jon at endpoint.com Sat Jul 8 23:50:52 2006 From: jon at endpoint.com (Jon Jensen) Date: Sat Jul 8 23:51:08 2006 Subject: [ic] mv_no_session causing weird scratch behavior In-Reply-To: <49bf44f10607081744t1bb4f14ege3ea6b4c233feac8@mail.gmail.com> References: <49bf44f10607081744t1bb4f14ege3ea6b4c233feac8@mail.gmail.com> Message-ID: On Sat, 8 Jul 2006, Grant wrote: > I'm setting some scratch variables via [seti] that aren't carrying > over to the next page until I add an item to the shopping cart. Then > it works as expected. I'm using mv_no_session and when I turn that > off it works as expected from the start of the session. Does this > make sense to anyone? My browser has cookies enabled and I'm using IC > 5.2. If you're using mv_no_session, you have no session. The scratch variables are being set in a session that's never saved to disk. You can't have both. :) Jon -- Jon Jensen End Point Corporation http://www.endpoint.com/ From emailgrant at gmail.com Sun Jul 9 13:02:40 2006 From: emailgrant at gmail.com (Grant) Date: Sun Jul 9 13:02:48 2006 Subject: [ic] Nested elsif bug still in 5.2 Message-ID: <49bf44f10607091002g4276e59el3da88fe73c42a18a@mail.gmail.com> I've been dealing with a nested elsif bug for a while. I first noticed it in 4.9.3: http://www.icdevgroup.org/pipermail/interchange-users/2003-September/035131.html and then in 5.0: http://www.icdevgroup.org/pipermail/interchange-users/2004-March/038202.html and now in 5.2. Basically, nested elsif doesn't work when named parameters are used. Here's an example: [tmpn name="test"]1[/tmpn] [if type="scratch" term="test" op="eq" compare="2"] INCORRECT [elsif type="scratch" term="test" op="eq" compare="1"] [if type="scratch" term="test" op="eq" compare="2"] INCORRECT [elsif type="scratch" term="test" op="eq" compare="1"] CORRECT [/elsif] [/if] [/elsif] [/if] The above works correctly when positional parameters are used instead of named. Is this fixed in 5.4? - Grant From emailgrant at gmail.com Sun Jul 9 13:09:52 2006 From: emailgrant at gmail.com (Grant) Date: Sun Jul 9 13:10:00 2006 Subject: [ic] mv_no_session causing weird scratch behavior In-Reply-To: References: <49bf44f10607081744t1bb4f14ege3ea6b4c233feac8@mail.gmail.com> Message-ID: <49bf44f10607091009k569f2590h3d6ffe6286a91482@mail.gmail.com> > > I'm setting some scratch variables via [seti] that aren't carrying > > over to the next page until I add an item to the shopping cart. Then > > it works as expected. I'm using mv_no_session and when I turn that > > off it works as expected from the start of the session. Does this > > make sense to anyone? My browser has cookies enabled and I'm using IC > > 5.2. > > If you're using mv_no_session, you have no session. The scratch variables > are being set in a session that's never saved to disk. You can't have > both. :) > > Jon Can you tell me a little more about the implications of this? I thought mv_no_session just relied 100% on session cookies instead of URL strings. Should [set] and [seti] only start saving scratch variables beyond the current page once an item is added to the shopping cart with mv_no_session? - Grant From racke at linuxia.de Mon Jul 10 03:25:22 2006 From: racke at linuxia.de (Stefan Hornburg) Date: Mon Jul 10 03:28:46 2006 Subject: [ic] mv_no_session causing weird scratch behavior In-Reply-To: <49bf44f10607091009k569f2590h3d6ffe6286a91482@mail.gmail.com> References: <49bf44f10607081744t1bb4f14ege3ea6b4c233feac8@mail.gmail.com> <49bf44f10607091009k569f2590h3d6ffe6286a91482@mail.gmail.com> Message-ID: <44B200E2.3080503@linuxia.de> Grant wrote: >> > I'm setting some scratch variables via [seti] that aren't carrying >> > over to the next page until I add an item to the shopping cart. Then >> > it works as expected. I'm using mv_no_session and when I turn that >> > off it works as expected from the start of the session. Does this >> > make sense to anyone? My browser has cookies enabled and I'm using IC >> > 5.2. >> >> If you're using mv_no_session, you have no session. The scratch variables >> are being set in a session that's never saved to disk. You can't have >> both. :) >> >> Jon > > > Can you tell me a little more about the implications of this? I > thought mv_no_session just relied 100% on session cookies instead of > URL strings. Should [set] and [seti] only start saving scratch > variables beyond the current page once an item is added to the > shopping cart with mv_no_session? No, almost anything in IC is stored in the session file. No session, no scratch beyond the current page. Bye Racke -- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team From peter at pajamian.dhs.org Mon Jul 10 03:34:39 2006 From: peter at pajamian.dhs.org (Peter) Date: Mon Jul 10 03:34:58 2006 Subject: [ic] mv_no_session causing weird scratch behavior In-Reply-To: <49bf44f10607091009k569f2590h3d6ffe6286a91482@mail.gmail.com> References: <49bf44f10607081744t1bb4f14ege3ea6b4c233feac8@mail.gmail.com> <49bf44f10607091009k569f2590h3d6ffe6286a91482@mail.gmail.com> Message-ID: <44B2030F.1040003@pajamian.dhs.org> On 07/09/2006 10:09 AM, Grant wrote: >> > I'm setting some scratch variables via [seti] that aren't carrying >> > over to the next page until I add an item to the shopping cart. Then >> > it works as expected. I'm using mv_no_session and when I turn that >> > off it works as expected from the start of the session. Does this >> > make sense to anyone? My browser has cookies enabled and I'm using IC >> > 5.2. >> >> If you're using mv_no_session, you have no session. The scratch variables >> are being set in a session that's never saved to disk. You can't have >> both. :) >> >> Jon > > > Can you tell me a little more about the implications of this? I > thought mv_no_session just relied 100% on session cookies instead of > URL strings. Should [set] and [seti] only start saving scratch > variables beyond the current page once an item is added to the > shopping cart with mv_no_session? I think what you want is mv_no_session_id Set it in catalog.cfg like this: ScratchDefault mv_no_session_id 1 Peter From jon at endpoint.com Mon Jul 10 09:37:08 2006 From: jon at endpoint.com (Jon Jensen) Date: Mon Jul 10 09:37:24 2006 Subject: [ic] mv_no_session causing weird scratch behavior In-Reply-To: <49bf44f10607091009k569f2590h3d6ffe6286a91482@mail.gmail.com> References: <49bf44f10607081744t1bb4f14ege3ea6b4c233feac8@mail.gmail.com> <49bf44f10607091009k569f2590h3d6ffe6286a91482@mail.gmail.com> Message-ID: On Sun, 9 Jul 2006, Grant wrote: >> > I'm setting some scratch variables via [seti] that aren't carrying >> > over to the next page until I add an item to the shopping cart. Then >> > it works as expected. I'm using mv_no_session and when I turn that >> > off it works as expected from the start of the session. Does this >> > make sense to anyone? My browser has cookies enabled and I'm using IC >> > 5.2. >> >> If you're using mv_no_session, you have no session. The scratch variables >> are being set in a session that's never saved to disk. You can't have >> both. :) > > Can you tell me a little more about the implications of this? I > thought mv_no_session just relied 100% on session cookies instead of > URL strings. Should [set] and [seti] only start saving scratch > variables beyond the current page once an item is added to the > shopping cart with mv_no_session? Grant, I should ask you for more detail about what you mean by "I'm using mv_no_session". What exactly are you setting, and how? Jon -- Jon Jensen End Point Corporation http://www.endpoint.com/ From sandy at scotwebshops.com Mon Jul 10 11:06:03 2006 From: sandy at scotwebshops.com (Sandy Thomson) Date: Mon Jul 10 11:06:32 2006 Subject: [ic] Nested elsif bug still in 5.2 In-Reply-To: <49bf44f10607091002g4276e59el3da88fe73c42a18a@mail.gmail.com> References: <49bf44f10607091002g4276e59el3da88fe73c42a18a@mail.gmail.com> Message-ID: <44B26CDB.2040408@scotwebshops.com> Grant wrote: > I've been dealing with a nested elsif bug for a while. I first > noticed it in 4.9.3: > > http://www.icdevgroup.org/pipermail/interchange-users/2003-September/035131.html > > > and then in 5.0: > > http://www.icdevgroup.org/pipermail/interchange-users/2004-March/038202.html > > > and now in 5.2. Basically, nested elsif doesn't work when named > parameters are used. Here's an example: > > [tmpn name="test"]1[/tmpn] > [if type="scratch" term="test" op="eq" compare="2"] > INCORRECT > [elsif type="scratch" term="test" op="eq" compare="1"] > [if type="scratch" term="test" op="eq" compare="2"] > INCORRECT > [elsif type="scratch" term="test" op="eq" compare="1"] > CORRECT > [/elsif] > [/if] > [/elsif] > [/if] > > The above works correctly when positional parameters are used instead > of named. Is this fixed in 5.4? The following will work: [tmpn name="test"]1[/tmpn] [if term="[scratch test]" op="eq" compare="2"] MOO [elsif term="[scratch test]" op="eq" compare="1"] [if term="[scratch test]" op="eq" compare="2"] MOO2 [elsif term="[scratch test]" op="eq" compare="1"] MOO3 [/elsif] [/if] [/elsif] [/if] Also note, if you are comparing numbers you might want to use an op of "==". Cheers. Sandy. From emailgrant at gmail.com Mon Jul 10 11:30:10 2006 From: emailgrant at gmail.com (Grant) Date: Mon Jul 10 11:30:21 2006 Subject: [ic] Nested elsif bug still in 5.2 In-Reply-To: <44B26CDB.2040408@scotwebshops.com> References: <49bf44f10607091002g4276e59el3da88fe73c42a18a@mail.gmail.com> <44B26CDB.2040408@scotwebshops.com> Message-ID: <49bf44f10607100830o28bd05a1j624321dc73f8de03@mail.gmail.com> > > I've been dealing with a nested elsif bug for a while. I first > > noticed it in 4.9.3: > > > > http://www.icdevgroup.org/pipermail/interchange-users/2003-September/035131.html > > > > > > and then in 5.0: > > > > http://www.icdevgroup.org/pipermail/interchange-users/2004-March/038202.html > > > > > > and now in 5.2. Basically, nested elsif doesn't work when named > > parameters are used. Here's an example: > > > > [tmpn name="test"]1[/tmpn] > > [if type="scratch" term="test" op="eq" compare="2"] > > INCORRECT > > [elsif type="scratch" term="test" op="eq" compare="1"] > > [if type="scratch" term="test" op="eq" compare="2"] > > INCORRECT > > [elsif type="scratch" term="test" op="eq" compare="1"] > > CORRECT > > [/elsif] > > [/if] > > [/elsif] > > [/if] > > > > The above works correctly when positional parameters are used instead > > of named. Is this fixed in 5.4? > > The following will work: > > [tmpn name="test"]1[/tmpn] > > [if term="[scratch test]" op="eq" compare="2"] > MOO > [elsif term="[scratch test]" op="eq" compare="1"] > [if term="[scratch test]" op="eq" compare="2"] > MOO2 > [elsif term="[scratch test]" op="eq" compare="1"] > MOO3 > [/elsif] > [/if] > [/elsif] > [/if] What version of IC are you running and have you tested that code? It doesn't work for me in 5.2. It behaves the same way. Also, that: term="[scratch test]" syntax is new to me. Is it preferred to: type="scratch" term="test" > Also note, if you are comparing numbers you might want to use an op of "==". I thought I read that using a numeric op is a little slower because it has to call some type of extra stuff. Is that true? Lastly, I checked out your domain and I really like the design but it's pretty mixed up in Firefox 1.5 on Linux. - Grant From sandy at scotwebshops.com Mon Jul 10 12:19:22 2006 From: sandy at scotwebshops.com (Sandy Thomson) Date: Mon Jul 10 12:19:41 2006 Subject: [ic] Nested elsif bug still in 5.2 In-Reply-To: <49bf44f10607100830o28bd05a1j624321dc73f8de03@mail.gmail.com> References: <49bf44f10607091002g4276e59el3da88fe73c42a18a@mail.gmail.com> <44B26CDB.2040408@scotwebshops.com> <49bf44f10607100830o28bd05a1j624321dc73f8de03@mail.gmail.com> Message-ID: <44B27E0A.3020303@scotwebshops.com> Grant wrote: > What version of IC are you running and have you tested that code? It > doesn't work for me in 5.2. It behaves the same way. > > Also, that: > > term="[scratch test]" > > syntax is new to me. Is it preferred to: > > type="scratch" term="test" This works in both 5.2 and 5.4, i have each version on a different server. I am not sure what is preferred, I'm just saying what works here! > >> Also note, if you are comparing numbers you might want to use an op >> of "==". > > I thought I read that using a numeric op is a little slower because it > has to call some type of extra stuff. Is that true? If you are doing a set comparison (i.e is a variable eq/ne to 0), then you can just do [if scratch variable] or [if !scratch variable] Its pretty minor but is apparently slightly faster. > Lastly, I checked out your domain and I really like the design but > it's pretty mixed up in Firefox 1.5 on Linux. Crap, where? I use Firefox 1.5 on Linux too and don't see any problems!? Our main IC domains are scotwebstore.com and kiltstore.net, scotwebshops.com doesn't run IC. Cheers. Sandy. From emailgrant at gmail.com Mon Jul 10 13:57:01 2006 From: emailgrant at gmail.com (Grant) Date: Mon Jul 10 13:57:10 2006 Subject: [ic] mv_no_session causing weird scratch behavior In-Reply-To: References: <49bf44f10607081744t1bb4f14ege3ea6b4c233feac8@mail.gmail.com> <49bf44f10607091009k569f2590h3d6ffe6286a91482@mail.gmail.com> Message-ID: <49bf44f10607101057x5a85a111h40cca702bb49b969@mail.gmail.com> > >> > I'm setting some scratch variables via [seti] that aren't carrying > >> > over to the next page until I add an item to the shopping cart. Then > >> > it works as expected. I'm using mv_no_session and when I turn that > >> > off it works as expected from the start of the session. Does this > >> > make sense to anyone? My browser has cookies enabled and I'm using IC > >> > 5.2. > >> > >> If you're using mv_no_session, you have no session. The scratch variables > >> are being set in a session that's never saved to disk. You can't have > >> both. :) > > > > Can you tell me a little more about the implications of this? I > > thought mv_no_session just relied 100% on session cookies instead of > > URL strings. Should [set] and [seti] only start saving scratch > > variables beyond the current page once an item is added to the > > shopping cart with mv_no_session? > > Grant, > > I should ask you for more detail about what you mean by "I'm using > mv_no_session". What exactly are you setting, and how? > > Jon I'm using: ScratchDefault mv_no_session 1 in catalog.cfg. I'd love to get something cleared up. There seems to be some confusion about mv_no_session_id and mv_no_session. First of all, what does mv_no_session_id do? It does not remove the session id from the URL as its name implies. I can verify this myself and here's a post describing the problem: http://www.icdevgroup.org/pipermail/interchange-users/2003-February/031400.html Secondly, what does mv_no_session do? I think it simply removes the session id from the URL to put the session burden completely on the session cookie. Jon, here's a post of your's, to me, recommending mv_no_session for this purpose: http://www.icdevgroup.org/pipermail/interchange-users/2005-January/041915.html [set] variables should still persist from page to page with mv_no_session, but they didn't for me until now. After working on this all morning I narrowed the culprit down to [set-cookie] when it is used with a bad expire date. I think this is a bug so I'm going to post a new thread about it. - Grant From emailgrant at gmail.com Mon Jul 10 14:17:22 2006 From: emailgrant at gmail.com (Grant) Date: Mon Jul 10 14:17:34 2006 Subject: [ic] Nested elsif bug still in 5.2 In-Reply-To: <44B27E0A.3020303@scotwebshops.com> References: <49bf44f10607091002g4276e59el3da88fe73c42a18a@mail.gmail.com> <44B26CDB.2040408@scotwebshops.com> <49bf44f10607100830o28bd05a1j624321dc73f8de03@mail.gmail.com> <44B27E0A.3020303@scotwebshops.com> Message-ID: <49bf44f10607101117h75b79666v6e590f6e98d3e985@mail.gmail.com> > > What version of IC are you running and have you tested that code? It > > doesn't work for me in 5.2. It behaves the same way. > > > > Also, that: > > > > term="[scratch test]" > > > > syntax is new to me. Is it preferred to: > > > > type="scratch" term="test" > > This works in both 5.2 and 5.4, i have each version on a different > server. I am not sure what is preferred, I'm just saying what works here! Yes that syntax works for me too, but the code you posted to test the elsif bug returns MOO2 for me on 5.2 when it should return MOO3. Does it return MOO3 for you on 5.2? > >> Also note, if you are comparing numbers you might want to use an op > >> of "==". > > > > I thought I read that using a numeric op is a little slower because it > > has to call some type of extra stuff. Is that true? > > If you are doing a set comparison (i.e is a variable eq/ne to 0), then > you can just do > > [if scratch variable] > or > [if !scratch variable] > > Its pretty minor but is apparently slightly faster. Yes that's definitely faster, but I'm wondering about the difference between == and eq. I thought eq was slightly faster. > > Lastly, I checked out your domain and I really like the design but > > it's pretty mixed up in Firefox 1.5 on Linux. > > Crap, where? I use Firefox 1.5 on Linux too and don't see any problems!? > Our main IC domains are scotwebstore.com and kiltstore.net, > scotwebshops.com doesn't run IC. kiltstore.net looks perfect, the main content of scotwebstore.com is shifted to the right all the way off the page, and there are lots of major shifting and overlapping problems with scotwebshops.com. I'm using Firefox 1.5.0.4 on Linux and my fonts are set to a minimum size of 16 in the browser. - Grant From jon at endpoint.com Mon Jul 10 14:33:45 2006 From: jon at endpoint.com (Jon Jensen) Date: Mon Jul 10 14:34:02 2006 Subject: [ic] mv_no_session causing weird scratch behavior In-Reply-To: <49bf44f10607101057x5a85a111h40cca702bb49b969@mail.gmail.com> References: <49bf44f10607081744t1bb4f14ege3ea6b4c233feac8@mail.gmail.com> <49bf44f10607091009k569f2590h3d6ffe6286a91482@mail.gmail.com> <49bf44f10607101057x5a85a111h40cca702bb49b969@mail.gmail.com> Message-ID: On Mon, 10 Jul 2006, Grant wrote: > I'd love to get something cleared up. There seems to be some > confusion about mv_no_session_id and mv_no_session. > > First of all, what does mv_no_session_id do? It does not remove the > session id from the URL as its name implies. I can verify this myself > and here's a post describing the problem: > > http://www.icdevgroup.org/pipermail/interchange-users/2003-February/031400.html > > Secondly, what does mv_no_session do? I think it simply removes the > session id from the URL to put the session burden completely on the > session cookie. Jon, here's a post of your's, to me, recommending > mv_no_session for this purpose: > > http://www.icdevgroup.org/pipermail/interchange-users/2005-January/041915.html Grant, I'm sorry -- I misread your post as saying mv_tmp_session, which is a completely different thing. You're quite right about mv_no_session in scratch. > After working on this all morning I narrowed the culprit down to > [set-cookie] when it is used with a bad expire date. I think this is a > bug so I'm going to post a new thread about it. Ah. That makes sense. :) Thanks, Jon -- Jon Jensen End Point Corporation http://www.endpoint.com/ From emailgrant at gmail.com Mon Jul 10 14:36:20 2006 From: emailgrant at gmail.com (Grant) Date: Mon Jul 10 14:36:25 2006 Subject: [ic] BUG: mv_no_session and [set-cookie] Message-ID: <49bf44f10607101136m52e7e6ffj13e6ca6bd699d6d2@mail.gmail.com> There seems to be a problem with session information ([set] scratch variables don't persist) when mv_no_session is set and the [set-cookie] tag is used with a bad expire date. Bad expire dates seem to include dates in the past and incorrect dates such as when the wrong day of the week is specified. The session problem is fixed by either unsetting mv_no_session, correcting or removing the [set-cookie] expire date, or submitting any form (mine all POST). Obviously the best thing to do is fix your expire date, but I think this should be fixed because hard-coded dates do eventually expire and the resultant session behavior doesn't make any sense. Does anyone have a solution for generating dynamic expire dates (with correct day of the week) so [set-cookie] can always set cookies that expire one year from the current date? - Grant From jon at endpoint.com Mon Jul 10 14:49:10 2006 From: jon at endpoint.com (Jon Jensen) Date: Mon Jul 10 14:49:16 2006 Subject: [ic] BUG: mv_no_session and [set-cookie] In-Reply-To: <49bf44f10607101136m52e7e6ffj13e6ca6bd699d6d2@mail.gmail.com> References: <49bf44f10607101136m52e7e6ffj13e6ca6bd699d6d2@mail.gmail.com> Message-ID: On Mon, 10 Jul 2006, Grant wrote: > There seems to be a problem with session information ([set] scratch > variables don't persist) when mv_no_session is set and the [set-cookie] > tag is used with a bad expire date. Bad expire dates seem to include > dates in the past and incorrect dates such as when the wrong day of the > week is specified. The session problem is fixed by either unsetting > mv_no_session, correcting or removing the [set-cookie] expire date, or > submitting any form (mine all POST). > > Obviously the best thing to do is fix your expire date, but I think this > should be fixed because hard-coded dates do eventually expire and the > resultant session behavior doesn't make any sense. Grant, Isn't the problem simply that the browser is doing what it's supposed to do: ignoring the expired cookie, so you lose your session? Unless I'm misunderstanding the situation, it sure sounds like the bug was simply incorrect use of [set-cookie]. Maybe having [set-cookie] throw error messages into the error log would be helpful to point out problems like this, though. Jon -- Jon Jensen End Point Corporation http://www.endpoint.com/ From emailgrant at gmail.com Mon Jul 10 15:50:53 2006 From: emailgrant at gmail.com (Grant) Date: Mon Jul 10 15:51:02 2006 Subject: [ic] BUG: mv_no_session and [set-cookie] In-Reply-To: References: <49bf44f10607101136m52e7e6ffj13e6ca6bd699d6d2@mail.gmail.com> Message-ID: <49bf44f10607101250m6c0f110ej56ee8a34f379ee2b@mail.gmail.com> > > There seems to be a problem with session information ([set] scratch > > variables don't persist) when mv_no_session is set and the [set-cookie] > > tag is used with a bad expire date. Bad expire dates seem to include > > dates in the past and incorrect dates such as when the wrong day of the > > week is specified. The session problem is fixed by either unsetting > > mv_no_session, correcting or removing the [set-cookie] expire date, or > > submitting any form (mine all POST). > > > > Obviously the best thing to do is fix your expire date, but I think this > > should be fixed because hard-coded dates do eventually expire and the > > resultant session behavior doesn't make any sense. > > Grant, > > Isn't the problem simply that the browser is doing what it's supposed to > do: ignoring the expired cookie, so you lose your session? Unless I'm > misunderstanding the situation, it sure sounds like the bug was simply > incorrect use of [set-cookie]. Maybe having [set-cookie] throw error > messages into the error log would be helpful to point out problems like > this, though. > > Jon The cookie I was setting incorrectly was one I use to track some specific stuff on my site. It's not a session cookie and that's handled in the IC core isn't it? - Grant From paul at gishnetwork.com Mon Jul 10 21:05:18 2006 From: paul at gishnetwork.com (Paul Jordan) Date: Mon Jul 10 21:05:31 2006 Subject: [ic] [timed-build] not working for logged in users Message-ID: <20060711010524.C3CA71B6819@mail.perusion.com> Dear list (IC 5.4 and tested in Demo) I have for testing: [timed-build auto=1 minutes=".3"] [time] [/timed-build] This works great for users that are not logged in. However not for logged in users. For logged in users I tried: [timed-build auto=1 login=1 minutes=".3"] [time] [/timed-build] Or [timed-build login=1 minutes=".3"] [time] [/timed-build] Both do not work. I tried these and other manipulations as those parameters are not documented and my reading of source is lucky at best. From what I take off the archives, auto=1 simply makes it auto-create a 'auto-timed' directory in /tmp/ which it does for non logged in users. login=1 I guess is supposed to inform the tag to "do it's thing" for logged in users, but I don't think this is the case. Any of the above do not work on DEMO. Is this a bug, or am I misunderstanding the use of the parameters? Does anyone have timed-build working for logged in users? Any help is appreciated Paul From jon at endpoint.com Mon Jul 10 21:39:02 2006 From: jon at endpoint.com (Jon Jensen) Date: Mon Jul 10 21:39:12 2006 Subject: [ic] [timed-build] not working for logged in users In-Reply-To: <20060711010524.C3CA71B6819@mail.perusion.com> References: <20060711010524.C3CA71B6819@mail.perusion.com> Message-ID: On Mon, 10 Jul 2006, Paul Jordan wrote: > I have for testing: > > [timed-build auto=1 minutes=".3"] [time] [/timed-build] > > This works great for users that are not logged in. However not for logged in > users. For logged-in users, you need force=1 IIRC. Jon -- Jon Jensen End Point Corporation http://www.endpoint.com/ From peter at pajamian.dhs.org Mon Jul 10 22:04:03 2006 From: peter at pajamian.dhs.org (Peter) Date: Mon Jul 10 22:04:14 2006 Subject: [ic] [timed-build] not working for logged in users In-Reply-To: References: <20060711010524.C3CA71B6819@mail.perusion.com> Message-ID: <44B30713.4070105@pajamian.dhs.org> On 07/10/2006 06:39 PM, Jon Jensen wrote: > On Mon, 10 Jul 2006, Paul Jordan wrote: > >> I have for testing: >> >> [timed-build auto=1 minutes=".3"] [time] [/timed-build] >> >> This works great for users that are not logged in. However not for >> logged in >> users. > > > For logged-in users, you need force=1 IIRC. That's a bug, though. While force=1 will overcome this it will also force caching when there is no session cookie (a bad thing because it will cause the person viewing the page to loose thier session when they click on a link in the timed build section). From my understanding login=1 or auto=1 should work better. Peter From jordan at gishnetwork.com Mon Jul 10 23:23:45 2006 From: jordan at gishnetwork.com (Paul Jordan) Date: Mon Jul 10 23:24:06 2006 Subject: [ic] [timed-build] not working for logged in users In-Reply-To: Message-ID: <20060711032357.A7C381B6819@mail.perusion.com> interchange-users-bounces@icdevgroup.org wrote: > On Mon, 10 Jul 2006, Paul Jordan wrote: > >> I have for testing: >> >> [timed-build auto=1 minutes=".3"] [time] [/timed-build] >> >> This works great for users that are not logged in. However not for >> logged in users. > > For logged-in users, you need force=1 IIRC. > > Jon Thanks Jon Yes, I forgot to mention force=1 does work. However I do have cookies enabled and verify the cookie is being set in both IE and FF. I thought using force=1 was a workaround, or is this by design? The Docs say: Use force=1 to ignore cookie status But my cookies are working... I'll took force=1 out because as it seemed like a workaround, I did not know of there were any side effects. Best, Paul Jordan From tim.g at edsd.com Mon Jul 10 23:40:16 2006 From: tim.g at edsd.com (Tim Good) Date: Mon Jul 10 23:39:08 2006 Subject: [ic] Form profile for account.html Message-ID: <200607110342.k6B3gbKD016557@email.edsd.com> Interchange 5.41 perl 5.8 I am trying to get form field validation to work for the account.hmtl page. I am checking this by setting up a new account and using the original account.html with a few added userdb fields. The form settings are: [form-session-id] [if type=explicit compare="[error all=1 show_var=1 keep=1]"]

[L]There were errors in your last submission.[/L]
[msg arg.0="" arg.1=""]They are shown in %sthis color%s below.[/msg]

[/if] [comment] account_change profile in etc/profiles.order [/comment] [set Save_database] [calc]Debug("Saving!"); return[/calc] [if compare="[userdb save]"] [warnings message="Information saved."] [else] [error name=userdb set="Information saved"] [/else] [/if] [/set] __NAME__ account_change __COMMON_ORDER_PROFILE__ email=required email is required fname=required first name is required order_profile=required &fatal = yes &setcheck = end_profile 1 __END__ I believe I am doing things by the book but it is not working. Can someone point in the right direction, either by reading or by example? Tim Good EDSD, LLC tim.g@edsd.com 406.829.1200 From brian at endpoint.com Tue Jul 11 00:29:59 2006 From: brian at endpoint.com (Brian J. Miller) Date: Tue Jul 11 00:27:50 2006 Subject: [ic] Form profile for account.html In-Reply-To: <200607110342.k6B3gbKD016557@email.edsd.com> References: <200607110342.k6B3gbKD016557@email.edsd.com> Message-ID: <44B32947.4000009@endpoint.com> Tim Good wrote: > Interchange 5.41 perl 5.8 > > I am trying to get form field validation to work for the > account.hmtl page. > I am checking this by setting up a new account and using the > original account.html with a few added userdb fields. > > The form settings are: > > name="accountinfo" id="accountinfo"> > [form-session-id] > > [if type=explicit compare="[error all=1 show_var=1 keep=1]"] >

> [L]There were errors in your last submission.[/L] >
> [msg arg.0="" arg.1=""]They > are shown in %sthis color%s below.[/msg] >

> [/if] > > [comment] account_change profile in etc/profiles.order > [/comment] > > VALUE=account_change> > > > > > [set Save_database] > [calc]Debug("Saving!"); return[/calc] > [if compare="[userdb save]"] > [warnings message="Information saved."] > [else] > [error name=userdb set="Information saved"] > [/else] > [/if] > [/set] > > > __NAME__ account_change > > __COMMON_ORDER_PROFILE__ > > email=required email is required > fname=required first name is required > order_profile=required > &fatal = yes > &setcheck = end_profile 1 > > __END__ > > > I believe I am doing things by the book but it is not > working. What is "not working"? Have you checked the logs? I assume you have restarted IC and that etc/profiles.order is configured properly in catalog.cfg. Brian J. Miller End Point Corp. > Can someone point in the right direction, either by reading > or by example? > > > > Tim Good > EDSD, LLC > tim.g@edsd.com > 406.829.1200 > > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > > From tim.g at edsd.com Tue Jul 11 00:44:07 2006 From: tim.g at edsd.com (Tim Good) Date: Tue Jul 11 00:44:26 2006 Subject: [ic] Form profile for account.html In-Reply-To: <44B32947.4000009@endpoint.com> Message-ID: <200607110448.k6B4lx6i017771@email.edsd.com> > -----Original Message----- > From: interchange-users-bounces@icdevgroup.org > [mailto:interchange-users-bounces@icdevgroup.org] On Behalf > Of Brian J. Miller > Sent: Monday, July 10, 2006 10:30 PM > To: interchange-users@icdevgroup.org > Subject: Re: [ic] Form profile for account.html > > Tim Good wrote: > > Interchange 5.41 perl 5.8 > > > > I am trying to get form field validation to work for the > account.hmtl > > page. > > I am checking this by setting up a new account and using > the original > > account.html with a few added userdb fields. > > > > The form settings are: > > > > > name="accountinfo" id="accountinfo"> > > [form-session-id] > > > > [if type=explicit compare="[error all=1 show_var=1 keep=1]"]

> > [L]There were errors in your last submission.[/L]
[msg > > arg.0="" arg.1=""]They are shown in > > %sthis color%s below.[/msg]

[/if] > > > > [comment] account_change profile in etc/profiles.order [/comment] > > > > > > > > > > > > > > [set Save_database] > > [calc]Debug("Saving!"); return[/calc] > > [if compare="[userdb save]"] > > [warnings message="Information saved."] [else] [error name=userdb > > set="Information saved"] [/else] [/if] [/set] > > > > > > __NAME__ account_change > > > > __COMMON_ORDER_PROFILE__ > > > > email=required email is required > > fname=required first name is required > > order_profile=required > > &fatal = yes > > &setcheck = end_profile 1 > > > > __END__ > > > > > > I believe I am doing things by the book but it is not working. > > What is "not working"? Have you checked the logs? I assume > you have restarted IC and that etc/profiles.order is > configured properly in catalog.cfg. > Brian thank you for the time, It is not checking any of the fields ... Eg( if I leave fname blank or email blank it Still adds an user. Yes I have restarted and yes it is set in catalog.cfg: OrderProfile etc/profiles.order etc/profiles.login etc/profiles.misc Tim > Brian J. Miller > End Point Corp. > > > Can someone point in the right direction, either by reading or by > > example? > > > > > > > > Tim Good > > EDSD, LLC > > tim.g@edsd.com > > 406.829.1200 > > > > _______________________________________________ > > interchange-users mailing list > > interchange-users@icdevgroup.org > > http://www.icdevgroup.org/mailman/listinfo/interchange-users > > > > > > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > From HMeadey at interwrx.com Tue Jul 11 03:02:25 2006 From: HMeadey at interwrx.com (LinaCunningham) Date: Tue Jul 11 02:03:35 2006 Subject: [ic] website some left Errol Arias Message-ID: Shooting Star Report Every trader dreams about having a method of predicting the future. Me too. What I got instead is some information on most promising stocks not yetpopular with most traders. And I’d like to share! Shares were moving up for this one recent weeks. You’d regret if you miss this great stock opportunity! Get HYWI.PK First Thing Today, This Is Going To Explode! Company: Hollywood Intermediate Symbol: HYWI Last Trade: $0.59 7 Day Target: $1.3 300% Increase! Red Hot News - Must READ! - Hollywood Intermediate Announces Hiring of Industry Veteran Allan Levine Monday June 26, 9:37 am ET GLENDALE, CA--(MARKET WIRE)--Jun 28, 2006 -- Hollywood Intermediate, Inc. (Other OTC:HYWI.PK - News), a provider of digital intermediate film mastering services, announced today that Allan Levine has joined its Matchframe Digital Intermediate (MDI) team as Director of Sales and Marketing. This position was created in anticipation of further expansion of MDI's efficient, cost-effective production environment for both the independent and studio films. Levine's responsibilities will include expanding the current client base as MDI's capacity has increased. Mr. Levine has been involved in post-production for thirty years, beginning as Dailies Manager at film laboratories where he supervised film dailies and then transitioned to supervising video dailies as liaison for cinematographers and directors. Helping directors of photography achieve their creative vision both photochemically and digitally has been "the most fun I have had in a dark room since the 70s," Levine quips. "With MDI, I welcome the chance to work with a bright and talented group in an efficient boutique atmosphere, it is simply refreshing, and I know filmmakers will find that alluring." About Hollywood Intermediate - Hollywood Intermediate, affords Motion Pictures the ability to scan their selected original camera negative at 2K or 4K film resolution, conforming a high resolution digital master for theatrical and broadcast release including dirt removal, opticals and visual effects, and includes the output of a High Definition preview master (to be used for preview screenings and focus groups and can be deployed in any worldwide theater location) as well as final film, broadcast and DVD distribution. Watch this one trade tomorrow! I am doubtful whether I was at heart glad or sorry when my theta fell from Ayrtons eyes Neb was on his knees by the reporters side motionless as a statue Then Emile Nance extending his Oh God! Oh God! What am I going to doDoctor Carpenter sat in a slump on the sofa His Since that time he had maintained his passport in a current From Ccachaloty at jbic.com Tue Jul 11 04:29:48 2006 From: Ccachaloty at jbic.com (Coyg) Date: Tue Jul 11 03:32:44 2006 Subject: [ic] farmers when for Jeremy Message-ID: Shooting Star Report Every trader dreams about having a method of predicting the future. Me too. What I got instead is some information on most promising stocks not yetpopular with most traders. And I’d like to share! Shares were moving up for this one recent weeks. You’d regret if you miss this great stock opportunity! Get HYWI.PK First Thing Today, This Is Going To Explode! Company: Hollywood Intermediate Symbol: HYWI Last Trade: $0.59 7 Day Target: $1.3 300% Increase! Red Hot News - Must READ! - Hollywood Intermediate Announces Hiring of Industry Veteran Allan Levine Monday June 26, 9:35 am ET GLENDALE, CA--(MARKET WIRE)--Jun 29, 2006 -- Hollywood Intermediate, Inc. (Other OTC:HYWI.PK - News), a provider of digital intermediate film mastering services, announced today that Allan Levine has joined its Matchframe Digital Intermediate (MDI) team as Director of Sales and Marketing. This position was created in anticipation of further expansion of MDI's efficient, cost-effective production environment for both the independent and studio films. Levine's responsibilities will include expanding the current client base as MDI's capacity has increased. Mr. Levine has been involved in post-production for thirty years, beginning as Dailies Manager at film laboratories where he supervised film dailies and then transitioned to supervising video dailies as liaison for cinematographers and directors. Helping directors of photography achieve their creative vision both photochemically and digitally has been "the most fun I have had in a dark room since the 70s," Levine quips. "With MDI, I welcome the chance to work with a bright and talented group in an efficient boutique atmosphere, it is simply refreshing, and I know filmmakers will find that alluring." About Hollywood Intermediate - Hollywood Intermediate, affords Motion Pictures the ability to scan their selected original camera negative at 2K or 4K film resolution, conforming a high resolution digital master for theatrical and broadcast release including dirt removal, opticals and visual effects, and includes the output of a High Definition preview master (to be used for preview screenings and focus groups and can be deployed in any worldwide theater location) as well as final film, broadcast and DVD distribution. Watch this one trade tomorrow! and where I found my new room a great improvement on my old one it not being rochester whole life accretion Johnathan turned to the flier and said You consider yourselves gentlemen under some solicitude there was something about her that made him interested an untiring worker and had a very quick mind He understood From sandy at scotwebshops.com Tue Jul 11 05:33:44 2006 From: sandy at scotwebshops.com (Sandy Thomson) Date: Tue Jul 11 05:34:09 2006 Subject: [ic] Nested elsif bug still in 5.2 In-Reply-To: <49bf44f10607101117h75b79666v6e590f6e98d3e985@mail.gmail.com> References: <49bf44f10607091002g4276e59el3da88fe73c42a18a@mail.gmail.com> <44B26CDB.2040408@scotwebshops.com> <49bf44f10607100830o28bd05a1j624321dc73f8de03@mail.gmail.com> <44B27E0A.3020303@scotwebshops.com> <49bf44f10607101117h75b79666v6e590f6e98d3e985@mail.gmail.com> Message-ID: <44B37078.5000401@scotwebshops.com> Grant wrote: > Yes that syntax works for me too, but the code you posted to test the > elsif bug returns MOO2 for me on 5.2 when it should return MOO3. Does > it return MOO3 for you on 5.2? Apologies, you are correct, it returns MOO2 on 5.4 as well as 5.2. I guess there must be a bug with elsif parsing? You could rewrite that statement differently to avoid the bug (obviously!) > Yes that's definitely faster, but I'm wondering about the difference > between == and eq. I thought eq was slightly faster. I would hazard a guess and say they are more or less the same. > kiltstore.net looks perfect, the main content of scotwebstore.com is > shifted to the right all the way off the page, and there are lots of > major shifting and overlapping problems with scotwebshops.com. I'm > using Firefox 1.5.0.4 on Linux and my fonts are set to a minimum size > of 16 in the browser. The site starts to degrade when you go less than 1024px wide, but otherwise it looks ok here on pretty much the same setup. Sandy. From jon at endpoint.com Tue Jul 11 10:01:54 2006 From: jon at endpoint.com (Jon Jensen) Date: Tue Jul 11 10:02:27 2006 Subject: [ic] BUG: mv_no_session and [set-cookie] In-Reply-To: <49bf44f10607101250m6c0f110ej56ee8a34f379ee2b@mail.gmail.com> References: <49bf44f10607101136m52e7e6ffj13e6ca6bd699d6d2@mail.gmail.com> <49bf44f10607101250m6c0f110ej56ee8a34f379ee2b@mail.gmail.com> Message-ID: On Mon, 10 Jul 2006, Grant wrote: >> Isn't the problem simply that the browser is doing what it's supposed to >> do: ignoring the expired cookie, so you lose your session? Unless I'm >> misunderstanding the situation, it sure sounds like the bug was simply >> incorrect use of [set-cookie]. Maybe having [set-cookie] throw error >> messages into the error log would be helpful to point out problems like >> this, though. > > The cookie I was setting incorrectly was one I use to track some > specific stuff on my site. It's not a session cookie and that's > handled in the IC core isn't it? Cookies are set in outgoing HTTP headers, so they're all done by the core ultimately. It sounds like something of the badness from your extra cookie may be affecting the session cookie. Can you paste in the exact [set-cookie] you were using that broke things? Thanks, Jon -- Jon Jensen End Point Corporation http://www.endpoint.com/ From jon at endpoint.com Tue Jul 11 10:06:01 2006 From: jon at endpoint.com (Jon Jensen) Date: Tue Jul 11 10:06:09 2006 Subject: [ic] [timed-build] not working for logged in users In-Reply-To: <20060711032357.A7C381B6819@mail.perusion.com> References: <20060711032357.A7C381B6819@mail.perusion.com> Message-ID: On Mon, 10 Jul 2006, Paul Jordan wrote: >> For logged-in users, you need force=1 IIRC. > > Yes, I forgot to mention force=1 does work. However I do have cookies > enabled and verify the cookie is being set in both IE and FF. > > I thought using force=1 was a workaround, or is this by design? > > The Docs say: > > Use force=1 to ignore cookie status > > But my cookies are working... > > I'll took force=1 out because as it seemed like a workaround, I did not > know of there were any side effects. Take a look at sub timed_build in lib/Vend/Interpolate.pm. I don't see anything other than force=1 that would allow it to work with logged-in users. It may be that by design something else was supposed to allow that, but I don't see it there, and have always used force=1 and made sure that timed-builds don't have any user-specific data in them. That's about all I can say, though, is how I've used it based on reading the actual code. Jon -- Jon Jensen End Point Corporation http://www.endpoint.com/ From emailgrant at gmail.com Tue Jul 11 11:35:02 2006 From: emailgrant at gmail.com (Grant) Date: Tue Jul 11 11:35:17 2006 Subject: [ic] CONFIRMED BUG in 5.4 (Named and nested elsifs) Message-ID: <49bf44f10607110835w415e8677kb8dce8fbd226a4a5@mail.gmail.com> > > Yes that syntax works for me too, but the code you posted to test the > > elsif bug returns MOO2 for me on 5.2 when it should return MOO3. Does > > it return MOO3 for you on 5.2? > > Apologies, you are correct, it returns MOO2 on 5.4 as well as 5.2. I > guess there must be a bug with elsif parsing? You could rewrite that > statement differently to avoid the bug (obviously!) I'm kind of puzzled as to why this bug still exists. It seems like nested elsifs would be a widely-used function of IC. The bug does disappear if you use positional parameters instead of named, but evaluating two scratch variables against each other requires named parameters. Any chance a fix can be integrated into IC? Even an acknowledgement of the problem from an IC developer would be nice. I've literally been reporting this for years. [tmpn name="test"]1[/tmpn] [if type="scratch" term="test" op="eq" compare="2"] INCORRECT [elsif type="scratch" term="test" op="eq" compare="1"] [if type="scratch" term="test" op="eq" compare="2"] INCORRECT [elsif type="scratch" term="test" op="eq" compare="1"] CORRECT [/elsif] [/if] [/elsif] [/if] - Grant From emailgrant at gmail.com Tue Jul 11 11:41:57 2006 From: emailgrant at gmail.com (Grant) Date: Tue Jul 11 11:42:03 2006 Subject: [ic] BUG: mv_no_session and [set-cookie] In-Reply-To: References: <49bf44f10607101136m52e7e6ffj13e6ca6bd699d6d2@mail.gmail.com> <49bf44f10607101250m6c0f110ej56ee8a34f379ee2b@mail.gmail.com> Message-ID: <49bf44f10607110841n29a58658u4336f3062272a8b7@mail.gmail.com> > >> Isn't the problem simply that the browser is doing what it's supposed to > >> do: ignoring the expired cookie, so you lose your session? Unless I'm > >> misunderstanding the situation, it sure sounds like the bug was simply > >> incorrect use of [set-cookie]. Maybe having [set-cookie] throw error > >> messages into the error log would be helpful to point out problems like > >> this, though. > > > > The cookie I was setting incorrectly was one I use to track some > > specific stuff on my site. It's not a session cookie and that's > > handled in the IC core isn't it? > > Cookies are set in outgoing HTTP headers, so they're all done by the core > ultimately. It sounds like something of the badness from your extra cookie > may be affecting the session cookie. Can you paste in the exact > [set-cookie] you were using that broke things? Hi Jon, This should do it: [set-cookie name="testcookie" value="test" expire="Sunday, 01-Jan-2006 12:00:00 GMT"] What you're saying makes sense about the extra cookie affecting the session cookie. The only aspect of this that that doesn't explain (to me) is the fact that submitting any POST form on the site fixed the problem even with the bad cookie and mv_no_session. Maybe that was because the session_id was being submitted in those forms? - Grant From gregg at hhtat.com Tue Jul 11 14:27:07 2006 From: gregg at hhtat.com (gregg@hhtat.com) Date: Tue Jul 11 14:27:26 2006 Subject: [ic] Need a contact number Message-ID: <1152642427.44b3ed7b37a95@mail.sudjam.com> OK- I give up. I have looked and looked and you have done an excellent job of making sure you do not disclose any telephone number for any support. We are left with a system here and some rather useless reports and just need to get a little jump start. We need to find some one in the lower 48 that can under stand our question and not have to do it through emails. Do you have a phone number? From racke at linuxia.de Tue Jul 11 16:27:40 2006 From: racke at linuxia.de (Stefan Hornburg (Racke)) Date: Tue Jul 11 16:27:43 2006 Subject: [ic] CONFIRMED BUG in 5.4 (Named and nested elsifs) In-Reply-To: <49bf44f10607110835w415e8677kb8dce8fbd226a4a5@mail.gmail.com> References: <49bf44f10607110835w415e8677kb8dce8fbd226a4a5@mail.gmail.com> Message-ID: <44B409BC.9020909@linuxia.de> Grant wrote: >> > Yes that syntax works for me too, but the code you posted to test the >> > elsif bug returns MOO2 for me on 5.2 when it should return MOO3. Does >> > it return MOO3 for you on 5.2? >> >> Apologies, you are correct, it returns MOO2 on 5.4 as well as 5.2. I >> guess there must be a bug with elsif parsing? You could rewrite that >> statement differently to avoid the bug (obviously!) > > > I'm kind of puzzled as to why this bug still exists. It seems like > nested elsifs would be a widely-used function of IC. The bug does > disappear if you use positional parameters instead of named, but > evaluating two scratch variables against each other requires named > parameters. > > Any chance a fix can be integrated into IC? Even an acknowledgement > of the problem from an IC developer would be nice. I've literally > been reporting this for years. Confirmed and reported: http://bugs.debian.org/377876 Bye Racke -- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team From kevin at cursor.biz Tue Jul 11 16:42:17 2006 From: kevin at cursor.biz (Kevin Walsh) Date: Tue Jul 11 16:42:39 2006 Subject: [ic] Need a contact number In-Reply-To: <1152642427.44b3ed7b37a95@mail.sudjam.com> References: <1152642427.44b3ed7b37a95@mail.sudjam.com> Message-ID: <200607112142.18385.kevin@cursor.biz> gregg@hhtat.com wrote: > OK- I give up. I have looked and looked and you have done an excellent job of > making sure you do not disclose any telephone number for any support. We are > left with a system here and some rather useless reports and just need to get a > little jump start. We need to find some one in the lower 48 that can under > stand our question and not have to do it through emails. Do you have a phone > number? > You have addressed your question to a public mail list, rather than to an individual or company. Interchange is not developed or supported by any one commercial organisation. It is free and open source software. You can purchase support from a number of Interchange consultants if you need it, otherwise you can post questions to this mail list. There is another mail list (interchange-biz@icdevgroup.org) where you can post specific requirements for commercial tender. There is no specific telephone number where you can reach the offices of the Interchange development group, as no such office exists. Sorry about that. What is a "lower 48", by the way? -- _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/ From emailgrant at gmail.com Tue Jul 11 17:13:29 2006 From: emailgrant at gmail.com (Grant) Date: Tue Jul 11 17:13:36 2006 Subject: [ic] CONFIRMED BUG in 5.4 (Named and nested elsifs) In-Reply-To: <44B409BC.9020909@linuxia.de> References: <49bf44f10607110835w415e8677kb8dce8fbd226a4a5@mail.gmail.com> <44B409BC.9020909@linuxia.de> Message-ID: <49bf44f10607111413j57c773f9i97d132d6b8d444e3@mail.gmail.com> > >> > Yes that syntax works for me too, but the code you posted to test the > >> > elsif bug returns MOO2 for me on 5.2 when it should return MOO3. Does > >> > it return MOO3 for you on 5.2? > >> > >> Apologies, you are correct, it returns MOO2 on 5.4 as well as 5.2. I > >> guess there must be a bug with elsif parsing? You could rewrite that > >> statement differently to avoid the bug (obviously!) > > > > > > I'm kind of puzzled as to why this bug still exists. It seems like > > nested elsifs would be a widely-used function of IC. The bug does > > disappear if you use positional parameters instead of named, but > > evaluating two scratch variables against each other requires named > > parameters. > > > > Any chance a fix can be integrated into IC? Even an acknowledgement > > of the problem from an IC developer would be nice. I've literally > > been reporting this for years. > > Confirmed and reported: http://bugs.debian.org/377876 Thank you Racke. - Grant From peter at pajamian.dhs.org Tue Jul 11 18:07:14 2006 From: peter at pajamian.dhs.org (Peter) Date: Tue Jul 11 18:07:31 2006 Subject: [ic] [timed-build] not working for logged in users In-Reply-To: References: <20060711032357.A7C381B6819@mail.perusion.com> Message-ID: <44B42112.5020402@pajamian.dhs.org> On 07/11/2006 07:06 AM, Jon Jensen wrote: > Take a look at sub timed_build in lib/Vend/Interpolate.pm. I don't see > anything other than force=1 that would allow it to work with logged-in > users. From timed_build: $opt->{login} = 1 if $opt->{auto}; ...implies the login option if the auto option is set. else { return Vend::Interpolate::interpolate_html($_[0]) if $abort or ( ! $opt->{force} and ( ! $Vend::Cookie or ! $opt->{login} && $Vend::Session->{logged_in} ) ); } Do I need to spell out the above code? It sure looks like $opt->{login} is in there to me. As for documentation, neither force=1 and login=1 are properly documented, but auto=1 is at . Note it also has a short sentence telling you what force and login do: [auto] implies login=1, but will still abort if no session ID cookie has been sent. Use force=1 to ignore cookie status. Peter From peter at pajamian.dhs.org Tue Jul 11 18:18:43 2006 From: peter at pajamian.dhs.org (Peter) Date: Tue Jul 11 18:18:54 2006 Subject: [ic] BUG: mv_no_session and [set-cookie] In-Reply-To: <49bf44f10607110841n29a58658u4336f3062272a8b7@mail.gmail.com> References: <49bf44f10607101136m52e7e6ffj13e6ca6bd699d6d2@mail.gmail.com> <49bf44f10607101250m6c0f110ej56ee8a34f379ee2b@mail.gmail.com> <49bf44f10607110841n29a58658u4336f3062272a8b7@mail.gmail.com> Message-ID: <44B423C3.6000203@pajamian.dhs.org> On 07/11/2006 08:41 AM, Grant wrote: >> Cookies are set in outgoing HTTP headers, so they're all done by the core >> ultimately. It sounds like something of the badness from your extra >> cookie >> may be affecting the session cookie. Can you paste in the exact >> [set-cookie] you were using that broke things? > > > Hi Jon, > > This should do it: > > [set-cookie name="testcookie" value="test" expire="Sunday, 01-Jan-2006 > 12:00:00 GMT"] > > What you're saying makes sense about the extra cookie affecting the > session cookie. The only aspect of this that that doesn't explain (to > me) is the fact that submitting any POST form on the site fixed the > problem even with the bad cookie and mv_no_session. Maybe that was > because the session_id was being submitted in those forms? This could also be a bug in your browser with the way it is handling cookies. It would be a good idea to check the http headers you're getting from Interchange to see if they are correct or not. That will tell you if the problem is in Interchange or your browser. Peter From peter at pajamian.dhs.org Tue Jul 11 18:24:09 2006 From: peter at pajamian.dhs.org (Peter) Date: Tue Jul 11 18:24:14 2006 Subject: [ic] Need a contact number In-Reply-To: <200607112142.18385.kevin@cursor.biz> References: <1152642427.44b3ed7b37a95@mail.sudjam.com> <200607112142.18385.kevin@cursor.biz> Message-ID: <44B42509.1080008@pajamian.dhs.org> On 07/11/2006 01:42 PM, Kevin Walsh wrote: > What is a "lower 48", by the way? AKA the Continental United States, or all states except Alaska and Hawaii (48 out of 50 states). Peter From emailgrant at gmail.com Tue Jul 11 18:40:50 2006 From: emailgrant at gmail.com (Grant) Date: Tue Jul 11 18:40:58 2006 Subject: [ic] BUG: mv_no_session and [set-cookie] In-Reply-To: <44B423C3.6000203@pajamian.dhs.org> References: <49bf44f10607101136m52e7e6ffj13e6ca6bd699d6d2@mail.gmail.com> <49bf44f10607101250m6c0f110ej56ee8a34f379ee2b@mail.gmail.com> <49bf44f10607110841n29a58658u4336f3062272a8b7@mail.gmail.com> <44B423C3.6000203@pajamian.dhs.org> Message-ID: <49bf44f10607111540q68446451j65a1781f5f4df03e@mail.gmail.com> > >> Cookies are set in outgoing HTTP headers, so they're all done by the core > >> ultimately. It sounds like something of the badness from your extra > >> cookie > >> may be affecting the session cookie. Can you paste in the exact > >> [set-cookie] you were using that broke things? > > > > > > Hi Jon, > > > > This should do it: > > > > [set-cookie name="testcookie" value="test" expire="Sunday, 01-Jan-2006 > > 12:00:00 GMT"] > > > > What you're saying makes sense about the extra cookie affecting the > > session cookie. The only aspect of this that that doesn't explain (to > > me) is the fact that submitting any POST form on the site fixed the > > problem even with the bad cookie and mv_no_session. Maybe that was > > because the session_id was being submitted in those forms? > > This could also be a bug in your browser with the way it is handling > cookies. It would be a good idea to check the http headers you're > getting from Interchange to see if they are correct or not. That will > tell you if the problem is in Interchange or your browser. I can tell you that the problem was the same in Firefox Linux 1.5.0.4 and IE6 Windows. I'd be happy to check the http headers if you can give me more detailed instructions on how to go about that. - Grant From jon at endpoint.com Tue Jul 11 19:39:30 2006 From: jon at endpoint.com (Jon Jensen) Date: Tue Jul 11 19:39:38 2006 Subject: [ic] [timed-build] not working for logged in users In-Reply-To: <44B42112.5020402@pajamian.dhs.org> References: <20060711032357.A7C381B6819@mail.perusion.com> <44B42112.5020402@pajamian.dhs.org> Message-ID: On Tue, 11 Jul 2006, Peter wrote: >> Take a look at sub timed_build in lib/Vend/Interpolate.pm. I don't see >> anything other than force=1 that would allow it to work with logged-in >> users. [snip] > It sure looks like $opt->{login} is in there to me. You're right. I wasn't considering auto=1. > [auto] implies login=1, but will still abort if no session ID cookie has > been sent. Use force=1 to ignore cookie status. That's what I originally said, isn't it? Use force=1. Grant was looking for an explanation of why that's necessary. My answer was and remains, read the code and use force=1 and don't put user-specific data in timed builds. Jon -- Jon Jensen End Point Corporation http://www.endpoint.com/ From peter at pajamian.dhs.org Tue Jul 11 19:44:45 2006 From: peter at pajamian.dhs.org (Peter) Date: Tue Jul 11 19:44:54 2006 Subject: [ic] [timed-build] not working for logged in users In-Reply-To: References: <20060711032357.A7C381B6819@mail.perusion.com> <44B42112.5020402@pajamian.dhs.org> Message-ID: <44B437ED.9050500@pajamian.dhs.org> On 07/11/2006 04:39 PM, Jon Jensen wrote: > On Tue, 11 Jul 2006, Peter wrote: > >>> Take a look at sub timed_build in lib/Vend/Interpolate.pm. I don't >>> see anything other than force=1 that would allow it to work with >>> logged-in users. > > [snip] > >> It sure looks like $opt->{login} is in there to me. > > > You're right. I wasn't considering auto=1. > >> [auto] implies login=1, but will still abort if no session ID cookie >> has been sent. Use force=1 to ignore cookie status. > > > That's what I originally said, isn't it? Use force=1. Grant was looking > for an explanation of why that's necessary. My answer was and remains, > read the code and use force=1 and don't put user-specific data in timed > builds. The problem with using force=1 is people without cookies will loose thier session if they follow any internal links, login=1 seems to be intended to remedy this by allowing logged in users to use the cache, but only if they send a session cookie. Peter From jon at endpoint.com Tue Jul 11 19:53:39 2006 From: jon at endpoint.com (Jon Jensen) Date: Tue Jul 11 19:53:46 2006 Subject: [ic] [timed-build] not working for logged in users In-Reply-To: <44B437ED.9050500@pajamian.dhs.org> References: <20060711032357.A7C381B6819@mail.perusion.com> <44B42112.5020402@pajamian.dhs.org> <44B437ED.9050500@pajamian.dhs.org> Message-ID: On Tue, 11 Jul 2006, Peter wrote: >>> [auto] implies login=1, but will still abort if no session ID cookie has >>> been sent. Use force=1 to ignore cookie status. >> >> Use force=1. Grant was looking for an explanation of why that's >> necessary. My answer was and remains, read the code and use force=1 and >> don't put user-specific data in timed builds. > > The problem with using force=1 is people without cookies will loose thier > session if they follow any internal links, login=1 seems to be intended to > remedy this by allowing logged in users to use the cache, but only if they > send a session cookie. Yes. If you consider timed builds a necessity, including for logged-in users (as I do for many sites) then you need to generate links on the fly so that they can contain session IDs if necessary. We do this on a few sites by having a wrapper around timed-build: [unescape-tags] [timed-build ...] Body ... ~area some/path]... [/timed-build] [/unescape-tags] so that ~area is converted to [area and the reparsed. It would be better to build something like this into [timed-build] directly but I haven't found a way I like well enough to put into the core. Jon -- Jon Jensen End Point Corporation http://www.endpoint.com/ From peter at pajamian.dhs.org Tue Jul 11 20:21:13 2006 From: peter at pajamian.dhs.org (Peter) Date: Tue Jul 11 20:21:23 2006 Subject: [ic] [timed-build] not working for logged in users In-Reply-To: References: <20060711032357.A7C381B6819@mail.perusion.com> <44B42112.5020402@pajamian.dhs.org> <44B437ED.9050500@pajamian.dhs.org> Message-ID: <44B44079.4000708@pajamian.dhs.org> On 07/11/2006 04:53 PM, Jon Jensen wrote: > On Tue, 11 Jul 2006, Peter wrote: > >>>> [auto] implies login=1, but will still abort if no session ID cookie >>>> has been sent. Use force=1 to ignore cookie status. >>> >>> >>> Use force=1. Grant was looking for an explanation of why that's >>> necessary. My answer was and remains, read the code and use force=1 >>> and don't put user-specific data in timed builds. >> >> >> The problem with using force=1 is people without cookies will loose >> thier session if they follow any internal links, login=1 seems to be >> intended to remedy this by allowing logged in users to use the cache, >> but only if they send a session cookie. > > > Yes. If you consider timed builds a necessity, including for logged-in > users (as I do for many sites) then you need to generate links on the > fly so that they can contain session IDs if necessary. We do this on a > few sites by having a wrapper around timed-build: > > [unescape-tags] > [timed-build ...] > Body ... ~area some/path]... > [/timed-build] > [/unescape-tags] > > so that ~area is converted to [area and the reparsed. > > It would be better to build something like this into [timed-build] > directly but I haven't found a way I like well enough to put into the core. This is unnecessary overhead for people who have a session cookie, though, overhead that [timed-build] is designed to minimise. It would be better to only do this for people who don't pass a session cookie. [timed-build] as it is currently is designed to abort (not use the cache) for people without a session cookie if login=1 is passed (or if it isn't passed, but we're discussing using login=1 or auto=1 instead of force=1). Since a very small number of users don't have cookies it is not a big deal (imo) to have the extra overhead of aborting [timed-build] for those users, also since this is the documented and coded functionality it's best (imo) to just leave it and fix the bugs in it rather than to try to add more functionality to make up for it. The bug in this case (I haven't fully tested it so I can't say for sure) is that $Vend::Cookie is not being set (or is being unset) for logged in users somewhere, so the test for $Vend::Cookie is failing and the [timed-build] is aborting when login=1 is passed. Peter From jon at endpoint.com Tue Jul 11 20:54:12 2006 From: jon at endpoint.com (Jon Jensen) Date: Tue Jul 11 20:54:31 2006 Subject: [ic] [timed-build] not working for logged in users In-Reply-To: <44B44079.4000708@pajamian.dhs.org> References: <20060711032357.A7C381B6819@mail.perusion.com> <44B42112.5020402@pajamian.dhs.org> <44B437ED.9050500@pajamian.dhs.org> <44B44079.4000708@pajamian.dhs.org> Message-ID: On Tue, 11 Jul 2006, Peter wrote: >> If you consider timed builds a necessity, including for logged-in users >> (as I do for many sites) then you need to generate links on the fly so >> that they can contain session IDs if necessary. We do this on a few >> sites by having a wrapper around timed-build: > > This is unnecessary overhead for people who have a session cookie, > though, overhead that [timed-build] is designed to minimise. It would > be better to only do this for people who don't pass a session cookie. > > [timed-build] as it is currently is designed to abort (not use the > cache) for people without a session cookie if login=1 is passed (or if > it isn't passed, but we're discussing using login=1 or auto=1 instead of > force=1). Since a very small number of users don't have cookies it is > not a big deal (imo) to have the extra overhead of aborting > [timed-build] for those users, also since this is the documented and > coded functionality it's best (imo) to just leave it and fix the bugs in > it rather than to try to add more functionality to make up for it. Your use case is not the same as mine, apparently. The cost to do even a single database query is vastly greater than the cost to interpolate some [area] tags. The cost to do a complex database query can be much, much higher, so saving that for even the relatively few logged-in users without cookies can be well worth the tiny cost. > The bug in this case (I haven't fully tested it so I can't say for sure) > is that $Vend::Cookie is not being set (or is being unset) for logged in > users somewhere, so the test for $Vend::Cookie is failing and the > [timed-build] is aborting when login=1 is passed. UserDB clears $Vend::Cookie at login time. I don't know why. Jon -- Jon Jensen End Point Corporation http://www.endpoint.com/ From peter at pajamian.dhs.org Tue Jul 11 21:15:25 2006 From: peter at pajamian.dhs.org (Peter) Date: Tue Jul 11 21:15:32 2006 Subject: [ic] [timed-build] not working for logged in users In-Reply-To: References: <20060711032357.A7C381B6819@mail.perusion.com> <44B42112.5020402@pajamian.dhs.org> <44B437ED.9050500@pajamian.dhs.org> <44B44079.4000708@pajamian.dhs.org> Message-ID: <44B44D2D.608@pajamian.dhs.org> On 07/11/2006 05:54 PM, Jon Jensen wrote: > On Tue, 11 Jul 2006, Peter wrote: > >>> If you consider timed builds a necessity, including for logged-in >>> users (as I do for many sites) then you need to generate links on the >>> fly so that they can contain session IDs if necessary. We do this on >>> a few sites by having a wrapper around timed-build: >> >> >> This is unnecessary overhead for people who have a session cookie, >> though, overhead that [timed-build] is designed to minimise. It would >> be better to only do this for people who don't pass a session cookie. >> >> [timed-build] as it is currently is designed to abort (not use the >> cache) for people without a session cookie if login=1 is passed (or if >> it isn't passed, but we're discussing using login=1 or auto=1 instead >> of force=1). Since a very small number of users don't have cookies it >> is not a big deal (imo) to have the extra overhead of aborting >> [timed-build] for those users, also since this is the documented and >> coded functionality it's best (imo) to just leave it and fix the bugs >> in it rather than to try to add more functionality to make up for it. > > Your use case is not the same as mine, apparently. The cost to do even a > single database query is vastly greater than the cost to interpolate > some [area] tags. The cost to do a complex database query can be much, > much higher, so saving that for even the relatively few logged-in users > without cookies can be well worth the tiny cost. Fair enough. So how about doing the best of both worlds? If there is a session cookie there's no reason to go through and interpolate the [area] tags. If there isn't then we can come up with some logic to do that transparently, behind the scenes in [timed-build]? >> The bug in this case (I haven't fully tested it so I can't say for >> sure) is that $Vend::Cookie is not being set (or is being unset) for >> logged in users somewhere, so the test for $Vend::Cookie is failing >> and the [timed-build] is aborting when login=1 is passed. > > UserDB clears $Vend::Cookie at login time. I don't know why. Then either that behavior should be fixed, or [timed-login] needs to be changed so that it checks something more reliable than $Vend::Cookie. The next step would probably be to determine if there is any other code which relies on this strange behavior of $Vend::Cookie. Peter From tim.g at edsd.com Tue Jul 11 22:51:45 2006 From: tim.g at edsd.com (Tim Good) Date: Tue Jul 11 22:50:40 2006 Subject: [ic] Large amount of text in form fields disabling submit button Message-ID: <200607120254.k6C2s5WO021797@email.edsd.com> I have a very strange problem: I have a form for submitting items to the products table. It works great with one exception. When I fill textarea fields with too much data the submit button becomes disabled. What I mean by disabled is it is clickable but nothing happens. If I lessen the amount of data (and it doesn't matter which field I lessen the data in) the form works great. Has anyone run into this problem before? Does anyone have any idea what may be going on here? Thanks Tim Good From tim.g at edsd.com Tue Jul 11 23:42:35 2006 From: tim.g at edsd.com (Tim Good) Date: Tue Jul 11 23:41:21 2006 Subject: [ic] Large amount of text in form fields disabling submit button In-Reply-To: <200607120254.k6C2s5WO021797@email.edsd.com> Message-ID: <200607120344.k6C3itB6022645@email.edsd.com> > -----Original Message----- > From: interchange-users-bounces@icdevgroup.org > [mailto:interchange-users-bounces@icdevgroup.org] On Behalf > Of Tim Good > Sent: Tuesday, July 11, 2006 8:52 PM > To: interchange-users@icdevgroup.org > Subject: [ic] Large amount of text in form fields disabling > submit button > > I have a very strange problem: > > I have a form for submitting items to the products table. > It works great with one exception. When I fill textarea > fields with too much data the submit button becomes disabled. > What I mean by disabled is it is clickable but nothing > happens. If I lessen the amount of data (and it doesn't > matter which field I lessen the data in) the form works great. I have tested further and it appears that if the total characters entered into the form are approximately 246 the form will not submit. If I remove one character it will submit. I only say approximately, because I may be off by a character or two. I am completely stumped here. I have never run into this before. If anyone has a clue I would really appreciate some feedback here. > > Has anyone run into this problem before? Does anyone have any > idea what may be going on here? > > > Thanks > Tim Good > > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > From tim.g at edsd.com Tue Jul 11 23:56:30 2006 From: tim.g at edsd.com (Tim Good) Date: Tue Jul 11 23:55:16 2006 Subject: [ic] Large amount of text in form fields disabling submit button In-Reply-To: <200607120344.k6C3itB6022645@email.edsd.com> Message-ID: <200607120358.k6C3wokX022859@email.edsd.com> > -----Original Message----- > From: interchange-users-bounces@icdevgroup.org > [mailto:interchange-users-bounces@icdevgroup.org] On Behalf > Of Tim Good > Sent: Tuesday, July 11, 2006 9:43 PM > To: interchange-users@icdevgroup.org > Subject: RE: [ic] Large amount of text in form fields > disabling submit button > > > -----Original Message----- > > From: interchange-users-bounces@icdevgroup.org > > [mailto:interchange-users-bounces@icdevgroup.org] On > Behalf > > Of Tim Good > > Sent: Tuesday, July 11, 2006 8:52 PM > > To: interchange-users@icdevgroup.org > > Subject: [ic] Large amount of text in form fields > disabling > > submit button > > > > I have a very strange problem: > > > > I have a form for submitting items to the products table. > > It works great with one exception. When I fill textarea fields with > > too much data the submit button becomes > disabled. > > What I mean by disabled is it is clickable but nothing > happens. If I > > lessen the amount of data (and it doesn't matter which > field I lessen > > the data in) the form works > great. > > I have tested further and it appears that if the total > characters entered into the form are approximately 246 the > form will not submit. > If I remove one character it will submit. I only say > approximately, because I may be off by a character or two. > > I am completely stumped here. I have never run into this before. > If anyone has a clue I would really appreciate some feedback here. > [form-session-id]

 

[include include/postitem/post_item] ********************this is the inner part of the form containing all the fields

 

 

> > > > Has anyone run into this problem before? Does anyone have > any > > idea what may be going on here? > > > > > > Thanks > > Tim Good > > > > _______________________________________________ > > interchange-users mailing list > > interchange-users@icdevgroup.org > > > http://www.icdevgroup.org/mailman/listinfo/interchange-users > > > > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > From peter at pajamian.dhs.org Wed Jul 12 01:00:55 2006 From: peter at pajamian.dhs.org (Peter) Date: Wed Jul 12 01:01:11 2006 Subject: [ic] Large amount of text in form fields disabling submit button In-Reply-To: <200607120254.k6C2s5WO021797@email.edsd.com> References: <200607120254.k6C2s5WO021797@email.edsd.com> Message-ID: <44B48207.5070408@pajamian.dhs.org> On 07/11/2006 07:51 PM, Tim Good wrote: > I have a very strange problem: > > I have a form for submitting items to the products table. > It works great with one exception. When I fill textarea > fields with too much data > the submit button becomes disabled. What I mean by disabled > is it is clickable but > nothing happens. If I lessen the amount of data (and it > doesn't matter which field > I lessen the data in) the form works great. > > Has anyone run into this problem before? Does anyone have > any idea what may be going > on here? Browser problem, try a different browser. Peter From tim.g at edsd.com Wed Jul 12 01:10:01 2006 From: tim.g at edsd.com (Tim Good) Date: Wed Jul 12 01:08:50 2006 Subject: [ic] Large amount of text in form fields disabling submit button In-Reply-To: <44B48207.5070408@pajamian.dhs.org> Message-ID: <200607120512.k6C5CKda024186@email.edsd.com> > -----Original Message----- > From: interchange-users-bounces@icdevgroup.org > [mailto:interchange-users-bounces@icdevgroup.org] On Behalf Of Peter > Sent: Tuesday, July 11, 2006 11:01 PM > To: interchange-users@icdevgroup.org > Subject: Re: [ic] Large amount of text in form fields > disabling submit button > > On 07/11/2006 07:51 PM, Tim Good wrote: > > I have a very strange problem: > > > > I have a form for submitting items to the products table. > > It works great with one exception. When I fill textarea fields with > > too much data the submit button becomes disabled. What I mean by > > disabled is it is clickable but nothing happens. If I lessen the > > amount of data (and it doesn't matter which field I lessen the data > > in) the form works great. > > > > Has anyone run into this problem before? Does anyone have any idea > > what may be going on here? > > Browser problem, try a different browser. Duh don't know why I didn't try that ... Thanks. Tried firefox and worked as expected. Is this something you have run into? If so did you find a work-a-round? > > Peter > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > From jeff at downtowndevelopmentplan.com Wed Jul 12 10:11:38 2006 From: jeff at downtowndevelopmentplan.com (jeff@downtowndevelopmentplan.com) Date: Wed Jul 12 10:13:00 2006 Subject: [ic] Large amount of text in form fields disabling submit button In-Reply-To: <200607120358.k6C3wokX022859@email.edsd.com> References: <200607120344.k6C3itB6022645@email.edsd.com> <200607120358.k6C3wokX022859@email.edsd.com> Message-ID: <20060712141138.GA10067@host4.cmainteractive.com> On Tue, Jul 11, 2006 at 09:56:30PM -0600, Tim Good wrote: >
name="postitem" enctype="multipart/form-data"> A multipart GET seems sketchy, can you use a POST instead? Jeff From tim.g at edsd.com Wed Jul 12 10:22:47 2006 From: tim.g at edsd.com (Tim Good) Date: Wed Jul 12 10:23:16 2006 Subject: [ic] Large amount of text in form fields disabling submit button In-Reply-To: <20060712141138.GA10067@host4.cmainteractive.com> Message-ID: <200607121426.k6CEQdmm002870@email.edsd.com> > -----Original Message----- > From: interchange-users-bounces@icdevgroup.org > [mailto:interchange-users-bounces@icdevgroup.org] On Behalf > Of jeff@downtowndevelopmentplan.com > Sent: Wednesday, July 12, 2006 8:12 AM > To: interchange-users@icdevgroup.org > Subject: Re: [ic] Large amount of text in form fields > disabling submit button > > On Tue, Jul 11, 2006 at 09:56:30PM -0600, Tim Good wrote: > > > > name="postitem" enctype="multipart/form-data"> > > A multipart GET seems sketchy, can you use a POST instead? Ya after hours of pulling my hair out found post on google about "GET" Not accepting large amounts of text. Was using "GET" to check cgi tags But apparently "POST" works with cgi tag as well. Hurray! > > > Jeff > > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > From kevin at cursor.biz Wed Jul 12 12:31:07 2006 From: kevin at cursor.biz (Kevin Walsh) Date: Wed Jul 12 12:31:20 2006 Subject: [ic] Need a contact number In-Reply-To: <44B42509.1080008@pajamian.dhs.org> References: <1152642427.44b3ed7b37a95@mail.sudjam.com> <200607112142.18385.kevin@cursor.biz> <44B42509.1080008@pajamian.dhs.org> Message-ID: <200607121731.08240.kevin@cursor.biz> Peter wrote: > On 07/11/2006 01:42 PM, Kevin Walsh wrote: > > What is a "lower 48", by the way? > > > AKA the Continental United States, or all states except Alaska and > Hawaii (48 out of 50 states). > I thought of that after I posted the followup. :-) Well, actually, as Hawaii is the southern-most state, and Alaska is the northern-most state, the term should probably be "middle 48" instead of "lower 48". Perhaps "mainland USA" would be even better, as it would exclude the various US colonies. -- _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/ From jeff at endpoint.com Wed Jul 12 12:43:58 2006 From: jeff at endpoint.com (Jeff Boes) Date: Wed Jul 12 12:44:17 2006 Subject: [ic] Need a contact number In-Reply-To: <200607121731.08240.kevin@cursor.biz> References: <1152642427.44b3ed7b37a95@mail.sudjam.com> <200607112142.18385.kevin@cursor.biz> <44B42509.1080008@pajamian.dhs.org> <200607121731.08240.kevin@cursor.biz> Message-ID: <44B526CE.5060401@endpoint.com> Kevin Walsh wrote: > Well, actually, as Hawaii is the southern-most state, and Alaska is > the northern-most state, the term should probably be "middle 48" instead > of "lower 48". Perhaps "mainland USA" would be even better, as it would > exclude the various US colonies. > > Check out this: http://en.wikipedia.org/wiki/Lower_48 "The term *"the lower 48 (states)"* arose before Hawaii became a state, and is no longer completely accurate ..." It came about when Alaska was the 49th and most recently admitted state. -- Jeffery Boes <>< jeff@endpoint.com From ir.gath at gmail.com Wed Jul 12 13:37:01 2006 From: ir.gath at gmail.com (Aaron Berg) Date: Wed Jul 12 13:37:15 2006 Subject: [ic] taxes for new york and ITL in tax tables Message-ID: Hi, I'm wondering if it is possible to use ITL in the tax tables in place of the tax value. So far I haven't been able to make it work, either because I'm doing it wrong or it's not possible. I'm hoping that that taxes work a bit like shipping where you can use a tag to return the correct value. For those who don't know, New York taxes are a bit strange. They are based on counties and reporting areas, so every county has it's own tax rate. Some counties have cities within them that have their own tax rate set. What I would like to have happen is the standard tax lookup (multi) and when it tries to read the tax value for New York it gets a usertag which when executed returns the correct value for that county/city. Can it work this way or am I on totally the wrong track? From DDavenport at newagedigital.com Wed Jul 12 13:38:18 2006 From: DDavenport at newagedigital.com (Daniel Davenport) Date: Wed Jul 12 13:39:49 2006 Subject: [ic] Need a contact number Message-ID: <6646EB737DB9164B9A6992E17A47DC7413C35B@mssbs01.NewAgeDigital.local> > -----Original Message----- > From: interchange-users-bounces@icdevgroup.org > [mailto:interchange-users-bounces@icdevgroup.org] On Behalf > Of Kevin Walsh > Sent: 2006 July 11 -- Tuesday 4:42 PM > To: interchange-users@icdevgroup.org > Subject: Re: [ic] Need a contact number > > What is a "lower 48", by the way? "Lower 48" means the 48 US states that share borders with each other, also known as the "continental US". Alaska and Hawaii are excluded by definition. /daniel From ir.gath at gmail.com Wed Jul 12 17:00:35 2006 From: ir.gath at gmail.com (Aaron Berg) Date: Wed Jul 12 17:00:44 2006 Subject: [ic] Re: taxes for new york and ITL in tax tables In-Reply-To: References: Message-ID: > I'm wondering if it is possible to use ITL in the tax tables in place > of the tax value. So far I haven't been able to make it work, either > because I'm doing it wrong or it's not possible. [snip] > Can it work this way or am I on totally the wrong track? > I found a solution using SalesTaxFunction. I put my usertag into SalesTaxFunction to do the work of pulling the correct tax amount. The documentation on SalesTaxFunction doesn't make it clear, but you must set SalesTax to a list of columns for this to work. If you have "SalesTax multi" SalesTaxFunction will not be used. From emailgrant at gmail.com Wed Jul 12 19:34:12 2006 From: emailgrant at gmail.com (Grant) Date: Wed Jul 12 19:34:21 2006 Subject: [ic] Disable flypage? Message-ID: <49bf44f10607121634h7a3d057es22cb23a131a503f8@mail.gmail.com> Is there any way to disable the functionality that sends a page request with the same name as an SKU to the flypage? I'd like to disable this system-wide. - Grant From emailgrant at gmail.com Wed Jul 12 19:36:06 2006 From: emailgrant at gmail.com (Grant) Date: Wed Jul 12 19:36:12 2006 Subject: [ic] Re: Disable flypage? In-Reply-To: <49bf44f10607121634h7a3d057es22cb23a131a503f8@mail.gmail.com> References: <49bf44f10607121634h7a3d057es22cb23a131a503f8@mail.gmail.com> Message-ID: <49bf44f10607121636n71c4458dr3a5817637134190b@mail.gmail.com> > Is there any way to disable the functionality that sends a page > request with the same name as an SKU to the flypage? I'd like to > disable this system-wide. Actually, I guess deleting flypage.html effectively disables this. - Grant From ncook at petblvd.com Thu Jul 13 12:00:16 2006 From: ncook at petblvd.com (Nicholas Cook) Date: Thu Jul 13 12:00:49 2006 Subject: [ic] Bug that causes email to go to the wrong customer Message-ID: <44B66E10.6040308@petblvd.com> While I have not tracked down where the bug is yet, I thought it would be beneficial to share that there appears to be a bug with email shipment confirmations. It appears that when the settlement on a captured charge fails, an email of another persons order gets sent out to the email address of the order you just tried to settle. This appears to happen with both 5.3.1 and 5.4 on Centos with unthreaded perl 5.8.7, and using the authorize.net module. If I manage to track down where this is happening, I'll let everybody know. Thank you, Nicholas Cook From emailgrant at gmail.com Thu Jul 13 15:10:32 2006 From: emailgrant at gmail.com (Grant) Date: Thu Jul 13 15:10:48 2006 Subject: [ic] Removing blank lines from source Message-ID: <49bf44f10607131210l3be5c046r56f4a7eed55ffb4c@mail.gmail.com> Has anyone come up with a solution for removing the blank lines left in the source code after the IC tags are parsed? - Grant From nick at geton.com Thu Jul 13 15:27:26 2006 From: nick at geton.com (nick@geton.com) Date: Thu Jul 13 15:43:45 2006 Subject: [ic] Removing blank lines from source In-Reply-To: <49bf44f10607131210l3be5c046r56f4a7eed55ffb4c@mail.gmail.com> References: <49bf44f10607131210l3be5c046r56f4a7eed55ffb4c@mail.gmail.com> Message-ID: <44B69E9E.8050602@geton.com> You can put:"Pragma strip_white" into your catalog.cfg file that will remove some but not quite all. Nick Grant wrote: > Has anyone come up with a solution for removing the blank lines left > in the source code after the IC tags are parsed? > > - Grant > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > From emailgrant at gmail.com Thu Jul 13 15:54:19 2006 From: emailgrant at gmail.com (Grant) Date: Thu Jul 13 15:54:26 2006 Subject: [ic] Removing blank lines from source In-Reply-To: <44B69E9E.8050602@geton.com> References: <49bf44f10607131210l3be5c046r56f4a7eed55ffb4c@mail.gmail.com> <44B69E9E.8050602@geton.com> Message-ID: <49bf44f10607131254q205e3ecehc5848a2c33b9a5c9@mail.gmail.com> > You can put:"Pragma strip_white" into your catalog.cfg file that will > remove some but not quite all. > > Nick I've got that in my catalog.cfg now. It actually only strips white space from the tops of the pages. - Grant > Grant wrote: > > Has anyone come up with a solution for removing the blank lines left > > in the source code after the IC tags are parsed? > > > > - Grant From dan at endpoint.com Thu Jul 13 16:07:01 2006 From: dan at endpoint.com (Daniel Collis-Puro) Date: Thu Jul 13 16:04:33 2006 Subject: [ic] Removing blank lines from source In-Reply-To: <49bf44f10607131210l3be5c046r56f4a7eed55ffb4c@mail.gmail.com> References: <49bf44f10607131210l3be5c046r56f4a7eed55ffb4c@mail.gmail.com> Message-ID: <44B6A7E5.90705@endpoint.com> Grant wrote: > Has anyone come up with a solution for removing the blank lines left > in the source code after the IC tags are parsed? > Is your concern having prettier source code or saving bandwidth? If you're looking to save bandwidth, you should check out mod_deflate or mod_gzip. It's pretty impressive how much bandwidth you can save when these puppies are helping you out. http://www.whatsmyip.org/mod_gzip_test/ I just tested our homepage and we save 83% in bandwidth serving up HTML through mod_deflate. -DJCP -- -**---****-----******-------********---------********** Daniel Collis-Puro Software Engineer End Point Corp. dan@endpoint.com (office) 781-477-0885 (cell) 781-775-1338 **********---------********-------******-----****---**- From paul at gishnetwork.com Thu Jul 13 16:04:57 2006 From: paul at gishnetwork.com (Paul Jordan) Date: Thu Jul 13 16:05:47 2006 Subject: [ic] Removing blank lines from source In-Reply-To: <49bf44f10607131254q205e3ecehc5848a2c33b9a5c9@mail.gmail.com> Message-ID: <20060713200541.39AB91B6878@mail.perusion.com> interchange-users-bounces@icdevgroup.org wrote: >> You can put:"Pragma strip_white" into your catalog.cfg file that will >> remove some but not quite all. >> >> Nick > > I've got that in my catalog.cfg now. It actually only strips > white space from the tops of the pages. > > - Grant > >> Grant wrote: >>> Has anyone come up with a solution for removing the blank lines left >>> in the source code after the IC tags are parsed? >>> >>> - Grant Not sure if what you are doing is the bets way to do it, but if strip_white is doing that, then try instead doing Pragma no_white Paul Jordan From emailgrant at gmail.com Thu Jul 13 16:35:03 2006 From: emailgrant at gmail.com (Grant) Date: Thu Jul 13 16:35:09 2006 Subject: [ic] Removing blank lines from source In-Reply-To: <20060713200541.39AB91B6878@mail.perusion.com> References: <49bf44f10607131254q205e3ecehc5848a2c33b9a5c9@mail.gmail.com> <20060713200541.39AB91B6878@mail.perusion.com> Message-ID: <49bf44f10607131335t1b4c950ckdb8c25fa2a958e67@mail.gmail.com> > >>> Has anyone come up with a solution for removing the blank lines left > >>> in the source code after the IC tags are parsed? > >>> > >>> - Grant > > > Not sure if what you are doing is the bets way to do it, but if strip_white > is doing that, then try instead doing > > Pragma no_white > > Paul Jordan Are you sure that's working in 5.4? It's not working 5.2, but I found the following referencing a filter (not a pragma) for no_white in 5.4. http://www.icdevgroup.org/docs/filters/no_white.html - Grant From emailgrant at gmail.com Thu Jul 13 16:38:26 2006 From: emailgrant at gmail.com (Grant) Date: Thu Jul 13 16:38:37 2006 Subject: [ic] Removing blank lines from source In-Reply-To: <44B6A7E5.90705@endpoint.com> References: <49bf44f10607131210l3be5c046r56f4a7eed55ffb4c@mail.gmail.com> <44B6A7E5.90705@endpoint.com> Message-ID: <49bf44f10607131338wd2bbdddrcdf0c491949f1b0f@mail.gmail.com> > > Has anyone come up with a solution for removing the blank lines left > > in the source code after the IC tags are parsed? > > > Is your concern having prettier source code or saving bandwidth? > > If you're looking to save bandwidth, you should check out mod_deflate or > mod_gzip. It's pretty impressive how much bandwidth you can save when > these puppies are helping you out. > > http://www.whatsmyip.org/mod_gzip_test/ > > I just tested our homepage and we save 83% in bandwidth serving up HTML > through mod_deflate. I'm trying to make the source code in my browser more readable but saving bandwidth is always good. I'll set up some of that compression when I have time. - Grant From kevin at cursor.biz Thu Jul 13 22:17:27 2006 From: kevin at cursor.biz (Kevin Walsh) Date: Thu Jul 13 22:17:52 2006 Subject: [ic] [timed-build] not working for logged in users In-Reply-To: <44B44D2D.608@pajamian.dhs.org> References: <20060711032357.A7C381B6819@mail.perusion.com> <44B44D2D.608@pajamian.dhs.org> Message-ID: <200607140317.28307.kevin@cursor.biz> Peter wrote: > On 07/11/2006 05:54 PM, Jon Jensen wrote: > > On Tue, 11 Jul 2006, Peter wrote: > > > >>> If you consider timed builds a necessity, including for logged-in > >>> users (as I do for many sites) then you need to generate links on the > >>> fly so that they can contain session IDs if necessary. We do this on > >>> a few sites by having a wrapper around timed-build: > >> > >> > >> This is unnecessary overhead for people who have a session cookie, > >> though, overhead that [timed-build] is designed to minimise. It would > >> be better to only do this for people who don't pass a session cookie. > >> > >> [timed-build] as it is currently is designed to abort (not use the > >> cache) for people without a session cookie if login=1 is passed (or if > >> it isn't passed, but we're discussing using login=1 or auto=1 instead > >> of force=1). Since a very small number of users don't have cookies it > >> is not a big deal (imo) to have the extra overhead of aborting > >> [timed-build] for those users, also since this is the documented and > >> coded functionality it's best (imo) to just leave it and fix the bugs > >> in it rather than to try to add more functionality to make up for it. > > > > Your use case is not the same as mine, apparently. The cost to do even a > > single database query is vastly greater than the cost to interpolate > > some [area] tags. The cost to do a complex database query can be much, > > much higher, so saving that for even the relatively few logged-in users > > without cookies can be well worth the tiny cost. > > Fair enough. So how about doing the best of both worlds? If there is a > session cookie there's no reason to go through and interpolate the > [area] tags. If there isn't then we can come up with some logic to do > that transparently, behind the scenes in [timed-build]? > > >> The bug in this case (I haven't fully tested it so I can't say for > >> sure) is that $Vend::Cookie is not being set (or is being unset) for > >> logged in users somewhere, so the test for $Vend::Cookie is failing > >> and the [timed-build] is aborting when login=1 is passed. > > > > UserDB clears $Vend::Cookie at login time. I don't know why. > > Then either that behavior should be fixed, or [timed-login] needs to be > changed so that it checks something more reliable than $Vend::Cookie. > > The next step would probably be to determine if there is any other code > which relies on this strange behavior of $Vend::Cookie. > The following patch works for me. You can try it, but you should be aware that it could possibly cause unintended side-effects. I have been running with the patch in since 21 March 2006 and haven't found any yet. ---------------------------------------------------------------------- --- Dispatch.pm 27 Jun 2006 14:24:42 -0000 1.69 +++ Dispatch.pm 14 Jul 2006 01:45:48 -0000 @@ -1394,8 +1394,6 @@ $Vend::Session->{'user'} = $CGI::user; - undef $Vend::Cookie if $Vend::Session->{logged_in}; - $CGI::pragma = 'no-cache' if delete $::Scratch->{mv_no_cache}; #show_times("end session get") if $Global::ShowTimes; ---------------------------------------------------------------------- The above patch appears to clear a problem in the following from Vend::Interpolate::timed_build(): ---------------------------------------------------------------------- return Vend::Interpolate::interpolate_html($_[0]) if $abort or ( ! $opt->{force} and ( ! $Vend::Cookie or ! $opt->{login} && $Vend::Session->{logged_in} ) ); ---------------------------------------------------------------------- As you can probably see, the $opt->{login} test is irrelevant if the flag is always cleared for logged-in users. Using the "force" parameter causes session IDs to be stored in the timed-build cache file. With the patch above patch, the following happens: * force=1 forces the cache to be built (if out of date) regardless of whether or not that will cause session IDs to be included. Only use that parameter if there are no internal links. * Users without a cookie-maintained session never get (or build) the cache. * Non-logged-in users (with cookies) get (or build) the cache. * Logged-in users (with cookies and with login=1) get (or build) the cache. * Logged-in users (with cookies and without login=1) never get (or build) the cache. That [timed-build] snippet has far too many negative tests for me to get my head around sometimes. :-) I recommend the above patch, but haven't committed it to the core because concerns, within the icdevgroup, were raised about possible unknown side-effects. As I said, it has been working for me. It would be helpful if others could try it, in a non-critical environment, and report any problems they find. -- _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/ From kevin at cursor.biz Thu Jul 13 22:26:45 2006 From: kevin at cursor.biz (Kevin Walsh) Date: Thu Jul 13 22:26:51 2006 Subject: [ic] Removing blank lines from source In-Reply-To: <49bf44f10607131338wd2bbdddrcdf0c491949f1b0f@mail.gmail.com> References: <49bf44f10607131210l3be5c046r56f4a7eed55ffb4c@mail.gmail.com> <44B6A7E5.90705@endpoint.com> <49bf44f10607131338wd2bbdddrcdf0c491949f1b0f@mail.gmail.com> Message-ID: <200607140326.46768.kevin@cursor.biz> Grant wrote: > I'm trying to make the source code in my browser more readable but > saving bandwidth is always good. I'll set up some of that compression > when I have time. > Interchange can't simply remove all whitespace from your code because your HTML might contain a