[Zope] Global Search & Replace inside DTML Documents

Ausum augusto@artlover.com
Fri, 7 Sep 2001 01:09:57 -0500


I just want to add that if what you want is to replace just html tags, it's
better that you do it in Dreamweaver, before importing to Zope. It has the
best find-and-replace tool I've seen in a web design tool.
Using DW you just need to perform a "strip tag" routine, maybe in addition
to the command "clean up word html". If you've get rid of the original
files, you might need to retrieve them via FTP. (It's much better that
perform the replace within Zope.)


Ausum



----- Original Message -----
From: "Zope" <zope@halfmagic.com>
To: <zope@zope.org>
Sent: Thursday, September 06, 2001 11:59 PM
Subject: [Zope] Global Search & Replace inside DTML Documents


> I've imported a bunch of files created in (ugh) FrontPage.  They're
riddled
> with extraneous and unpleasant font tags.  I've reached the point where
I'd
> love to simple nuke ALL font tags that live in DTML Documents.  I can
write
> the regular expressions that do this, does anyone have a quick code
snippet
> that illustrates how to walk all of the subfolders of a given Zope folder,
> perform some kind of transformation on each DTML Document contained in the
> folder, then save out the new version?
>
> TIA,
>
> Howard Hansen
> http://howard.editthispage.com
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
>