Re: [append] problems
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 51327
interpreted = N
texte = Hi Alain, thanks for that. But reserved for what? I'm basically doingexactly the same as when you do it through the sandbox admin! That's anappend...Regards,Tim-- Tim RobinsonIDFK Web Developmentstim@idfk.com.au114a/40 Yeo StreetNeutral Bay 2089AustraliaPhone +612 9908 2134Fax +612 9908 4837> From: Alain Russell
> Reply-To: (WebDNA Talk)> Date: Wed, 25 Jun 2003 17:59:36 +1200> To: (WebDNA Talk)> Subject: Re: [append] problems> > 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-users> Close temp-users> Movefile 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/-------------------------------------------------------------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:
Hi Alain, thanks for that. But reserved for what? I'm basically doingexactly the same as when you do it through the sandbox admin! That's anappend...Regards,Tim-- Tim RobinsonIDFK Web Developmentstim@idfk.com.au114a/40 Yeo StreetNeutral Bay 2089AustraliaPhone +612 9908 2134Fax +612 9908 4837> From: Alain Russell > Reply-To: (WebDNA Talk)> Date: Wed, 25 Jun 2003 17:59:36 +1200> To: (WebDNA Talk)> Subject: Re: [append] problems> > 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-users> Close temp-users> Movefile 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/-------------------------------------------------------------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/
Tim Robinson
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:
Absolute path (2003)
MacAuthorize order data fields WAS:How To question... (1997)
Practice runs ? (1997)
How to show via drop down menu? (2000)
[WebDNA] mac osx permissions problem (2010)
Re[2]: Weird [blank] interpretation (1999)
SmithMicro FTP problems (2002)
using webcat with web* & web*SSL (1998)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
WebCatalog for Postcards ? (1997)
Date Formats (1997)
Projects & Contractors (1997)
docs for WebCatalog2 (1997)
Some Advise needed (1997)
BUG in [showif] using ^ (contains) (1997)
WebCatalog-NT?'s (1996)
can include param variables be valid [math] players? (2000)
WebCatalog can't find database (1997)
WebCatalog 3.0 (1998)
[WebDNA] Emailer file size limits? (2020)