Re: Question on the sandbox
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 48214
interpreted = N
texte = Here is an excerpt from the tutorial on the ISP Sandbox feature that hasbeen prepared by Scott Anderson. --------------------------------------------------------------------------Here is a list of WebDNA Tags and Contexts whose behavior is altered whenused inside a WebDNA Sandbox... [appendfile][writefile][renamefile][deletefile][movefile][copyfile][fileinfo][listfiles][waitforfile][copyfolder][createfolder][deletefolder]--------------These contexts can only operate on files and or folders that exist within the Sandbox root folder, or the sandbox 'globals' folder when the '^' prefix is used.[orderfile][purchase][removelineitem][clearlineitem][setlineitems][setheader]-------------These operations can only operate on a cart or files that exists within the sandbox root, or the sandbox 'globals' folder when the '^' prefix is used.[flushdatabases]----------------Will only flush the databases that exists within the sandbox root or globals folder.[commitdatabase][listdatabases][closedatabase][listfields][search][lookup][replace][append][delete]---------------These contexts will only operate on database files that exist within the sandbox root or globals folder.[protect ]------------------Uses the 'local' sandbox 'users.db' file[date][time]------Both these tags use the 'format' preferences in the local sandbox prefs file[include]------------------Can only include a file that exists within the sandbox root or globalsfolder[sendmail]--------------Uses the local sandbox email settings. Resulting email files are written to the sandbox 'EmailFolder'.[object][dos][applescript]-------------These contexts require special handling, discussed later.[convertchars]----------------Uses the local sandbox 'StandardConversions.db' file. If a database isspecified, it must exist within the sandbox root or globals folder.[convertwords]Can only be used with a database that exists within the sandbox rootor globals folder.The '/' path prefix will be relative to the Sandbox root folder. The '^' global prefix will refer to the Sandbox globals folder and not themain WebDNA globals folder. The 'absolute path' specifier '*' can still be used with a sandbox, as longas it refers to a path that exists within the sandbox root or globalsfolder. WebDNA error messages will be retrieved from the sandbox ErrorMessages.db,and not the main WebDNA ErrorMessages.db WebDNA error logs and debug files will be created within the sandbox systemfolder, and not the main WebCatalogEngine folder. Shell, DOS, Applescript The [shell], [dos], and [applescript] contexts require special handling whenused within a WebDNA Sandbox. Shell, DOS, and Applescript code can no longer be explicitly defined withinthese contexts, when used in a WebDNA Sandbox. Instead, the desired codemust be submitted to the WebDNA admin for approval. If approved, the 'codesnippet' is added to the WebDNA Sandbox 'Scripts' database, with a unique IDcode. This ID code is then used by the Sandbox programmer. For example... A WebDNA sandbox programmer wants to execute the DOS command. dir c:\. Theprogrammer submits the code snippet, dir c:\, to the WebDNA admin. Theadmin approves the code, and inserts the code into the WebDNA SandboxScripts database with a unique ID of '111'. The WebDNA admin then returnsthe ID to the Sandbox programmer. The Sandbox programmer then uses the ID asfollows... [DOS scriptID=111][/DOS] The same applies when using the [shell] context. The [object] context is handled in a slightly different way. For this case,the submitted 'code snippet' is the 'parameter list' that would normally bepassed into the context. For example.... [OBJECT objname=SystemInfo.SysInfo.1&type=0[!][/!]&call=GetFreeDiskSpace[!][/!]¶m1=C:\¶m1type=str][/OBJECT]would become...[OBJECT SCRIPTID=123][/OBJECT]The WebDNA admin having recorded the text: objname=SystemInfo.SysInfo.1&type=0[!][/!]&call=GetFreeDiskSpace[!][/!]¶m1=C:\¶m1type=strinto the Sandbox scripts database with an ID of 123.-----Original Message-----From: Rob Marquardt [mailto:rob@toastdesign.com] Sent: Friday, February 28, 2003 1:38 PMTo: WebDNA TalkSubject: Question on the sandboxon 2/26/2003 1:45 pm, Phillip Bonesteele at pbonesteele@smithmicro.com sonoted...> Any folder can be designated as a Sandbox, which then gets its owninstance of> Prefs file, users.db, triggers.db, emailer preferences, global folder,email> folder, and admin templates. This essentially allows you to bind theentire> behavior of an instance of WebDNA to a particular folder, whereas in 4.Xand> before the WebDNA behavior was bound to the entire server.What limitations does the sandbox place upon the use of things like[writefile], [deletefile], [applescript], [shell] and the Global Pathprefix?Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------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 toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------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:
Here is an excerpt from the tutorial on the ISP Sandbox feature that hasbeen prepared by Scott Anderson. --------------------------------------------------------------------------Here is a list of WebDNA Tags and Contexts whose behavior is altered whenused inside a WebDNA Sandbox... [appendfile][writefile][renamefile][deletefile][movefile][copyfile][fileinfo][listfiles][waitforfile][copyfolder][createfolder][deletefolder]--------------These contexts can only operate on files and or folders that exist within the Sandbox root folder, or the sandbox 'globals' folder when the '^' prefix is used.[orderfile][purchase][removelineitem][clearlineitem][setlineitems][setheader]-------------These operations can only operate on a cart or files that exists within the sandbox root, or the sandbox 'globals' folder when the '^' prefix is used.[flushdatabases]----------------Will only flush the databases that exists within the sandbox root or globals folder.[commitdatabase][listdatabases][closedatabase][listfields][search][lookup][replace][append][delete]---------------These contexts will only operate on database files that exist within the sandbox root or globals folder.[protect ]------------------Uses the 'local' sandbox 'users.db' file[date][time]------Both these tags use the 'format' preferences in the local sandbox prefs file[include]------------------Can only include a file that exists within the sandbox root or globalsfolder[sendmail]--------------Uses the local sandbox email settings. Resulting email files are written to the sandbox 'EmailFolder'.[object][DOS][applescript]-------------These contexts require special handling, discussed later.[convertchars]----------------Uses the local sandbox 'StandardConversions.db' file. If a database isspecified, it must exist within the sandbox root or globals folder.[convertwords]Can only be used with a database that exists within the sandbox rootor globals folder.The '/' path prefix will be relative to the Sandbox root folder. The '^' global prefix will refer to the Sandbox globals folder and not themain WebDNA globals folder. The 'absolute path' specifier '*' can still be used with a sandbox, as longas it refers to a path that exists within the sandbox root or globalsfolder. WebDNA error messages will be retrieved from the sandbox ErrorMessages.db,and not the main WebDNA ErrorMessages.db WebDNA error logs and debug files will be created within the sandbox systemfolder, and not the main WebCatalogEngine folder. Shell, DOS, Applescript The [shell], [DOS], and [applescript] contexts require special handling whenused within a WebDNA Sandbox. Shell, DOS, and Applescript code can no longer be explicitly defined withinthese contexts, when used in a WebDNA Sandbox. Instead, the desired codemust be submitted to the WebDNA admin for approval. If approved, the 'codesnippet' is added to the WebDNA Sandbox 'Scripts' database, with a unique IDcode. This ID code is then used by the Sandbox programmer. For example... A WebDNA sandbox programmer wants to execute the DOS command. dir c:\. Theprogrammer submits the code snippet, dir c:\, to the WebDNA admin. Theadmin approves the code, and inserts the code into the WebDNA SandboxScripts database with a unique ID of '111'. The WebDNA admin then returnsthe ID to the Sandbox programmer. The Sandbox programmer then uses the ID asfollows... [DOS scriptID=111][/DOS] The same applies when using the [shell] context. The [object] context is handled in a slightly different way. For this case,the submitted 'code snippet' is the 'parameter list' that would normally bepassed into the context. For example.... [OBJECT objname=SystemInfo.SysInfo.1&type=0[!][/!]&call=GetFreeDiskSpace[!][/!]¶m1=C:\¶m1type=str][/OBJECT]would become...[OBJECT SCRIPTID=123][/OBJECT]The WebDNA admin having recorded the text: objname=SystemInfo.SysInfo.1&type=0[!][/!]&call=GetFreeDiskSpace[!][/!]¶m1=C:\¶m1type=strinto the Sandbox scripts database with an ID of 123.-----Original Message-----From: Rob Marquardt [mailto:rob@toastdesign.com] Sent: Friday, February 28, 2003 1:38 PMTo: WebDNA TalkSubject: Question on the sandboxon 2/26/2003 1:45 pm, Phillip Bonesteele at pbonesteele@smithmicro.com sonoted...> Any folder can be designated as a Sandbox, which then gets its owninstance of> Prefs file, users.db, triggers.db, emailer preferences, global folder,email> folder, and admin templates. This essentially allows you to bind theentire> behavior of an instance of WebDNA to a particular folder, whereas in 4.Xand> before the WebDNA behavior was bound to the entire server.What limitations does the sandbox place upon the use of things like[writefile], [deletefile], [applescript], [shell] and the Global Pathprefix?Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------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 toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------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/
Phillip Bonesteele
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:
mac hack (1997)
DD/MM/YY reseting (1999)
[include ...] behavior (1997)
Line Feed problems ... (2002)
Break out of a loop? (2000)
Append..... doesn't (2000)
problems with 2 tags shakur (1997)
Need help with emailer- 2 issues (1997)
Math variable size-dumb question (1999)
[Announce] Newest Commerce Site based on WebCatalog (1997)
Order not created error (never mind) (1997)
Re:Emailer and encryption (1997)
test for John (1999)
'does not contain' operator needed ... (1997)
customizing the color of user's pages (1997)
Full text search (1999)
webten vs. webstar (1998)
WebCat2 beta 11 - new prefs ... (1997)
users.db (1999)
[LOOKUP] (1997)