Hello! Attached is gzipped source for heavily modified load_site.py. In this latest patch I added capability to parse HTML files the following way: 1) <HEAD></HEAD> parsed and completely stripped off; 2) <TITLE></TITLE> parsed and stored 3) all other tags inside HEAD are stored separately in a long string; 4) <BODY> stripped off and replaced with <!--#var standard_html_header--> 5) </BODY> stripped off and replaced with <!--#var standard_html_footer--> 6) </HTML> stripped off. On uploading to Zope, saved title used as document's title, other saved tags (from HEAD) stored as "loadsite-head" text (multiline) property. To restore the property, you just need to add new (or modify existing) standard_html_header. Add the following between <HEAD> and </HEAD>: <!--#if loadsite-head--><!--#var loadsite-head--><!--#/if loadsite-head--> Hey, DigiCool! Would you like to include new version into standard distribution? If no, I'll publish it on my member page, along with short HOW-TO. Oleg. ---- Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/ Programmers don't die, they just GOSUB without RETURN.
participants (1)
-
Oleg Broytmann