Re: [Zope] Search and Replace tool
On Tue, 16 Dec 2008, Tres Seaver wrote: > Please don't reply to an existing thread to ask an unrelated question. Thought, I started a new thread, maybe I have something configured incorrectly. >> I've been doing some googling and haven't found anything exactly what I'm >> looking for... Therefore, some input would be welcome. >> >> I want to search the data.fs file and modify existing part of a URLS from >> >> /zope/zope.pcgi/intranet/ >> >> to >> >> :8080/intranet/ >> >> >> Such that If I have a URL like >> >> test.domain.com/zope/zope.pcgi/intranet/test.html >> >> will become >> >> test.domain.com:8080/intranet/test.html > > > You need to clarify: are the URLs you want updated embedded in content > objects, or are they dynamically generated? If the latter, you need to > google for 'zope virtual hosting'; if the former, you need to explain > the application better: there is no generic "search and replace" > operation independent of a given application. > I believe the latter, what I'm looking for is "hardcoding" by the users as I have no idea what they've done / put in their content. Canada's Fan S/F Convention http://tcon.ca Stephen Christian(schr...@vex.net) _ Member of: www.vex.com/~schrist(_'-/-_ _ |_ _ _ DWIN,Polaris 22 Canada's B5 Information Pages: ._)( (-'|_)| )(-'| ). <*> www.cdnb5.ca| President of TCON ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Search and Replace tool
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Please don't reply to an existing thread to ask an unrelated question. > I've been doing some googling and haven't found anything exactly what I'm > looking for... Therefore, some input would be welcome. > > I want to search the data.fs file and modify existing part of a URLS from > > /zope/zope.pcgi/intranet/ > > to > > :8080/intranet/ > > > Such that If I have a URL like > > test.domain.com/zope/zope.pcgi/intranet/test.html > > will become > > test.domain.com:8080/intranet/test.html You need to clarify: are the URLs you want updated embedded in content objects, or are they dynamically generated? If the latter, you need to google for 'zope virtual hosting'; if the former, you need to explain the application better: there is no generic "search and replace" operation independent of a given application. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJR/d3+gerLs4ltQ4RAhqJAJ9EqE3SWB6ffNzLVV7fSVHApE6QHACfaHyp U1g5P4KeN0l5t8iJySVwHWg= =Q+4S -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Search and Replace tool
I've been doing some googling and haven't found anything exactly what I'm looking for... Therefore, some input would be welcome. I want to search the data.fs file and modify existing part of a URLS from /zope/zope.pcgi/intranet/ to :8080/intranet/ Such that If I have a URL like test.domain.com/zope/zope.pcgi/intranet/test.html will become test.domain.com:8080/intranet/test.html Canada's Fan S/F Convention http://tcon.ca Stephen Christian(schr...@vex.net) _ Member of: www.vex.com/~schrist(_'-/-_ _ |_ _ _ DWIN,Polaris 22 Canada's B5 Information Pages: ._)( (-'|_)| )(-'| ). <*> www.cdnb5.ca| President of TCON ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace interface
"Stefan H. Holek" wrote: > > > May I humbly point you to the ReplaceSupport product I had cataloged > today... > > http://www.zope.org/Members/shh/ReplaceSupport/ Looks good :-) How about doing a proposal/project on dev.zope.org to see whether it could become an 'official' part of the Zope core? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace interface
On Wed, 6 Dec 2000, Chris Withers wrote: > There was a trhead recently abotu search and replace. It'd be great if > Zope had a search and replace interface, wouldn't it? ;-) May I humbly point you to the ReplaceSupport product I had cataloged today... http://www.zope.org/Members/shh/ReplaceSupport/ It is not the object-level replace interface you were asking for, Chris, but it still helps a lot round here when we do things TTW. ;) Regards, Stefan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace interface
Curtis Maloney wrote: > > I was just wondering if there were some convenient way I could search all of > my DTML[Documents|Methods] and ZSQL Methods, for comments, so I could review > them? > > Perhaps it's time I learned how to use ZCatalog? There was a trhead recently abotu search and replace. It'd be great if Zope had a search and replace interface, wouldn't it? ;-) (note: this doesn't mean that all objects would need to implement it, but it'd be mighty helpful if DTML Methods, Documents, etc did) cheers, Chris PS: This has got to be related to ZCAtalog somehow, I wonder how the two interact? I guess Catalog provides the search interface (ZSearch Interface, nto documented anywhere, pretty ropey IMHO) and object would have to implement a replace interface. It's be cool If there was a repalce library call too... give it a string and some replacement text and it does a search and replace on that in C so it's nice and fast...) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
tom smith wrote: > > on 21/11/00 3:05 am, Ender at [EMAIL PROTECTED] wrote: > > > Sadly this is a constraint of zope ide's being browser based (or based > > on current browsers). I would eagerly like to help out with a project > > that would like to see this changed. Building such an interface with > > gnome or kde would be possible, indeed there are already efforts > > underway to do both > > Surely something written in python and Tk would be better, so that the > editor could also be run on macs, PCs as well as Linux. tk on the macs is flaky, i'm not to sure of Tk's widget potential to do the needed html rendering quickly ( i haven't looked at grail in a while though). mozilla really seems like the only strong option for cross-platform dev of a zope ide. good news though, from http://www.python9.org/p9-applications.html At a minimum, these sessions will cover the following: The Komodo Integrated Development Environment, a Mozilla-based, cross platform IDE which is both extensible and network-oriented; The Python-XPCOM bindings, which allow the Python programmer to build Mozilla-based applications and script them; Python for .NET, a new port of Python to Microsoft's .NET platform; and Visual Python, a plugin for Visual Studio .NET, which allows the Visual Studio programmer to integrate Python into her development environment. kapil ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
Mario Olimpio de Menezes wrote: > > On Tue, 21 Nov 2000, Lee Hunter wrote: > > > On the other hand I actually *like* the Zope management interface - in fact, > > so far I've found it to be very easy to understand and a total pleasure to > > use. It just doesn't offer some things that I must have - features that > > would probably be hard to incorporate into a browser interface. > > > > what about a plug-in, written in {Java | TclTk | whatever_language}? > I don't have skills to do this but I think this could be done. > just an idea! sadly... cross-browser compatibility would be a pain, and performance would bite. kapil ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
on 21/11/00 3:05 am, Ender at [EMAIL PROTECTED] wrote: > Sadly this is a constraint of zope ide's being browser based (or based > on current browsers). I would eagerly like to help out with a project > that would like to see this changed. Building such an interface with > gnome or kde would be possible, indeed there are already efforts > underway to do both Surely something written in python and Tk would be better, so that the editor could also be run on macs, PCs as well as Linux. tom ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Search and replace
On Tue, 21 Nov 2000, Lee Hunter wrote: > On the other hand I actually *like* the Zope management interface - in fact, > so far I've found it to be very easy to understand and a total pleasure to > use. It just doesn't offer some things that I must have - features that > would probably be hard to incorporate into a browser interface. > what about a plug-in, written in {Java | TclTk | whatever_language}? I don't have skills to do this but I think this could be done. just an idea! []s Mario O.de Menezes"Many are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails" http://curiango.ipen.br/~mario Prov. 19.21 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Search and replace
Kapil wrote: > that would like to see this changed. Building such an interface with > gnome or kde would be possible, indeed there are already efforts > underway to do both. But to create a cross-platform solution really > needs... Mozilla. Sadly, the ZopeMoz projects appears to be dead, > hopefully developer interest can be generated in reviving it after > ActiveState releases the python bindings to XPCOM (which should be > soon). Wasn't there some talk of using Radio Userland (formerly Pike) as an interface to Zope? It's too bad that Userland has made the very odd decision to broaden RU into a music sharing gizmo - it really lost focus after that point. But at least it still offers my beloved search and replace and a few other basic editing tools. On the other hand I actually *like* the Zope management interface - in fact, so far I've found it to be very easy to understand and a total pleasure to use. It just doesn't offer some things that I must have - features that would probably be hard to incorporate into a browser interface. Regards Lee Hunter Hum Communications Ltd. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
Daniel Rusch wrote: > > I have been following this thread with mild amusement. Those of you who > don't think that there is any need for a search and replace are being, > at the least, disingenuous. Have you never needed to replace a dtml var > that is on a hundred or more pages with another one, but replace it only > on some of the pages??? > > The lack of a search and replace, a find that actually "finds" a string > on a page (instead of just the page) and other standard editor features > are the reasons why Zope is being phased out of this companies (15,000 > person worldwide company, the worlds largest web hosting and fiber optic > network) web tool set. > > Don't get me wrong, I think Zope is the greatest thing since sliced > bread. But, if Zope is to become anything other than a bastion for open > source zealots (myself included), a real editor is a necessity not a > nicety! Zope had the opportunity to sweep this company ( it could have > ended up on hundreds if not thousands of servers) but the lack of a > professional interface doomed it. > > DR Sadly this is a constraint of zope ide's being browser based (or based on current browsers). I would eagerly like to help out with a project that would like to see this changed. Building such an interface with gnome or kde would be possible, indeed there are already efforts underway to do both. But to create a cross-platform solution really needs... Mozilla. Sadly, the ZopeMoz projects appears to be dead, hopefully developer interest can be generated in reviving it after ActiveState releases the python bindings to XPCOM (which should be soon). kapil > > > Lee Hunter wrote: > > > > Martin Winkler wrote > > > 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 > > > > I had understood that Python and Zope excelled at string manipulation. > > That's why I am surprised that it would be difficult to scan a folder full > > of documents to find a word and replace it with another (with the option of > > ignoring anything in pointed brackets). I'm not a programmer so I probably > > don't appreciate the complexities of the task, however in this case it seems > > like the object-oriented database is a hindrance rather than a help. If it > > was just a batch of html files I could search and replace through them with > > just about any piece of software on my desktop. > > > > I wouldn't know whether this is the sort of tool that is generally useful, > > but in my work I use search and replace all the time (if only to fix my > > endless confusion over 'its' and 'it's') > > > > Cheers > > > > Lee Hunter > > Hum Communications Ltd. > > > > ___ > > Zope maillist - [EMAIL PROTECTED] > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
> ideally two external methods. one recurses through folders collect > objects of a particular meta_type > > the second external method calls the first to get a collection of > objects for a particular meta_type and performs string manipulations on > the raw() representation of the method. I think a better implementation would be to add a 'Replacable' interface, otherwise you have to assume too much about the internal representation of lots of different classes of object. --jfarr ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
Hi Robin, ZCVSMixin works with ZClasses. It's a little cumbersome at the moment due to the Container/Contained problem and others: http://dev.zope.org/Wikis/DevSite/Proposals/SynchronizationMechanismZCVSMixin But it does manage ZClass method and properties on the filesystem. You do need to keep your head screwed on right to use it successfully with ZClasses right now hopefully it will be more 'bullet proof' in the future. -steve > "Robin" == Robin Becker <[EMAIL PROTECTED]> writes: Robin> In article <[EMAIL PROTECTED]>, Daniel Robin> Rusch <[EMAIL PROTECTED]> writes >> I have been following this thread with mild amusement. Those of >> you who don't think that there is any need for a search and >> replace are being, at the least, disingenuous. Have you never >> needed to replace a dtml var that is on a hundred or more pages >> with another one, but replace it only on some of the pages??? >> >> The lack of a search and replace, a find that actually "finds" >> a string on a page (instead of just the page) and other >> standard editor features are the reasons why Zope is being >> phased out of this companies (15,000 person worldwide company, >> the worlds largest web hosting and fiber optic network) web >> tool set. Robin> ... I also would like to be able to search dtml-method Robin> code that I put under ZClasses in my products. I can now Robin> after a bit of messiness with certain 'reserved' names (eg Robin> filtered_meta_types) get out all of the code in my product Robin> using ftp, but getting modified versions back is a Robin> problem. A source export/import to filesystem would be Robin> useful and allow all of the traditional tools to be used at Robin> least. -- Robin Becker Robin> ___ Zope Robin> maillist - [EMAIL PROTECTED] Robin> http://lists.zope.org/mailman/listinfo/zope ** No cross Robin> posts or HTML encoding! ** (Related lists - Robin> http://lists.zope.org/mailman/listinfo/zope-announce Robin> http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
In article <[EMAIL PROTECTED]>, Daniel Rusch <[EMAIL PROTECTED]> writes >I have been following this thread with mild amusement. Those of you who >don't think that there is any need for a search and replace are being, >at the least, disingenuous. Have you never needed to replace a dtml var >that is on a hundred or more pages with another one, but replace it only >on some of the pages??? > >The lack of a search and replace, a find that actually "finds" a string >on a page (instead of just the page) and other standard editor features >are the reasons why Zope is being phased out of this companies (15,000 >person worldwide company, the worlds largest web hosting and fiber optic >network) web tool set. ... I also would like to be able to search dtml-method code that I put under ZClasses in my products. I can now after a bit of messiness with certain 'reserved' names (eg filtered_meta_types) get out all of the code in my product using ftp, but getting modified versions back is a problem. A source export/import to filesystem would be useful and allow all of the traditional tools to be used at least. -- Robin Becker ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
I have been following this thread with mild amusement. Those of you who don't think that there is any need for a search and replace are being, at the least, disingenuous. Have you never needed to replace a dtml var that is on a hundred or more pages with another one, but replace it only on some of the pages??? The lack of a search and replace, a find that actually "finds" a string on a page (instead of just the page) and other standard editor features are the reasons why Zope is being phased out of this companies (15,000 person worldwide company, the worlds largest web hosting and fiber optic network) web tool set. Don't get me wrong, I think Zope is the greatest thing since sliced bread. But, if Zope is to become anything other than a bastion for open source zealots (myself included), a real editor is a necessity not a nicety! Zope had the opportunity to sweep this company ( it could have ended up on hundreds if not thousands of servers) but the lack of a professional interface doomed it. DR Lee Hunter wrote: > > Martin Winkler wrote > > 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 > > I had understood that Python and Zope excelled at string manipulation. > That's why I am surprised that it would be difficult to scan a folder full > of documents to find a word and replace it with another (with the option of > ignoring anything in pointed brackets). I'm not a programmer so I probably > don't appreciate the complexities of the task, however in this case it seems > like the object-oriented database is a hindrance rather than a help. If it > was just a batch of html files I could search and replace through them with > just about any piece of software on my desktop. > > I wouldn't know whether this is the sort of tool that is generally useful, > but in my work I use search and replace all the time (if only to fix my > endless confusion over 'its' and 'it's') > > Cheers > > Lee Hunter > Hum Communications Ltd. > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
Lee Hunter wrote: > > Martin Winkler wrote > > 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 its not that hard to program, if you want just want to replace, previewing is a bit difficult, because your asking for a multi-doc preview (how?) ideally two external methods. one recurses through folders collect objects of a particular meta_type the second external method calls the first to get a collection of objects for a particular meta_type and performs string manipulations on the raw() representation of the method. kapil ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Search and replace
Martin Winkler wrote > 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 I had understood that Python and Zope excelled at string manipulation. That's why I am surprised that it would be difficult to scan a folder full of documents to find a word and replace it with another (with the option of ignoring anything in pointed brackets). I'm not a programmer so I probably don't appreciate the complexities of the task, however in this case it seems like the object-oriented database is a hindrance rather than a help. If it was just a batch of html files I could search and replace through them with just about any piece of software on my desktop. I wouldn't know whether this is the sort of tool that is generally useful, but in my work I use search and replace all the time (if only to fix my endless confusion over 'its' and 'it's') Cheers Lee Hunter Hum Communications Ltd. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Search and replace
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 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Search and replace
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. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Search and replace
From: seb bacon [mailto:[EMAIL PROTECTED]] >I was about to add my voice to this thread, and say: > what's wrong with emacs s/r (or whatever your favourite ftp-aware > editor is)? >Then I had to do something like Max's example, across 12 different >docs, and changed my mind... >There's probably a sage snippet of knowledge to be gleaned from this, >but I'm not sure what it might be ;) Something like this perhaps? http://www.zope.org/Members/pje/Wikis/ZPatterns/InformationHiding ;-) max ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
On Sun, 19 Nov 2000 15:03:46 -0500 you wrote: >Is there any way to do a 'search and replace' in a Zope folder (and it's >subfolders)? Ha! Funny you'd mention this in this way. I've thought that a search and replace could be used on www.zope.org to help force Zope documenters to use "it's" correctly by replacing each occurrence with "it is" in all documents. Think it'd work? --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Search and replace
From: Martin Winkler [mailto:[EMAIL PROTECTED]] >Another thought: If Zope would offer s/r, then a bunch of programmers >would stick in their bad behaviour _not_ implementing '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. try and do this correctly: The customer is: Search: "customer" Replace: "buyer" U ... can of worms Max M ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Search and replace
At 05:58 20.11.2000, Lee Hunter <[EMAIL PROTECTED]> 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 '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 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Re-2: [Zope] Search and replace
On 20 Nov 2000 [EMAIL PROTECTED] wrote: > Hello Stefan, > which replace product do you mean? > Arno http://www.zope.org/Members/cguardia/replace but be warned, it does NOT work with Zope 2.2.x (breaks your Folder.py) Stefan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
FWIW, there used to be the replace product that worked great for me with Zope 2.1.6. Pity I upgraded ;) Stefan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
You'd have to write a method, looping over the documents you want changed an doing a and a manage_edit_whatever-holds-your-content... This ought be a method of folders by default, i think, accessible by manager from the management interface.. (Regexps would be neat here..) -- Geir Bækholt web-developer/designer [EMAIL PROTECTED] http://www.funcom.com on Sunday, November 19, 2000 Lee Hunter wrote : LH> Is there any way to do a 'search and replace' in a Zope folder (and it's LH> subfolders)? LH> TIA LH> Lee LH> Hum Communications Ltd. LH> ___ LH> Zope maillist - [EMAIL PROTECTED] LH> http://lists.zope.org/mailman/listinfo/zope LH> ** No cross posts or HTML encoding! ** LH> (Related lists - LH> http://lists.zope.org/mailman/listinfo/zope-announce LH> http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
Lee Hunter wrote: > Shouldn't there be a S & R tab on every folder object that provides a choice > of replacing html, dtml or text and that spits out a report on what was > changed? Oho, I like it. Yes, please!!! > Or even better, that first gives you a report of *proposed* changes > and then allows you to check off the ones you want to ok. Yes, definitely you should have a chance to verify. --Paul (no relation to Martin AFAIK!) -- .paul winkler.. slinkP arts: music, sound, illustration, design, etc. web page: http://www.slinkp.com A member of ARMS: http://www.reacharms.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Search and replace
Ouch! Zope has no built in way to do search and replace? As an editor, that is a *very* serious drawback indeed! The first workaround you suggest may be useful when creating new pages although only when you can guess what might change in the future and it also requires that all of the people creating content think like programmers, not writers. The second approach seems somewhat risky, complex and challenging for an unsophisticated user. 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? Shouldn't there be a S & R tab on every folder object that provides a choice of replacing html, dtml or text and that spits out a report on what was changed? Or even better, that first gives you a report of *proposed* changes and then allows you to check off the ones you want to ok. Lee Hunter Hum Communications Ltd. > -Original Message- I wrote: > >Is there any way to do a 'search and replace' in a Zope > folder (and it's > >subfolders)? Martin Winkler replied > AFAIK: no. But on the other hand: why do you need it? That's > what objects > are for... Just create a method with the text that may change > sometimes and > is displayed on many pages, and include it with . > One possibility I see is: export the folder as XML, edit the > file in your > favourite text-editor and do a search 'n replace. (with the > , of > course ;-) > Then import the file again. > > Hope this helps, > > Martin > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
At 21:03 19.11.2000, you wrote: >Is there any way to do a 'search and replace' in a Zope folder (and it's >subfolders)? AFAIK: no. But on the other hand: why do you need it? That's what objects are for... Just create a method with the text that may change sometimes and is displayed on many pages, and include it with . One possibility I see is: export the folder as XML, edit the file in your favourite text-editor and do a search 'n replace. (with the , of course ;-) Then import the file again. Hope this helps, Martin ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Search and replace
Is there any way to do a 'search and replace' in a Zope folder (and it's subfolders)? TIA Lee Hum Communications Ltd. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Search And Replace for the manage interface
Hi, I have been looking at Zope and working with it for a couple of months and I just love it. We have even started using it on production work. One client we recently had, asked us to modify every ocurrence of certain words in the whole Zope web site. Rather than change them by hand I decided to add a Replace tab to the Zope management interface. I did and it worked all right for my simple needs. The question is, does anything like this exist for the new release of Zope? If not, how could I integrate my work to the zope distribution? I created new files in the OFS directory and modified some other files on the App directory. What is the correct way to do this? Thanks for your feedback. Carlos de la Guardia Aldea Internet ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )