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. Thiswasn't bad code as far as I know. I simply copied/pasted thesame 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]-----ENDYou may be able to cause some issues by taking this code and rewriting thepreparse script so that it contains it.Its been a long time since I corrected the issue and I can't recall exactly whatthe effects were... I think it was issuing an error [/functionspace] or something.. noton 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 andreport 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:
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. Thiswasn't bad code as far as I know. I simply copied/pasted thesame 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]-----ENDYou may be able to cause some issues by taking this code and rewriting thepreparse script so that it contains it.Its been a long time since I corrected the issue and I can't recall exactly whatthe effects were... I think it was issuing an error [/functionspace] or something.. noton 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 andreport 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:
WebMerchant when CC network is down (1998)
Search/sort in URL Was: GuestBook example (1997)
Mac -Shareware Listserver (1998)
Is [upload] avail. in 3.0.8 for NT? (2000)
off topic - dna snipets (1997)
Shipping charges depending on tax rate? (1997)
[/application] error? (1997)
Menu Madness (2001)
Multiple SSL Keys (1998)
Change Subtotal (2000)
WebCat2: Items xx to xx shown, etc. (1997)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
[search] in formulas.db (1997)
A better WebCat whois (was [OT] Domain Name Scam) (2000)
Setting up shop (1997)
Re:WebDNA Writer Needed (1997)
info (1997)
Calculating multiple shipping... (1997)
Typhoon Rev. and PCS store problems (1999)
[REPLACE] inside [FOUNDITEMS] (1998)