Re: [Zope] Search and Replace tool

2008-12-16 Thread Stephen Christian


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 )


Re: [Zope] Search and replace interface

2000-12-12 Thread Chris Withers

"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

2000-12-06 Thread Chris Withers

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 interface

2000-12-06 Thread Stefan H. Holek

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

2000-11-22 Thread tom smith

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

2000-11-22 Thread Ender

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

2000-11-22 Thread Ender

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

2000-11-21 Thread Lee Hunter

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

2000-11-21 Thread Mario Olimpio de Menezes

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

2000-11-21 Thread Ender

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

2000-11-20 Thread Stefan H. Holek


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

2000-11-20 Thread Max Møller Rasmussen

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 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.


try and do this correctly:

dtml-in customers
The customer is: dtml-var customer
/dtml-in

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

2000-11-20 Thread Kyler B. Laird


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

2000-11-20 Thread Lee Hunter

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

2000-11-20 Thread Martin Winkler

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

2000-11-20 Thread Lee Hunter


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

2000-11-20 Thread Ender

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

2000-11-20 Thread Daniel Rusch

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

2000-11-20 Thread Steve Spicklemire


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

2000-11-20 Thread Jonothan Farr

 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

2000-11-19 Thread Martin Winkler

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 dtml-var ...
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 dtml-var, 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 )




RE: [Zope] Search and replace

2000-11-19 Thread Lee Hunter

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 dtml-var ...
 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
 dtml-var, 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

2000-11-19 Thread Paul Winkler

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 )