Re: Bug in WC 4.02 on RH Linux with Append

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 41600
interpreted = N
texte = Hi Dale,On Monday, July 15, 2002, at 10:18 PM, Dale LaFountain wrote:> Is the template saved with Mac linefeeds, by chance?I did check that :) I use BBEdit and since changing over to OS X I have the prefs set (and also manually checked) to set the line feeds to unix.> I'm not sure how webcat behaves if 999 records have unix line terminators > and you append a record with a mac line terminator... Maybe... rewrite the > whole file with mac linefeeds?That is what seems to be happening. I am not sure actually how the linefeeds of the template could affect this anyway as there are no line feeds between the beginning and ending of the [append] context.I can look at the database after running the code and the proper records are there (by downloading the file to my local machine). However, as mentioned in an earlier email, trying to do a cat or more of the file on the linux box results in the lines overwriting one another - only after using the [append].> Should be easy to test.I guess the only other way to 'test' this is to somehow save the file on a unix only machine (e.g. not Mac OS X) and then zip up the files to upload to the server and unzip.I didn't have this problem with other files when I moved from a Mac server to linux just a few months ago. Most of my existing templates had Mac line feeds and they worked just fine with [replace] contexts.I am very confused (and tired!). > -Dale > >> Here is the code that makes the database turn into mac line feeds. If >> someone can show me how this is wrong and somehow converting the >> linefeeds in the database I will rescind my post about [append] having a >> problem. >> >> Thanks >> >> --- begin --- >> [closedatabase db=/databases/terms_related.db] >> deleting forward links - termID = [termID]
>> [DELETE db=/databases/terms_related.db&eqfld_TermIDdata=[termID]] >> deleting back links - termID = [termID]
>> [DELETE db=/databases/terms_related.db&eqfld_relatedIDdata=[termID]] >> >> [formvariables] >> [showif [name]=link_to] >> [hideif [value]=[termID]] >> [append db=/databases/terms_related.db]fld_termID=[Value]&fld_relatedID= >> [termID][/append] >> [/hideif] >> [/showif] >> >> [showif [name]=add_link] >> [hideif [value]=[termID]] >> >> [append db=/databases/terms_related.db]fld_termID=[termID]&fld_relatedID= >> [value][/append] >> [/hideif] >> [/showif] >> >> >> [name] - [value]
>> [/formvariables] >> --- end --- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Bug in WC 4.02 on RH Linux with Append (dale's stuff 2002)
  2. Re: Bug in WC 4.02 on RH Linux with Append (Dale LaFountain 2002)
  3. Bug in WC 4.02 on RH Linux with Append (dale's stuff 2002)
Hi Dale,On Monday, July 15, 2002, at 10:18 PM, Dale LaFountain wrote:> Is the template saved with Mac linefeeds, by chance?I did check that :) I use BBEdit and since changing over to OS X I have the prefs set (and also manually checked) to set the line feeds to unix.> I'm not sure how webcat behaves if 999 records have unix line terminators > and you append a record with a mac line terminator... Maybe... rewrite the > whole file with mac linefeeds?That is what seems to be happening. I am not sure actually how the linefeeds of the template could affect this anyway as there are no line feeds between the beginning and ending of the [append] context.I can look at the database after running the code and the proper records are there (by downloading the file to my local machine). However, as mentioned in an earlier email, trying to do a cat or more of the file on the linux box results in the lines overwriting one another - only after using the [append].> Should be easy to test.I guess the only other way to 'test' this is to somehow save the file on a unix only machine (e.g. not Mac OS X) and then zip up the files to upload to the server and unzip.I didn't have this problem with other files when I moved from a Mac server to linux just a few months ago. Most of my existing templates had Mac line feeds and they worked just fine with [replace] contexts.I am very confused (and tired!). > -Dale > >> Here is the code that makes the database turn into mac line feeds. If >> someone can show me how this is wrong and somehow converting the >> linefeeds in the database I will rescind my post about [append] having a >> problem. >> >> Thanks >> >> --- begin --- >> [closedatabase db=/databases/terms_related.db] >> deleting forward links - termID = [termID]
>> [DELETE db=/databases/terms_related.db&eqfld_TermIDdata=[termID]] >> deleting back links - termID = [termID]
>> [DELETE db=/databases/terms_related.db&eqfld_relatedIDdata=[termID]] >> >> [formvariables] >> [showif [name]=link_to] >> [hideif [value]=[termID]] >> [append db=/databases/terms_related.db]fld_termID=[Value]&fld_relatedID= >> [termID][/append] >> [/hideif] >> [/showif] >> >> [showif [name]=add_link] >> [hideif [value]=[termID]] >> >> [append db=/databases/terms_related.db]fld_termID=[termID]&fld_relatedID= >> [value][/append] >> [/hideif] >> [/showif] >> >> >> [name] - [value]
>> [/formvariables] >> --- end --- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ dale's stuff

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Separate SSL Server (1997) [cart]'s ever get recycled? (2000) taxrate (1999) Webcat 2.0.1b1 bug with IE 3.01/4.0p1 (1997) Nebulous slow-down problem (2000) Hiding usernames and passwords in URL (1998) [GROUPS] followup (1997) Help!!!! (1997) automatic reload of frameset (1997) Online Docs? (1997) [Sum] function? (1997) Country & Ship-to address & other fields ? (1997) (ot) sitemap generator (1998) WebCatalog and WebMerchant reviewed by InfoWorld (1997) New public beta available (1997) WebCat 3.04-3.07 plug-in dying on server.... (2000) Searchable list archive (1997) MATH TIME (1997) Banners (1997) Another Large Database Questions (1997)