[Zope] Changing text in all methods
Luciano Ramalho
luciano@hiper.com.br
Fri, 30 Mar 2001 19:35:25 -0300
Diego Rodrigo Neufert wrote:
> I want to change a text in all my dtml methods in Zope. There's a way to do
> this?
If I understood your question, you want to change something that appears
in the source code of your DTML methods; maybe it's the name of a
variable that you use a lot.
Here is what I've done a few times:
1) export the folder containing the stuff to be changed as XML,
2) open the XML in a text editor (I use TextPad),
3) use TextPad's change and replace regex to do the modification
4) import the XML back inside Zope
If you're careful with your regex, that works very well.
Regards,
Luciano