Changing text in all methods
I want to change a text in all my dtml methods in Zope. There's a way to do this? In php I do this with a perl regular expression... Thanks... -- Diego Rodrigo Neufert System Administrator / Security Manager - Magic Web Design ----------------------------------------------------------- diego@magicwebdesign.com.br www.magicwebdesign.com.br Curitiba - PR - Brasil
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
participants (2)
-
Diego Rodrigo Neufert -
Luciano Ramalho