Re: [replaceChars] would be nice ...

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14018
interpreted = N
texte = >I've been trying to create a new admin function that allows me to >close the specific databases while leaving the others open. > >Apparently this is impossible, because the [name] tag inside the >[listdatabases] context uses colons (:) for the folder separators in >its path names. But the [closedatabase] tag only recognizes URL-style >path names which use slashes. > >What would be *really useful* here would be a new character >formatting context that replaces matching character strings with >something else. I think it would look something like this: > >[replaceChars >find=:&replaceWith=/]folder:subfolder:sub-subfolder:databasefile.db[/replacetex >t >] > >which would result in: > >folder/subfolder/sub-subfolder/databasefile.db > >Then the URL-style-only path format of the [closedatabase] tag would >no longer be a problem, and we would also have a great new text >formatting tool to use for 'other' purposes!...like allowing some persons to use HTML tags from forms and disallowing some. That's an idea I proposed in the beginning of this year, but I had an idea of extending the [CONVERTCHARS] so you could chooses a conversion table. But I think your soultion is better (if it allows us to replace strings, too).In the meantime you could do this with a simple applescript. Use ACME scriptwidgets so is it really fast, too. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Associated Messages, from the most recent to the oldest:

    
  1. Re: [replaceChars] would be nice ... (Grant Hulbert 1997)
  2. Re: [replaceChars] would be nice ... (Kenneth Grome 1997)
  3. Re: [replaceChars] would be nice ... (Christer Olsson 1997)
  4. [replaceChars] would be nice ... (Kenneth Grome 1997)
>I've been trying to create a new admin function that allows me to >close the specific databases while leaving the others open. > >Apparently this is impossible, because the [name] tag inside the >[listdatabases] context uses colons (:) for the folder separators in >its path names. But the [closedatabase] tag only recognizes URL-style >path names which use slashes. > >What would be *really useful* here would be a new character >formatting context that replaces matching character strings with >something else. I think it would look something like this: > >[replaceChars >find=:&replaceWith=/]folder:subfolder:sub-subfolder:databasefile.db[/replacetex >t >] > >which would result in: > >folder/subfolder/sub-subfolder/databasefile.db > >Then the URL-style-only path format of the [closedatabase] tag would >no longer be a problem, and we would also have a great new text >formatting tool to use for 'other' purposes!...like allowing some persons to use HTML tags from forms and disallowing some. That's an idea I proposed in the beginning of this year, but I had an idea of extending the [convertchars] so you could chooses a conversion table. But I think your soultion is better (if it allows us to replace strings, too).In the meantime you could do this with a simple applescript. Use ACME scriptwidgets so is it really fast, too. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Christer Olsson

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:

Funny Math (2000) How to delete all files in a folder? (2001) [OT] Deploying XRAID (2003) Text data with spaces in them... (1997) ShowNext (1997) [WebDNA] exclusivelock (2011) More on the email templates (1997) webCat craps httpd (2005) bug report -- leading < character (1998) WebCat Error Log problem (2.0.1, acgi, Mac) (1997) SET (1998) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) a * question (2003) RedHat Linux glibc version 2.1.2 or higher required (2000) Error: Error: expected [/APPLICATION] ??? (1998) Looking up two prices in database? (1997) multi-paragraph fields (1997) [WebDNA] My failed cPanel and WebDNA experience ... (2016) WebCat2: Items xx to xx shown, etc. (1997) [format xs] freeze (1997)