Re: SMSI (Scott) clues?? Bug fixes for next WebDNA release

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62697
interpreted = N
texte = Scott Anderson wrote: > #4: The pre/post-parse scripts can be a powerful tool, and one must be very > careful when editing those files. I believe the documentation (or the > WebDNA lab tutorial) warns about the possibility of crippling all WebDNA > pages, if bad code is placed in those scripts. But if you have found that > valid code, used in either script file, causes problems, please send me a > copy of that code. Yes, I know of the possibilities for damadge with bad code. This wasn't bad code as far as I know. I simply copied/pasted the same code to an include file and the problems went away... Here is the code that I moved to an include file: -----START [!] Euca Standard Function Defs, Rev.1 [/!] [!] finds the domain name only of a caller [/!] [function name=CALL_DOMAIN] [ListMIMEHeaders name=host&exact=F][url][value][/url][/ListMIMEHeaders] [/function] [!] lists characters backwards when given an "instring" [/!] [function name=backwards] [text]length=[countchars][instring][/countchars][/text] [loop start=[length]&end=1&advance=-1][getchars start=[index]&end=[index]][instring][/getchars][/loop] [/function] [!] Call with: "DT_Sec_Stamp" This creates the date and time since epoch in seconds [/!] [function name=DT_Sec_Stamp] [math]((([math]{[date %m/%d/%Y]}[/math])-1)*86400)+([math]{[time]}[/math])[/math] [/function] [!] *BACK* call with: "DateBack stamp=" This formats back the "DT_Sec_Stamp" to a human readable Date[/!] [function name=DateBack] [format days_to_date %m/%d/%Y][format .6d][math]([stamp]/86400)+1[/math][/format][/format] [/function] [!] *BACK* call with: "TimeBack stamp=" This formats back the "DT_Sec_Stamp" to a human readable Time[/!] [function name=TimeBack] [format seconds_to_time][math][stamp]-(86400*[format .6d][math]([stamp]/86400)[/math][/format])[/math][/format] [/function] -----END You may be able to cause some issues by taking this code and rewriting the preparse script so that it contains it. Its been a long time since I corrected the issue and I can't recall exactly what the effects were... I think it was issuing an error [/functionspace] or something.. not on every "page" in the sandbox however.. just some.. But like I said, its been a long time. If you still can't find anything, I will recreate the scenario at the wee hours for you on the live server and report the error more exactly. Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Euca Design Center <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke Euca Design Center 1871 HWY MM Fitchburg, WI 53575 PH:> 1.608.835.2476 Web:> http://www.egg.bz http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: SMSI (Scott) clues?? Bug fixes for next WebDNA release ( Mark Derrick 2007)
  2. Re: SMSI (Scott) clues?? Bug fixes for next WebDNA release ( Donovan Brooke 2005)
  3. Re: SMSI (Scott) clues?? Bug fixes for next WebDNA release ( Donovan Brooke 2005)
  4. Re: SMSI (Scott) clues?? Bug fixes for next WebDNA release ( "Scott Anderson" 2005)
  5. Re: SMSI (Scott) clues?? Bug fixes for next WebDNA release ( "Scott Anderson" 2005)
  6. Re: SMSI (Scott) clues?? Bug fixes for next WebDNA release ( devaulw@onebox.com 2005)
  7. Re: SMSI (Scott) clues?? Bug fixes for next WebDNA release ( Donovan Brooke 2005)
  8. Re: SMSI (Scott) clues?? Bug fixes for next WebDNA release ( "Scott Anderson" 2005)
  9. Re: SMSI (Scott) clues?? Bug fixes for next WebDNA release ( William DeVaul 2005)
  10. Re: SMSI (Scott) clues?? Bug fixes for next WebDNA release ( "Scott Anderson" 2005)
Scott Anderson wrote: > #4: The pre/post-parse scripts can be a powerful tool, and one must be very > careful when editing those files. I believe the documentation (or the > WebDNA lab tutorial) warns about the possibility of crippling all WebDNA > pages, if bad code is placed in those scripts. But if you have found that > valid code, used in either script file, causes problems, please send me a > copy of that code. Yes, I know of the possibilities for damadge with bad code. This wasn't bad code as far as I know. I simply copied/pasted the same code to an include file and the problems went away... Here is the code that I moved to an include file: -----START [!] Euca Standard Function Defs, Rev.1 [/!] [!] finds the domain name only of a caller [/!] [function name=CALL_DOMAIN] [ListMIMEHeaders name=host&exact=F][url][value][/url][/ListMIMEHeaders] [/function] [!] lists characters backwards when given an "instring" [/!] [function name=backwards] [text]length=[countchars][instring][/countchars][/text] [loop start=[length]&end=1&advance=-1][getchars start=[index]&end=[index]][instring][/getchars][/loop] [/function] [!] Call with: "DT_Sec_Stamp" This creates the date and time since epoch in seconds [/!] [function name=DT_Sec_Stamp] [math]((([math]{[date %m/%d/%Y]}[/math])-1)*86400)+([math]{[time]}[/math])[/math] [/function] [!] *BACK* call with: "DateBack stamp=" This formats back the "DT_Sec_Stamp" to a human readable Date[/!] [function name=DateBack] [format days_to_date %m/%d/%Y][format .6d][math]([stamp]/86400)+1[/math][/format][/format] [/function] [!] *BACK* call with: "TimeBack stamp=" This formats back the "DT_Sec_Stamp" to a human readable Time[/!] [function name=TimeBack] [format seconds_to_time][math][stamp]-(86400*[format .6d][math]([stamp]/86400)[/math][/format])[/math][/format] [/function] -----END You may be able to cause some issues by taking this code and rewriting the preparse script so that it contains it. Its been a long time since I corrected the issue and I can't recall exactly what the effects were... I think it was issuing an error [/functionspace] or something.. not on every "page" in the sandbox however.. just some.. But like I said, its been a long time. If you still can't find anything, I will recreate the scenario at the wee hours for you on the live server and report the error more exactly. Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Euca Design Center <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke Euca Design Center 1871 HWY MM Fitchburg, WI 53575 PH:> 1.608.835.2476 Web:> http://www.egg.bz http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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://webdna.smithmicro.com/ Donovan Brooke

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:

ShowNext truncating passed variable?? (1997) Sorting problem (2002) [LookUp] (1999) Send massmail (2000) RE: protect tag on NT (1997) Shared Webstar Directory (1998) [WriteFile] problems (1997) Country & Ship-to address & other fields ? (1997) Execute Applescript (1997) RE: [taxRate] [TaxTotal] ? (1997) about this server and links to who (1997) Secure Server (1997) [tcp connect] (1998) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Re[3]: 2nd WebCatalog2 Feature Request (1996) unable to launch acgi in WebCat (1997) DD/MM/YY reseting (1999) Do triggers work on Macs? (2000) Databases (2000) Setting up WebCatalog with Retail Pro data (1996)