RE: [Zope] Search and replace
At 05:58 20.11.2000, Lee Hunter <lee.hunter@hum.com> wrote:
Isn't replacing text one of the most fundamental tasks when creating and maintaining a web site or any other set of documents, for that matter?
No, as far as I am concerned. Since I am using Zope (and trying to learn Java), the object-oriented approach is great for not having to search/replace anymore. I really do not know any situation where s/r is still needed. The people who fill in content in our company have ZClass-Interfaces, and they only insert actual content. Another thought: If Zope would offer s/r, then a bunch of programmers would stick in their bad behaviour _not_ implementing <dtml-var>'s, because "it's easy and effortless to replace everything from 'Copyright 2000' to 'Copyright 2001'". But think of it: Maybe this string is correct somewhere and SHOULD stay the same. So s/r is at least inefficient, because you'd have to check every file whether Zope should replace or not. Just my 2c, Martin -- Sent through GMX FreeMail - http://www.gmx.net
Martin Winkler wrote:
the object-oriented approach is great for not having to search/replace anymore. I really do not know any situation where s/r is still needed. The people who fill in content in our company have ZClass-Interfaces, and they only insert actual content.
I understand the beauty of object oriented programming and that it also has some application for content and user interface elements. But what happens when the random, free form content that your users are inserting contains errors or has to be globally changed? Maybe the manufacturers of Spam send your company a lawyer's letter saying that use of the word 'Spam' on your website infringes on their trademark and your boss tells you to change every instance of 'Spam' to 'processed meat product' including all of your heavily trafficked Squishdot discussions, but not where Spam was used to refer to the Monty Python skit. What would you do in that situation? Would you have made the word 'Spam' a variable simply because it was used in more than one location? Regards Lee Hunter Hum Communications Ltd.
At 14:59 20.11.2000, Lee Hunter wrote:
Maybe the manufacturers of Spam send your company a lawyer's letter saying that use of the word 'Spam' on your website infringes on their trademark [...]
Now I got it. Well, nobody expected a lawyer's letter or the Spanish Inquisition... But then, the s/r is getting really complex, since you also wrote about possible Squishdot discussions with the "bad" word. Maybe this s/r feature could be implemented in ZCatalog, so it would be possible to search in each and every ZCatalog-aware thing that we have on our website (not just dtml-docs and methods). On the other hand situations like these should not occur too often, so I personally would prefer the XML-Export, favourite-editor-semi-manual-replace and XML-Import again. I just wanted to express that this feature may be too hard to program for the (IMHO) rare cases that we really need it, but IF there are developers who'd like to implement such a nice s/r possibility, I'd be glad to install it - just in case lawyers, the Spanish Inquisition or Santa Claus are knocking at my door complaining that "spam", "witch" or "christmas" is trademarked by them :-) Martin
participants (2)
-
Lee Hunter -
Martin Winkler