[Zope] calling a DTML-Method in an Extended Method
Quentin Smith
quentins@comclub.dyndns.org
Sat, 10 Aug 2002 00:54:31 -0400
Hi-
wget ---mirror does indeed download pictures to files. Here is how I=20
mirror sites: wget -m -np http://the.path.to:8080/the/site/.
HTH,
--Quentin
On Friday, August 9, 2002, at 09:14 AM, Dirk Hoeveler wrote:
> Hi,
>
> I am trying to 'mirror' an existing zope application and put the files=20=
> on an
> apache (don't ask, why, the customer wants it).
>
> Because I use a lot of ZClasses where put Images into, I cannot just=20=
> use wget
> --mirror, because it cannot put pictures into a file.
>
> So I tried to build an Extended Method, which uses a ZopeFind for all=20=
> the
> pages I need and tries to write the rendered pages on my disk.
>
> But I cannot render the DTML-Methods into a string, so that I can=20
> write a
> file.
> I tried something like
>
> myPageString =3D myFolder.index_html(), but i get the key error =
message=20
> about
> standard_html_header not being available.
>
> I see, that the script tries to render my index_html DTML-Method, but =
it
> doesn't seem to get the other DTML-Methods which are used in =
index_html.
>
> Can you give me hint, how to pass the context, namespace, everything =
it=20
> needs
> to my Extended method?
>
> By the way, if somebody knows of a Product, so already exists and=20
> produces a
> wget-like copy of a zope-site, that would also help a lot.
>
> Thank You,
>
> Dirk H=F6veler
>
>
> _______________________________________________
> 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 )
>