[Zope] RE: Turn static HTML dynamic? forwarded message from Oleg Broytmann
Janko Hauser
jhauser@ifm.uni-kiel.de
Mon, 11 Oct 1999 18:41:32 +0200 (CEST)
--+aLfbZIA92
Content-type: text/plain; charset="us-ascii"
Content-transfer-encoding: 7bit
Content-Description: message body text
Oleg Broytmann has just coded this for an intelligent upload of static
pages. This should preseve also the meta tags...
HTH
__Janko
Here the text of his last mail and the hole thing in the attachment.
I've debugged my patch to load_site.py and now I am publishing it here.
Full load_site.py.gz attached.
My patch adds html parsing - load_site.py, while traversing files and
directories, parse HTML files before uploading. <HEAD></HEAD> completely
removed, <BODY> replaced with <!--#var standard_html_header-->,
</BODY></HTML> - with <!--#var standard_html_footer-->. <TITLE></TITLE> if
present parsed and title beacomes Document's title.
Oleg.
--+aLfbZIA92
Content-type: message/rfc822
Content-transfer-encoding: 7bit
Content-Description: forwarded message
Date: Mon, 11 Oct 1999 16:44:26 +0000
Mime-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-851401618-939571568=:24624"
Return-Path: <zope-dev-admin@zope.org>
Delivered-To: hauser@localhost
Received: (qmail 678 invoked from network); 10 Oct 1999 16:07:45 -0000
Received: from localhost (127.0.0.1) by localhost with SMTP; 10 Oct 1999 16:07:45 -0000
Received: from xerxes.ifm.uni-kiel.de by localhost with POP3 (fetchmail-5.0.5) for hauser@localhost (single-drop); Sun, 10 Oct 1999 18:07:45 +0200 (CEST)
Received: from zope.codeit.com (actually www.zope.org) by nms.rz.uni-kiel.de with SMTP (PP); Sun, 10 Oct 1999 18:09:30 +0200
Received: from www2 (localhost [127.0.0.1]) by zope.codeit.com (8.9.2/8.8.7) with ESMTP id JAA09362; Sun, 10 Oct 1999 09:06:34 -0700 (PDT)
Received: from sun.med.ru (sun.med.ru [194.67.88.10]) by zope.codeit.com (8.9.2/8.8.7) with ESMTP id JAA09338 for <zope-dev@zope.org>;
Sun, 10 Oct 1999 09:06:21 -0700 (PDT)
Received: (from phd@localhost) by sun.med.ru (8.8.8+Sun/8.8.8) id UAA24626; Sun, 10 Oct 1999 20:06:08 +0400 (MSD)
X-Sender: phd@sun
Reply-To: phd2@earthling.net
Message-Id: <Pine.SOL2.3.96.SK.991010200103.24624A-101000@sun>
Errors-To: zope-dev-admin@zope.org
X-Mailman-Version: 1.0b8
Precedence: bulk
List-Id: Developers of the Z Object Publishing Environment <zope-dev.zope.org>
X-Beenthere: zope-dev@zope.org
X-UIDL: 05e40a0123f50832a9a5e88c42c3f621
From: Oleg Broytmann <phd@sun.med.ru>
Sender: zope-dev-admin@zope.org
To: Zope-Dev Mailing List <zope-dev@zope.org>
Subject: [Zope-dev] load_site.py - patch1 final
Date: Sun, 10 Oct 1999 20:06:08 +0400 (MSD)
---559023410-851401618-939571568=:24624
Content-type: text/plain; charset="us-ascii"
Hello!
I've debugged my patch to load_site.py and now I am publishing it here.
Full load_site.py.gz attached.
My patch adds html parsing - load_site.py, while traversing files and
directories, parse HTML files before uploading. <HEAD></HEAD> completely
removed, <BODY> replaced with <!--#var standard_html_header-->,
</BODY></HTML> - with <!--#var standard_html_footer-->. <TITLE></TITLE> if
present parsed and title beacomes Document's title.
Oleg.
----
Oleg Broytmann http://members.xoom.com/phd2/ phd2@earthling.net
Programmers don't die, they just GOSUB without RETURN.
---559023410-851401618-939571568=:24624
Content-type: APPLICATION/x-gzip; name="load_site.py.gz"
Content-transfer-encoding: base64
Content-ID: <Pine.SOL2.3.96.SK.991010200608.24624B@sun>
Content-Description:
H4sICAeVADgCA2xvYWRfc2l0ZS5weQDVWW132kYW/s6vmLVPDpDIcpzuyykb
ehaDEuscDF7AyabZHCrQCNQISauRIO6v3+feGYGESdK03Q/rprYY3dfnvsyd
4fz8j/xpnAv8+zFJpbgrFlG4FMNwKWMlRevHu2FbvJGZCpNYXNnPQXfxa360
yH6SPmThap2L1rItBuEqzL1I9DPp5ZCnbCF6USSYQolMKpltpW9r3tk6VCIy
dqw9JRZSxmIpszwMQukLrIxTrEyTIlvKVr5pG8aJ9EO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