Re: [append] problems
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 51326
interpreted = N
texte = Tim .. You will not be able to use users.db as it is reserved ..Write it to a temp database and then do a move ..Append to temp-usersClose temp-usersMovefile to the new sandbox directory ..Alain> Hi everyone,> > I'm trying to create an interface that will automatically create a new> Sandbox and then add a new default user to the Sandbox's Users.db> > Here's what I have:> > [!]** This names the sandbox and is working **[/!]> [append db=^../WDNA_Sandbox.db][!]> [/!]id=[short_name]&[!]> [/!]root=[URL]D:\Inetpub\wwwroot\[_newROOT][/URL]&[!]> [/!]state=Active&[!]> [/!]create_date=[time format=%H:%M], [date format=%d/%m/%Y]&[!]> [/!]mod_date=[time format=%H:%M], [date format=%d/%m/%Y]&[!]> [/!]create_user=[username]&[!]> [/!]mod_user=[username]&[!]> [/!]emailer=1&[!]> [/!]triggers=1[/append]> > [!]** This creates the sandbox folder and is working **[/!]> [COPYFOLDER from=^../SandBoxes/MASTER_SANDBOX&to=^../SandBoxes/[short_name]]> > [!]** This SHOULD write to the Sandbox users.db **[/!]> [append ^../Sandboxes/[short_name]/Users.db][!]> [/!]user=[uppercase][_USERID][/uppercase]&[!]> [/!]pass=[url][encrypt][uppercase][_USERPW][/uppercase][/encrypt][/url]&[!]> [/!]groups=[uppercase]SBADMIN[/uppercase]&[!]> [/!][/append]> > The last [append] is not working... it is writing CORRECTLY, but is updating> the MAIN users.db, not the specified sandbox users.db> > The path is right (as far as I can tell... but it's just choosing to write> to the wrong db.> > Any words of wisdom out there (flippant words welcome too, if they work).> > Regards,> Tim-------------------------------------------------------------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:
Tim .. You will not be able to use users.db as it is reserved ..Write it to a temp database and then do a move ..Append to temp-usersClose temp-usersMovefile to the new sandbox directory ..Alain> Hi everyone,> > I'm trying to create an interface that will automatically create a new> Sandbox and then add a new default user to the Sandbox's Users.db> > Here's what I have:> > [!]** This names the sandbox and is working **[/!]> [append db=^../WDNA_Sandbox.db][!]> [/!]id=[short_name]&[!]> [/!]root=[url]D:\Inetpub\wwwroot\[_newROOT][/URL]&[!]> [/!]state=Active&[!]> [/!]create_date=[time format=%H:%M], [date format=%d/%m/%Y]&[!]> [/!]mod_date=[time format=%H:%M], [date format=%d/%m/%Y]&[!]> [/!]create_user=[username]&[!]> [/!]mod_user=[username]&[!]> [/!]emailer=1&[!]> [/!]triggers=1[/append]> > [!]** This creates the sandbox folder and is working **[/!]> [COPYFOLDER from=^../SandBoxes/MASTER_SANDBOX&to=^../SandBoxes/[short_name]]> > [!]** This SHOULD write to the Sandbox users.db **[/!]> [append ^../Sandboxes/[short_name]/Users.db][!]> [/!]user=[uppercase][_USERID][/uppercase]&[!]> [/!]pass=[url][encrypt][uppercase][_USERPW][/uppercase][/encrypt][/url]&[!]> [/!]groups=[uppercase]SBADMIN[/uppercase]&[!]> [/!][/append]> > The last [append] is not working... it is writing CORRECTLY, but is updating> the MAIN users.db, not the specified sandbox users.db> > The path is right (as far as I can tell... but it's just choosing to write> to the wrong db.> > Any words of wisdom out there (flippant words welcome too, if they work).> > Regards,> Tim-------------------------------------------------------------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/
Alain Russell
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:
Uh...can someone help me out with the b10? (1997)
2nd WebCatalog2 Feature Request (1996)
won't serve .tpl -index.tpl gone, made test.tpl (2000)
Use of & in text areas.... (1998)
[format xs] freeze (1997)
Max Record length (1997)
Emailer (WebCat2) (1997)
More on ShippingCost help needed (1998)
Part Html part WebDNA (1997)
Adding Fields To Db from DB Helper (1999)
with Link i need to (1997)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
How to unsubscribe (2000)
Multiple 'Users.db' files not possible (1997)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)
New Site Announcement (1998)
Formating found categories (1997)
searching results (1999)
createfolder permissions (2003)
NT Manual (1997)