[Zope-Checkins] SVN: Zope/branches/Zope-2_9-branch/test.py Backport fix for broken Windows tests from trunk.
Log message for revision 40093: Backport fix for broken Windows tests from trunk. Changed: U Zope/branches/Zope-2_9-branch/test.py -=- Modified: Zope/branches/Zope-2_9-branch/test.py === --- Zope/branches/Zope-2_9-branch/test.py 2005-11-14 04:54:58 UTC (rev 40092) +++ Zope/branches/Zope-2_9-branch/test.py 2005-11-14 16:21:24 UTC (rev 40093) @@ -30,7 +30,7 @@ if shome: shome = os.path.abspath(shome) else: -shome = os.path.join(zhome, 'lib/python') +shome = os.path.join(zhome, 'lib', 'python') elif shome: shome = os.path.abspath(shome) zhome = os.path.dirname(os.path.dirname(shome)) @@ -42,7 +42,7 @@ else: # No zope home, assume that it is the script directory zhome = os.path.abspath(os.path.dirname(sys.argv[0])) -shome = os.path.join(zhome, 'lib/python') +shome = os.path.join(zhome, 'lib', 'python') sys.path.insert(0, shome) ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Coders] Zope tests: 7 OK
Summary of messages to the zope-tests list. Period Sun Nov 13 12:01:02 2005 UTC to Mon Nov 14 12:01:02 2005 UTC. There were 7 messages: 7 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Sun Nov 13 22:04:53 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003548.html Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Sun Nov 13 22:06:23 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003549.html Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Sun Nov 13 22:07:53 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003550.html Subject: OK : Zope-2_7-branch Python-2.4.2 : Linux From: Zope Unit Tests Date: Sun Nov 13 22:09:23 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003551.html Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Sun Nov 13 22:10:53 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003552.html Subject: OK : Zope-2_8-branch Python-2.4.2 : Linux From: Zope Unit Tests Date: Sun Nov 13 22:12:23 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003553.html Subject: OK : Zope-trunk Python-2.4.2 : Linux From: Zope Unit Tests Date: Sun Nov 13 22:13:53 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003554.html ___ Zope-Coders mailing list Zope-Coders@zope.org http://mail.zope.org/mailman/listinfo/zope-coders
Re: [Zope-dev] Re: Reminder: feature freeze November 1.
Dang, that's embarassing. Thanks Tres! On Sun, 2005-11-13 at 23:43 -0500, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark Hammond wrote: Not on Windows: Windows test failures on Zope trunk http://www.zope.org/Collectors/Zope/1931 CMF-trunk runs fine on the Zope trunk, etc. Certainly agree it would help to have a specific list of what (if anything) still needs to fixed. FWIW, I don't expect Windows test failures to hold up a beta release (note that I didn't say that's a policy I agree with ;-)). Without Windows-centric developers who are motivated to investigate and fix those bugs, I don't know what else we can do. That bugs points at http://mail.zope.org/pipermail/zope-dev/2005-October/025512.html, which quotes Tim as saying: : No idea where this slash-vs-backslash confusion ultimately comes from, : though. Who recently checked code in hard-coding / as a path : separator? So in this specific example, the problem seems less a lack of Windows centric developers, but more an abundance of non-Windows-centric developers :) These test failures appear at first glance to not be windows specific at all - just possibly pointing at non-portable code written by others. As a Windows developer, I'm afraid I have no idea where I would start looking for this bug. test.py in the root is the likely culprit, as it is mucking with sys.path. Does this patch make the Windows tests pass? - --- test.py (revision 40087) +++ test.py (working copy) @@ -30,7 +30,7 @@ if shome: shome = os.path.abspath(shome) else: - -shome = os.path.join(zhome, 'lib/python') +shome = os.path.join(zhome, 'lib', 'python') elif shome: shome = os.path.abspath(shome) zhome = os.path.dirname(os.path.dirname(shome)) Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDeBX3+gerLs4ltQ4RAiMdAKC7L8kACTUcTON76ch5bLNEkzO60gCgmAWw tEeI08XK7m7PP3wD3Kwt9xE= =0aEf -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Reminder: feature freeze November 1.
[Tres Seaver] test.py in the root is the likely culprit, as it is mucking with sys.path. Does this patch make the Windows tests pass? - --- test.py (revision 40087) +++ test.py (working copy) @@ -30,7 +30,7 @@ if shome: shome = os.path.abspath(shome) else: - -shome = os.path.join(zhome, 'lib/python') +shome = os.path.join(zhome, 'lib', 'python') elif shome: shome = os.path.abspath(shome) zhome = os.path.dirname(os.path.dirname(shome)) Well spotted! It (plus the later patch) does fix the checkDuplicate test failure on Windows, and I closed issue 1931. Turns out the Five tests that were failing on Windows also fail on Linux, but the failing tests don't run unless you pass ``--all`` to test.py (which I normally do, but I guess most people don't, in which case most people wouldn't see these failures). I opened a new issue about that: http://www.zope.org/Collectors/Zope/1947 ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: SVN: Zope/trunk/test.py Don't hard-wire forward-slash into sys.path (redux).
Tres Seaver wrote: Log message for revision 40092: Don't hard-wire forward-slash into sys.path (redux). Please don't forget to merge this and the previous rev to the Zope 2.9 branch. From now on, both the trunk and the 2.9 branch need to be taken care of. Philipp ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: branched Zope 2.9
Florent Guillaume wrote: BTW I'm for removing the 2.9 branch for now. You didn't, so I presume 2.9 branch stays? It's important to clear the status of this branch because bugfixes need to be merged to it (see my email about Tres' bugfix, for example). By the way, in the future, just to avoid confusion, I think release branches should be made by the release manager (in thise case Andreas Jung). They clearly fall under their responsibility and supervision. I still think it was a good thing to create the branch now because I agree with Tres' general argument that a feature freeze on the trunk hinders on-going development. The trunk should never be in any freeze state. That's what release branches are for. Thus, the Zope 2.9 and 3.2 branches should have been made November 1st. Philipp ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: branched Zope 2.9
--On 15. November 2005 00:20:00 +0800 Philipp von Weitershausen [EMAIL PROTECTED] wrote: Florent Guillaume wrote: BTW I'm for removing the 2.9 branch for now. You didn't, so I presume 2.9 branch stays? It's important to clear the status of this branch because bugfixes need to be merged to it (see my email about Tres' bugfix, for example). By the way, in the future, just to avoid confusion, I think release branches should be made by the release manager (in thise case Andreas Jung). They clearly fall under their responsibility and supervision. Jup. So when I see clear the only problem is the zpkg issue (where Philikon is working on it)...right? -aj pgpwkcfOTJt9V.pgp Description: PGP signature ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Reminder: feature freeze November 1.
On Sun, Nov 13, 2005 at 02:55:22PM -0500, Chris McDonough wrote: Of course the release manager should have the last say and as the release manager it's totally valid for Andreas to delete the branch. Apologies for taking initiative. I was really just trying to unstick Paul and get things rolling again. Thanks Chris, I didn't mean for you to get you in hot water. And thanks Jim for directly answering my question, which is really all I needed :) -- Paul Winkler http://www.slinkp.com ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: branched Zope 2.9
Andreas Jung wrote: --On 15. November 2005 00:20:00 +0800 Philipp von Weitershausen [EMAIL PROTECTED] wrote: Florent Guillaume wrote: BTW I'm for removing the 2.9 branch for now. You didn't, so I presume 2.9 branch stays? It's important to clear the status of this branch because bugfixes need to be merged to it (see my email about Tres' bugfix, for example). By the way, in the future, just to avoid confusion, I think release branches should be made by the release manager (in thise case Andreas Jung). They clearly fall under their responsibility and supervision. Jup. So when I see clear the only problem is the zpkg issue (where Philikon is working on it)...right? Jup. Making progress in babysteps. Philipp ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] buildbot failure in Zope trunk 2.4 Windows 2000 fred-win
The Buildbot has detected a failed build of Zope trunk 2.4 Windows 2000 fred-win. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 1541 Blamelist: philikon BUILD FAILED: failed failed slave lost sincerely, -The Buildbot ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Reminder: feature freeze November 1.
On Mon, 2005-11-14 at 10:22 -0500, Tim Peters wrote: ... Turns out the Five tests that were failing on Windows also fail on Linux, but the failing tests don't run unless you pass ``--all`` to test.py (which I normally do, but I guess most people don't, in which case most people wouldn't see these failures). I opened a new issue about that: http://www.zope.org/Collectors/Zope/1947 Ah. I'll add --all to the buildbot configs. JIm ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: branched Zope 2.9
On Tue, 2005-11-15 at 00:20 +0800, Philipp von Weitershausen wrote: Florent Guillaume wrote: BTW I'm for removing the 2.9 branch for now. You didn't, so I presume 2.9 branch stays? It's important to clear the status of this branch because bugfixes need to be merged to it (see my email about Tres' bugfix, for example). This is Andreas' call. Jim ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-PAS] Installing Plone PAS in Plone site overwrite base acl_users and sites acl_users
Sidnei da Silva wrote: On Mon, Nov 14, 2005 at 12:54:50PM +0100, Dario Lopez-Kästen wrote: | Does this mean, that in any Zope ZODB where I have such a Plone | instance, the Plone instance imposes it's acl_users on the ROOT of the | Zope install? No, PlonePAS migrates the acl_users on the 'first found above' to be a compatible PAS acl_users setup, with existing users migrated, only if it's a standard 'User Folder'. caveat, I am not into PAS yet, I am only following the discussion for fuutre work, so I may not be understanding corretly how PAS works: first found above sounds like it is the Zope-root in a normal Plone install: ie. / is the zope root, where there is an acl_users. /Portal is the Plone default install. /Portal/acl_users is the non-pas location of a user folder if one creates one at or after creating a Plone Site object. first found above means... /Portal/../acl_users -- /acl_users? Or does first found above mean /Portal/acl_users ? Assuming, I have understood this correclty, if there is no /Portal/acl_users, then I can understand that there logically is no other user folder than /acl_users to PAS-ify... but that is, imho, perhaps a bit too invasive - better to offer the user an option to create a new PAS-ified acl_users at /Portal level rather than silenlty PAS-ify the root acl_users. We have all learned that replacing the root acl_users is generally not a good idea, so doing this semi-silently is perhaps a bit premature. Until Zope ships with PAS as the default user folder implementation, replacing root user folders should be treated as a special case that is to be avoided and alternative options should be offered. Apologies if I am misunderstanding everything and wasting bandwith. Sincerely, /dario -- -- --- Dario Lopez-Kästen, IT Systems Services Chalmers University of Tech. Lyrics applied to programming application design: emancipate yourself from mental slavery - redemption song, b. marley ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas
[Zope] Zope Cookbook????
Hi , I am considering using zope to build a sample applicaiton like a guestbook and shopping cart kind of application. I really looked for all documentation but couldnt find a cookbook which does a step by step introduction to ahceive this.Is there some resource like this? Besides I am a new to python.Is python scripting required to build something as simple as a guestbook? Or would you recommend me to use something like PHP/Perl. I installed zope and read some docs but all I find is objects,aquisition and details about ZMI. If someone could help or point to some resources or probably say that Zope is not needed for this I would be grateful. Thanks vivek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] version of the Zope book with user comments included?
Hi I remember seeing a version of the Zope book which also had user comments included. It was very useful. However I haven't been able to find this again using Google. Does anyone have the link. I found it brilliant for issues that cropped up on install. Thanks ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: version of the Zope book with user comments included?
michael nt milne wrote: Hi I remember seeing a version of the Zope book which also had user comments included. It was very useful. However I haven't been able to find this again using Google. Does anyone have the link. I found it brilliant for issues that cropped up on install. Thanks The books linked at http://www.zope.org/Documentation/Books/ZopeBook/ have user comments switched off since last week - click the COM OFF/ON icon in the navbar to show/hide comments again. Michael -- http://zope.org/Members/d2m http://planetzope.org ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: version of the Zope book with user comments included?
Thanks. Strangely, the comments only display when the comments are set to off...in IE6 and also latest Firefox.On 11/14/05, Michael Haubenwallner [EMAIL PROTECTED] wrote:michael nt milne wrote: HiI remember seeing a version of the Zope book which also had user comments included. It was very useful. However I haven't been able to find this again using Google. Does anyone have the link. I found it brilliant for issues that cropped up on install.Thanks The books linked at http://www.zope.org/Documentation/Books/ZopeBook/have user comments switched off since last week- click the COM OFF/ON icon in the navbar to show/hide comments again.Michael--http://zope.org/Members/d2mhttp://planetzope.org___ Zope maillist-Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope** No cross posts or HTML encoding!** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] htmltopdf
Has anyone successfully used htmltopdf, a PHP script written by Jason Rust (www.rustyparts.com) to convert an HTML file to PDF, with Zope? In particular, I wanted to find out if anyone had used the python equivalent of this PHP script. I am currently in the process of trying this and if anyone has already done it, their input/help would be appreciated. Thanks. - Asad ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] htmltopdf
Asad Habib wrote: Has anyone successfully used htmltopdf, a PHP script written by Jason Rust (www.rustyparts.com) to convert an HTML file to PDF, with Zope? In particular, I wanted to find out if anyone had used the python equivalent of this PHP script. We've been looking into this recently. Raw notes on various tools and links below, first on HTML to pdf/ps, and then on HTML to image (jpeg/png) directly, which is ultimately what we need to do. The main thing is that many of the html to ps/pdf tools don't handle CSS well, if at all. The big exception there is shown (with a live demo) at http://www.tufat.com/script19.htm. It's fabulous - handles pages from csszengarden quite well. At the moment, we're going with a simpler approach to our problem (watermarks), but if we went the HTML to PDF/image route, I'd look at the tufat.com script, or the approach noted at the hackdiary.com link. HTML TO PDF/PS CONVERSION html2ps:http://user.it.uu.se/~jan/html2ps.html html to pdf in php:http://www.rustyparts.com/pdf.php python script for html to pdf conversion:http://www.rustyparts.com/scripts/HTML_ToPDF/contrib/html2pdf.py html2doc:http://www.easysw.com/htmldoc , a proprietary tool denature:http://denature.sourceforge.net/, html to pdf via xsl/fo in Perl other html to pdf:http://tinyurl.com/a8u7q tools at Freshmeat Zope cookbook has a recipe:http://zopelabs.com/cookbook/1069611008 using (yum-able) recode:http://www.gnu.org/software/recode/recode.html and html2doc:http://www.htmldoc.org/ aka a product from ESP:http://www.easysw.com/htmldoc/ (under GNU license) * there's also the apparently very simple ZpdfDocument:http://www.zope.org/Members/gaaros/ZpdfDocument There is a php version of html2ps:http://www.tufat.com/script19.htm which handles background images, e.g. from here http://www.netmechanic.com/news/vol5/HTMLTest_background.htm:http://www.netmechanic.com/news/vol5/HTMLTest_background.htm HTML TO IMAGE CONVERSION * html2jpg:http://freshmeat.net/projects/html2jpg/ project page:http://marginalhacks.com/Hacks/html2jpg/ (requires mozilla) * khtml2png:http://directory.fsf.org/webauth/misc/khtml2png.html (not maintained) also used here:http://www.michaelhoover.org/work/2004/07/khtml2png.html * another python-based app:http://www.hackdiary.com/archives/55.html(may be the most promising)http://www.pygtk.org/:http://www.pygtk.org/ * webkit2png:http://www.paulhammond.org/webkit2png/ * Easy capture:http://www.perturb.org/display/entry/728/ for the PHP environment (not HTML, just images) * HTML/CSS/javascript approach:http://www.electropubs.com/watermark_install.htm * using PHP and GD:http://www.sitepoint.com/print/watermark-images-php ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] htmltopdf
Christoph Berendes wrote: Asad Habib wrote: Has anyone successfully used htmltopdf, a PHP script written by Jason Rust (www.rustyparts.com) to convert an HTML file to PDF, with Zope? In particular, I wanted to find out if anyone had used the python equivalent of this PHP script. We've been looking into this recently. Raw notes on various tools and links below, first on HTML to pdf/ps, and then on HTML to image (jpeg/png) directly, which is ultimately what we need to do. The main thing is that many of the html to ps/pdf tools don't handle CSS well, if at all. The big exception there is shown (with a live demo) at http://www.tufat.com/script19.htm. It's fabulous - handles pages from csszengarden quite well. At the moment, we're going with a simpler approach to our problem (watermarks), but if we went the HTML to PDF/image route, I'd look at the tufat.com script, or the approach noted at the hackdiary.com link. HTML TO PDF/PS CONVERSION html2ps:http://user.it.uu.se/~jan/html2ps.html html to pdf in php:http://www.rustyparts.com/pdf.php python script for html to pdf conversion:http://www.rustyparts.com/scripts/HTML_ToPDF/contrib/html2pdf.py html2doc:http://www.easysw.com/htmldoc , a proprietary tool denature:http://denature.sourceforge.net/, html to pdf via xsl/fo in Perl other html to pdf:http://tinyurl.com/a8u7q tools at Freshmeat Zope cookbook has a recipe:http://zopelabs.com/cookbook/1069611008 using (yum-able) recode:http://www.gnu.org/software/recode/recode.html and html2doc:http://www.htmldoc.org/ aka a product from ESP:http://www.easysw.com/htmldoc/ (under GNU license) * there's also the apparently very simple ZpdfDocument:http://www.zope.org/Members/gaaros/ZpdfDocument There is a php version of html2ps:http://www.tufat.com/script19.htm which handles background images, e.g. from here http://www.netmechanic.com/news/vol5/HTMLTest_background.htm:http://www.netmechanic.com/news/vol5/HTMLTest_background.htm HTML TO IMAGE CONVERSION * html2jpg:http://freshmeat.net/projects/html2jpg/ project page:http://marginalhacks.com/Hacks/html2jpg/ (requires mozilla) * khtml2png:http://directory.fsf.org/webauth/misc/khtml2png.html (not maintained) also used here:http://www.michaelhoover.org/work/2004/07/khtml2png.html * another python-based app:http://www.hackdiary.com/archives/55.html(may be the most promising)http://www.pygtk.org/:http://www.pygtk.org/ * webkit2png:http://www.paulhammond.org/webkit2png/ * Easy capture:http://www.perturb.org/display/entry/728/ for the PHP environment (not HTML, just images) * HTML/CSS/javascript approach:http://www.electropubs.com/watermark_install.htm * using PHP and GD:http://www.sitepoint.com/print/watermark-images-php ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) I've been using the htmldoc route for ages now. Bit limited in that it's HTML 3 but works fine for me. Charles ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] htmltopdf
FWIW, there's also Prince that you can run on your server: http://www.princexml.com I haven't worked much with it, but the docs say you can. Shane On 11/14/05, Charles Zealey [EMAIL PROTECTED] wrote: Christoph Berendes wrote: Asad Habib wrote: Has anyone successfully used htmltopdf, a PHP script written by Jason Rust (www.rustyparts.com) to convert an HTML file to PDF, with Zope? In particular, I wanted to find out if anyone had used the python equivalent of this PHP script. We've been looking into this recently. Raw notes on various tools and links below, first on HTML to pdf/ps, and then on HTML to image (jpeg/png) directly, which is ultimately what we need to do. The main thing is that many of the html to ps/pdf tools don't handle CSS well, if at all. The big exception there is shown (with a live demo) at http://www.tufat.com/script19.htm. It's fabulous - handles pages from csszengarden quite well. At the moment, we're going with a simpler approach to our problem (watermarks), but if we went the HTML to PDF/image route, I'd look at the tufat.com script, or the approach noted at the hackdiary.com link. HTML TO PDF/PS CONVERSION html2ps:http://user.it.uu.se/~jan/html2ps.html html to pdf in php:http://www.rustyparts.com/pdf.php python script for html to pdf conversion:http://www.rustyparts.com/scripts/HTML_ToPDF/contrib/html2pdf.py html2doc:http://www.easysw.com/htmldoc , a proprietary tool denature:http://denature.sourceforge.net/, html to pdf via xsl/fo in Perl other html to pdf:http://tinyurl.com/a8u7q tools at Freshmeat Zope cookbook has a recipe:http://zopelabs.com/cookbook/1069611008 using (yum-able) recode:http://www.gnu.org/software/recode/recode.html and html2doc:http://www.htmldoc.org/ aka a product from ESP:http://www.easysw.com/htmldoc/ (under GNU license) * there's also the apparently very simple ZpdfDocument:http://www.zope.org/Members/gaaros/ZpdfDocument There is a php version of html2ps:http://www.tufat.com/script19.htm which handles background images, e.g. from here http://www.netmechanic.com/news/vol5/HTMLTest_background.htm:http://www.netmechanic.com/news/vol5/HTMLTest_background.htm HTML TO IMAGE CONVERSION * html2jpg:http://freshmeat.net/projects/html2jpg/ project page:http://marginalhacks.com/Hacks/html2jpg/ (requires mozilla) * khtml2png:http://directory.fsf.org/webauth/misc/khtml2png.html (not maintained) also used here:http://www.michaelhoover.org/work/2004/07/khtml2png.html * another python-based app:http://www.hackdiary.com/archives/55.html(may be the most promising)http://www.pygtk.org/:http://www.pygtk.org/ * webkit2png:http://www.paulhammond.org/webkit2png/ * Easy capture:http://www.perturb.org/display/entry/728/ for the PHP environment (not HTML, just images) * HTML/CSS/javascript approach:http://www.electropubs.com/watermark_install.htm * using PHP and GD:http://www.sitepoint.com/print/watermark-images-php ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) I've been using the htmldoc route for ages now. Bit limited in that it's HTML 3 but works fine for me. Charles ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- http://liquid.homelinux.org/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Apache-pound-zeo-zope instances. Bad gateway and dual cpus related issues
Hi, I did not find any architecture related mailing list, so I deceided topost on the general list. I hope this is OK. I am struggling with my new zeo/zope architecture for some days now. I come to the conclusion that I should ask for help. I currently single cpu machine hosting zope + apache. I am trying to migrate to the architecture: machine A : Apache+pound machine B : 1 zeo + 1 zope machine C : 2 zope machine D : 2 zope all dual core, debian etch testing, Zope is 2.8.1-final and python 2.3.5. 1) Apache (machine A) In /etc/apache2/apache2.conf I inserted the rewrite rule: [...] NameVirtualHost 161.3.50.16 VirtualHost 161.3.50.16 ServerName ist-guizay.univ-st-etienne.fr DocumentRoot /var/www/ RewriteEngine On RewriteRule ^/(.*) http://161.3.50.16:81/VirtualHostBase/http/ist-guizay.univ-st-etienne.fr:80/VirtualHostRoot/$1 [P] /VirtualHost [...] That is to say that ist-guizay.univ-st-etienne.fr is machine A ... I want to pass to my pound (listening on the same machine, port 81), all request on 80 port of ist-guizay.univ-st-etienne.fr 2) Pound (machine A) In /etc/pound/pound.cfg, I have: [...] ListenHTTP *,81 UrlGroup .* BackEnd ip_machine_B,8080,1 BackEnd ip_machine_C,8080,2 BackEnd ip_machine_D,8080,2 EndGroup [...] The architecture is all hosted in the same service (inside an university, no external firewalls except the one on the machine that are filtering zeo/zope/pound/apache ports). I can do : http://machineB.mondomain.com:8080 http://machineC.mondomain.com:8080 http://machineD.mondomain.com:8080 All give me the welcome Zope installation page, as well as http://machineA.mondomain.com:81. (pound conf is ok) But I cannot go any further in my installation. There 2 things that troubles my understanding: A) RewriteRule: http://machineA.mondomain.com as well as http://machineA.mondomain.com/Portail (where /Portail is the path to plone site in fact), both replies: Bad Gateway The proxy server received an invalid response from an upstream server. I shall have done some mistakes in apache2.conf on the rewriterule: RewriteRule ^/(.*) http://161.3.50.16:81/VirtualHostBase/http/ist-guizay.univ-st-etienne.fr:80/VirtualHostRoot/$1 [P] but obviously I don't see it. The current production for 2 years does work (one single cpu with both apache and zope instance) with the same kind of RewriteRule mechanism. B) About running zope on dual core cpus: Not as critical but I missed something here too. I read (http://mail.zope.org/pipermail/zope/1999-December/100589.html) that python core got some lock policies in single thread mode, but I expected to associate one instance per cpu to solve it out. That is the reason why I configured 2 instances per machine (they are dual core ...). Nevertheless, If I log into machine B (running two zope instances), making tail -f ./instances/instance1/log/Z2.log and in another terminal, for the same machine: tail -f ./instances/instance2/log/Z2.log Then, I configure pound to redirect all requests on machine B and finally hit http://machineB:81 a lots, all requests goes to instance1 (first launched). I would expect the system to make the balancing (if one cpu is used by a thread instance1, instance2 can still response with cpu 2 ...) Obviously this is not the case, why ? I solve it by making instances listen on different ports so that pound got now 2 differents entries for one host (one entry per instance). Sorry for the long post, but these are all things needed to be explained to let you understand my problem. Best Regards, -- Christophe Gravier Laboratoire DIOM, groupe SATIn - Doctorant ISTASE - Ingénieur d'études Perso: http://perso.univ-st-etienne.fr/gravchri/ SATIn: http://www.istase.com/satin Tel : 04 7748 5034 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Zope Cookbook????
Vivek Krishna wrote: Hi , I am considering using zope to build a sample applicaiton like a guestbook and shopping cart kind of application. I really looked for all documentation but couldnt find a cookbook which does a step by step introduction to ahceive this.Is there some resource like this? Besides I am a new to python.Is python scripting required to build something as simple as a guestbook? Or would you recommend me to use something like PHP/Perl. I installed zope and read some docs but all I find is objects,aquisition and details about ZMI. If someone could help or point to some resources or probably say that Zope is not needed for this I would be grateful. Thanks vivek When you access your local zope instance like http://localhost:8080/ you see the default 'Zope QuickStart' document with a list of useful information and links to helful resources. One of the point says: Import and then check out the new example Zope applications. These examples show you simple working Zope applications that you can copy and modify Just click the 'Import' link and look into the newly created 'Examples' folder in ZMI. It features working example projects like a FileLibry, a GuestBook, a Navigation tool and a ShoppingCart -- check out the sources and browse the recent ZopeBook at http://www.plope.com/Books/2_7Edition for more information. Michael -- http://zope.org/Members/d2m http://planetzope.org ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] export/import problems with plone site
Hi, I successfully exported/imported a Plone site from one Zope instance to another. However, when I try to publish the Plone page, I experience an error. Does anyone know what the problem is here, or what to look for? Is this perhaps a more Plone speciific problem? Faheem. * Site Error An error was encountered while publishing this resource. AttributeError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 175, in publish_module_standard * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 132, in publish * Module Zope.App.startup, line 204, in zpublisher_exception_hook * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.CMFCore.PortalContent, line 116, in __call__ * Module Shared.DC.Scripts.Bindings, line 306, in __call__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module Products.CMFCore.FSPageTemplate, line 191, in _exec * Module Products.CMFCore.FSPageTemplate, line 124, in pt_render * Module Products.PageTemplates.PageTemplate, line 96, in pt_render FSPageTemplate at /dulci/document_view used for /dulci/index_html * Module TAL.TALInterpreter, line 190, in __call__ * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 671, in do_useMacro * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 409, in do_optTag_tal * Module TAL.TALInterpreter, line 394, in do_optTag * Module TAL.TALInterpreter, line 389, in no_tag * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 702, in do_defineSlot * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 637, in do_condition * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 702, in do_defineSlot * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 409, in do_optTag_tal * Module TAL.TALInterpreter, line 394, in do_optTag * Module TAL.TALInterpreter, line 389, in no_tag * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 671, in do_useMacro * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 637, in do_condition * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 409, in do_optTag_tal * Module TAL.TALInterpreter, line 394, in do_optTag * Module TAL.TALInterpreter, line 389, in no_tag * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 613, in do_loop_tal * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 409, in do_optTag_tal * Module TAL.TALInterpreter, line 394, in do_optTag * Module TAL.TALInterpreter, line 389, in no_tag * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 637, in do_condition * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 409, in do_optTag_tal * Module TAL.TALInterpreter, line 394, in do_optTag * Module TAL.TALInterpreter, line 389, in no_tag * Module TAL.TALInterpreter, line 234, in interpret * Module TAL.TALInterpreter, line 657, in do_useMacro * Module Products.PageTemplates.TALES, line 221, in evaluate Line 16, Column 12 Expression: PythonExpr path(pathexpr) Names: {'container': PloneSite instance at 43829b30, 'context': Document at /dulci/index_html, 'default': Products.PageTemplates.TALES.Default instance at 0x40b0c60c, 'here': Document at /dulci/index_html, 'loop': SafeMapping instance at 40549b90, 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x40b0c10c, 'nothing': None, 'options': {'args': ()}, 'repeat': SafeMapping instance at 40549b90, 'request': HTTPRequest, URL=http://riverside.dulci.biostat.duke.edu:9673/dulci/index_html, 'root': Application instance at 43829a10, 'template': FSPageTemplate at /dulci/document_view used for /dulci/index_html, 'traverse_subpath': [], 'user': faheem} * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ __traceback_info__: path(pathexpr) * Module Python expression path(pathexpr), line 1, in expression * Module Products.PageTemplates.PythonExpr, line 81, in __call__ * Module Products.PageTemplates.Expressions, line 172, in __call__ * Module Products.PageTemplates.Expressions, line 160, in _eval * Module Products.PageTemplates.Expressions, line 116, in _eval
Re: [Zope] export/import problems with plone site
Faheem Mitha wrote: I successfully exported/imported a Plone site from one Zope instance to another. However, when I try to publish the Plone page, I experience an error. Does anyone know what the problem is here, or what to look for? Is this perhaps a more Plone speciific problem? AttributeError: portlet_forum_latest (Also, an error occurred while attempting to render the standard error message.) Sounds like some forum product is installed on the first instance and not the second. --jcc -- Building Websites with Plone http://plonebook.packtpub.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Render a string as tal
I would like to be able to render an arbitrary string as tal, having the tal statements evaluated correctly. How would I go about doing this? -- Mark Gibson [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Render a string as tal
On Mon, Nov 14, 2005 at 01:19:18PM -0700, Mark Gibson wrote: I would like to be able to render an arbitrary string as tal, having the tal statements evaluated correctly. How would I go about doing this? I assume you mean TALES expressions. See: http://zopelabs.com/cookbook/1037762730 -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: zope 2.8.4 on windows 98
Fernando Martins wrote: Andreas Jung wrote: On Sat, 12 Nov 2005 03:52:28 -0800, Fernando Martins fernando at cmartins.demon.nl wrote: I understand the problem, but is it the intention that zope is not supported on win98? Yes, I believe this is intentional. Windows 98 is a seven year old OS with insufficient infrastructure to reliably run server tasks anyway. At least get Windows 2000, which has a decent kernel. However that does not mean that Zope won't run on Windows 98. For a recent project where we ship and install Zope on all customers desktop machines I had to do a lot of testing especially on Windows 98. I've been using zope 2.7.4 on win 98 for some development/testing, not as a real server. But I'm confused by your statement: if zope 2.8.4 is calling an NT security function, not available in win98, then it does NOT run on win98?? DO you mean there is something wrong with my win98 setup or that zope 2.8.4 could be patched to overcome this issue? Probably this is just in the start sequence. You cannot, of course, run Zope as a service in Win98, since it understands no such thing. Quite possibly you can use runzope or whatever to execute it in a console. I can't say exactly as the traceback has been edited out of this thread (and I've deleted the old messages). FYI, the last time I tried Zope on Win98 was Zope 2.2. --jcc -- Building Websites with Plone http://plonebook.packtpub.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Re: zope 2.8.4 on windows 98
From: J Cameron Cooper Probably this is just in the start sequence. You cannot, of course, run Zope as a service in Win98, since it understands no such thing. Quite possibly you can use runzope or whatever to execute it in a console. I can't say exactly as the traceback has been edited out of this thread (and I've deleted the old messages). Indeed it's in the start sequence and I'm not trying to run it as a service. This is the traceback: Traceback (most recent call last): File C:\Program Files\Zope-2.8.4\lib\python\Zope2\Startup\run.py, line 56, i n ? run() File C:\Program Files\Zope-2.8.4\lib\python\Zope2\Startup\run.py, line 21, i n run starter.prepare() File C:\PROGRAM FILES\ZOPE-2.8.4\lib\python\Zope2\Startup\__init__.py, line 99, in prepare self.registerSignals() File C:\PROGRAM FILES\ZOPE-2.8.4\lib\python\Zope2\Startup\__init__.py, line 320, in registerSignals Signals.registerZopeSignals([self.cfg.eventlog, File C:\PROGRAM FILES\ZOPE-2.8.4\lib\python\Signals\Signals.py, line 116, in registerZopeSignals SignalHandler.registerHandler(SIGTERM, shutdownFastHandler) File C:\PROGRAM FILES\ZOPE-2.8.4\lib\python\Signals\WinSignalHandler.py, lin e 207, in registerHandler sa = createEventSecurityObject() File C:\PROGRAM FILES\ZOPE-2.8.4\lib\python\Signals\WinSignalHandler.py, lin e 84, in createEventSecurityObject sidEveryone.Initialize(ntsecuritycon.SECURITY_WORLD_SID_AUTHORITY,1) pywintypes.error: (120, 'InitializeSid', 'This function is only valid in Win32 m ode.') I wonder if this could a problem of the installer, but doesn't seem very likely as I assume it doesn't change the source code. I didn't have the time to try the tarball in win98SE. I have no idea how much work that could be. Fernando ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] ssh tunnelling webdave
I am having trouble getting webdav to work through ssh tunnels. I hope someone may be able to offer a suggestion. running zope 2.7.4 on FreeBSD 4.9 python 2.4. my zope.cnf file has the following under webdav-source webdav-source-server # valid keys are address and force-connection-close address 8088 force-connection-close off /webdav-source-server the server address is set as follows: ip-address 127.0.0.1 To clarify things, I front this with apache and connect to it using fastcgi connecting to localhost:8089. This works fine and has been for 2 years. I only want to add webdav capability. Since I haven't seen any documentation passing webdav through apache, I thought I would have to resort to stunnel or tunneling through ssh. So, on my ssh client, I do the follwoing ssh -L 8088:localhost:8088 zopeserver.asu.edu I connect and properly authenticate. However, when I attempt to load cadaver on the client, I get a connection timeout. Partial output from netstat -an indicates that all zservers are listening where they should: tcp4 0 0 127.0.0.1.8089 *.* LISTEN tcp4 0 0 127.0.0.1.8088 *.* LISTEN tcp4 0 0 127.0.0.1.8080 *.* LISTEN (this done on the zopeserver) Any advice would be greatly appreciated. -- David BearWhat's the difference between private knowledge and public knowledge? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] export/import problems with plone site
On Mon, 14 Nov 2005, J Cameron Cooper wrote: Faheem Mitha wrote: I successfully exported/imported a Plone site from one Zope instance to another. However, when I try to publish the Plone page, I experience an error. Does anyone know what the problem is here, or what to look for? Is this perhaps a more Plone speciific problem? AttributeError: portlet_forum_latest (Also, an error occurred while attempting to render the standard error message.) Sounds like some forum product is installed on the first instance and not the second. Hi, Thanks for replying. Based on a little Googling, it looks like the problem is with the CMFBoard. This is in the Product folder in the original Zope folder, but attempts to put it in the new Zope folder result in the Zope site hanging when I attempt to access it. Any ideas? Faheem. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] export/import problems with plone site
On Mon, 14 Nov 2005, [ISO-8859-15] Tarek Ziadé wrote: Faheem Mitha wrote: Hi, I successfully exported/imported a Plone site from one Zope instance to another. However, when I try to publish the Plone page, I experience an error. Does anyone know what the problem is here, or what to look for? Hi, It looks like the pagetemplate portlet_forum_latest doesn't exist on the target instance Hi, Thanks for replying. Yes, it looks like portlet_forum_latest comes from CMFBoard. This is in the Product folder in the original Zope instance on Fedora. Sttempts to put it in the new Zope instance on Debian result in the Zope site hanging when I attempt to access it. Any ideas? Faheem. You should also reindex the portal_catalog after the import is finished How should I do this?___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: ssh tunnelling webdave
On Mon, 14 Nov 2005 17:30:36 -0700, David Bear wrote: I am having trouble getting webdav to work through ssh tunnels. I hope someone may be able to offer a suggestion. running zope 2.7.4 on FreeBSD 4.9 python 2.4. my zope.cnf file has the following under webdav-source webdav-source-server # valid keys are address and force-connection-close address 8088 force-connection-close off /webdav-source-server the server address is set as follows: ip-address 127.0.0.1 http://127.0.0.1 To clarify things, I front this with apache and connect to it using fastcgi connecting to localhost:8089. This works fine and has been for 2 years. I only want to add webdav capability. Since I haven't seen any documentation passing webdav through apache, I thought I would have to resort to stunnel or tunneling through ssh. So, on my ssh client, I do the follwoing ssh -L 8088:localhost:8088 zopeserver.asu.edu http://zopeserver.asu.edu I have, as of this morning, just got Zope webdav working through Apache, with Apache only allowing HTTPS access (I assume this is what you are trying to achieve, for security reasons?). No need for SSH tunnels at all. Just some URL rewriting: RewriteRule ^/dav/(.*) http://localhost:9675/VirtualHostBase/https/example.com:9670/VirtualHostRoot/_vh_dav/$1 [P] (host name changed to protect the innocent). I have Zope serving only to 127.0.0.1, serving webdav on a separate port (9675) to HTTP. I have other rewrite rules to cater for ordinary HTTP (non-webdav) access. Apache is serving up HTTPS on port 9670. With my config up above, you prepend '/dav' to the path to access things via webdav e.g. https://example.com:9670/dav/myfolder/ for webdavs access to myfolder instead of https://example.com:9670/myfolder/ for https access. I also have applied a patch to Zope to make it work with Microsoft's latest (failed) attempt to get webdav right. I used the info here: http://teyc.editthispage.com/2005/06/02 .. note: add the line to the OPTIONS method in the file that they mention. I can add a new webdav network place under XP and drag/drop/delete of files works. Of course, the usual Linux clients work without any patching. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] still having problems
ZEO 3.4.2 Zope 2.8.4 ZODB 3.4.2 as relesed with Zope 2.8.4B Python 2.4.2 or 2.3.5 MySQL 4.0.20 MySQL-Python 1.2.0 MYSQLDA 2.0.9 We have just moved from Zope 2.7.6 to Zope 2.8.4 motivated, in part, but the ability to avoid read conflicts under ZODB 3.4.2. We have been having a lot of problems: more conflict errors, release of unreleased locks in MySQL transactions, loss of session variables, and others. We use session variables and MySQL very heavily. All database tables are now transactional (innodb) migrated from the MyISAM tables in use earlier. The connection string, by the way, does not use either the '-' or '+' prefix but relies on a run-time test for the table to be determined to be transactional. All our Zope instances run with ZEO and use a Temporary Store instance for session variables. The ZEO configuration is: filestorage 1 path $INSTANCE/var/Data.fs /filestorage # temporary storage has to be ZEO side %import tempstorage temporarystorage temp name temporary storage for sessioning /temporarystorage and is matched to the Zope configuration: zodb_db main mount-point / # ZODB cache, in number of objects cache-size 5000 zeoclient server 192.168.0.92:8301 storage 1 var $INSTANCE/var # ZEO client cache, in bytes cache-size 20MB # Uncomment to have a persistent disk cache client group1-zeo /zeoclient /zodb_db # # ZEO temporary storage # zodb_db temporary zeoclient server 192.168.0.92:8301 storage temp name zeostorage var $INSTANCE/var /zeoclient mount-point /temp_folder container-class Products.TemporaryFolder.TemporaryContainer /zodb_db Are these configurations correct? The snippet of log shown below show the problem that plagues us: -- 2005-11-14T06:20:40 ERROR txn.4100 Error in tpc_abort() on manager MultiObjectResourceAdapter for Products.ZMySQLDA.db.DB instance at 0x42c6a52c at 1186514860 Traceback (most recent call last): File /usr/local/src/zope/Zope2.8/lib/python/transaction/_transaction.py, line 462, in _cleanup rm.tpc_abort(self) File /usr/local/src/zope/Zope2.8/lib/python/transaction/_transaction.py, line 548, in tpc_abort self.manager.tpc_abort(txn) File /usr/local/src/zope/Zope2.8/lib/python/Shared/DC/ZRDB/TM.py, line 64, in abort try: self._abort() File /opt/zope/zproducts/standard/ZMySQLDA/db.py, line 389, in _abort self._tlock.release() error: release unlocked lock -- 2005-11-14T06:20:40 INFO ZODB conflict error at /classes/class_applications/classaccess/topic_html (658 conflicts since startup at 2005-11-11T01:26:40) -- 2005-11-14T06:20:40 ERROR txn.4100 Failed to abort object: Surrogate oid=object object at 0x4009d470 Traceback (most recent call last): File /usr/local/src/zope/Zope2.8/lib/python/transaction/_transaction.py, line 562, in abort self.manager.abort(o, txn) File /usr/local/src/zope/Zope2.8/lib/python/Shared/DC/ZRDB/TM.py, line 64, in abort try: self._abort() File /opt/zope/zproducts/standard/ZMySQLDA/db.py, line 389, in _abort self._tlock.release() error: release unlocked lock -- 2005-11-14T06:20:40 ERROR txn.4100 Failed to abort resource manager: MultiObjectResourceAdapter for Products.ZMySQLDA.db.DB instance at 0x42c6a52c at 1186514860 Traceback (most recent call last): File /usr/local/src/zope/Zope2.8/lib/python/transaction/_transaction.py, line 489, in abort rm.abort(self) File /usr/local/src/zope/Zope2.8/lib/python/transaction/_transaction.py, line 562, in abort self.manager.abort(o, txn) File /usr/local/src/zope/Zope2.8/lib/python/Shared/DC/ZRDB/TM.py, line 64, in abort try: self._abort() File /opt/zope/zproducts/standard/ZMySQLDA/db.py, line 389, in _abort self._tlock.release() error: release unlocked lock which is a pattern typical of the many such entries: a log entry for an abort which raises a lock error, a report of a conflict error, a report of a failure to abort a Surrogate oid, followed by a second abort of the first instance. We also see frequent KeyError failures in the session variable data structure which suggests that the copy-out/modify/copy-in mechanism used to tickle the persistence mechanism does not run to completion and so the Zope persistence fail and the session variable structure is pruned or removed at some random later time. Some diagnostics are seen which report that the REQUEST['SESSION'] is occasionally removed. Questions: ~~ What is the cause of the locking problem? Does ZMySQLDA/MySQL-Python/Zope have some path which should have called begin to get a lock and did not? What needs to be done to make session variables stable? Does the Temporary Storage method need to be extended to allow for rolling back a transaction? (What's a good approch if this is necessary? Is there any existing product supporting this?) Any other help or advice would be appreciated.
Re: [Zope] still having problems
On Nov 14, 2005, at 9:21 PM, Dennis Allison wrote: ZEO 3.4.2 Zope 2.8.4 ZODB 3.4.2 as relesed with Zope 2.8.4B Python 2.4.2 or 2.3.5 MySQL 4.0.20 MySQL-Python 1.2.0 MYSQLDA 2.0.9 We have just moved from Zope 2.7.6 to Zope 2.8.4 motivated, in part, but the ability to avoid read conflicts under ZODB 3.4.2. We have been having a lot of problems: more conflict errors, release of unreleased locks in MySQL transactions, loss of session variables, and others. Deja vu. ;-) Except for the InnoDB tables. We use session variables and MySQL very heavily. All database tables are now transactional (innodb) migrated from the MyISAM tables in use earlier. The connection string, by the way, does not use either the '-' or '+' prefix but relies on a run-time test for the table to be determined to be transactional. All our Zope instances run with ZEO and use a Temporary Store instance for session variables. The ZEO configuration is: filestorage 1 path $INSTANCE/var/Data.fs /filestorage # temporary storage has to be ZEO side %import tempstorage temporarystorage temp name temporary storage for sessioning /temporarystorage and is matched to the Zope configuration: zodb_db main mount-point / # ZODB cache, in number of objects cache-size 5000 zeoclient server 192.168.0.92:8301 storage 1 var $INSTANCE/var # ZEO client cache, in bytes cache-size 20MB # Uncomment to have a persistent disk cache client group1-zeo /zeoclient /zodb_db # # ZEO temporary storage # zodb_db temporary zeoclient server 192.168.0.92:8301 storage temp name zeostorage var $INSTANCE/var /zeoclient mount-point /temp_folder container-class Products.TemporaryFolder.TemporaryContainer /zodb_db Are these configurations correct? Looks fine to me. The snippet of log shown below show the problem that plagues us: -- 2005-11-14T06:20:40 ERROR txn.4100 Error in tpc_abort() on manager MultiObjectResourceAdapter for Products.ZMySQLDA.db.DB instance at 0x42c6a52c at 1186514860 Traceback (most recent call last): File /usr/local/src/zope/Zope2.8/lib/python/transaction/ _transaction.py, line 462, in _cleanup rm.tpc_abort(self) File /usr/local/src/zope/Zope2.8/lib/python/transaction/ _transaction.py, line 548, in tpc_abort self.manager.tpc_abort(txn) File /usr/local/src/zope/Zope2.8/lib/python/Shared/DC/ZRDB/ TM.py, line 64, in abort try: self._abort() File /opt/zope/zproducts/standard/ZMySQLDA/db.py, line 389, in _abort self._tlock.release() error: release unlocked lock -- 2005-11-14T06:20:40 INFO ZODB conflict error at /classes/class_applications/classaccess/topic_html (658 conflicts since startup at 2005-11-11T01:26:40) -- 2005-11-14T06:20:40 ERROR txn.4100 Failed to abort object: Surrogate oid=object object at 0x4009d470 Traceback (most recent call last): File /usr/local/src/zope/Zope2.8/lib/python/transaction/ _transaction.py, line 562, in abort self.manager.abort(o, txn) File /usr/local/src/zope/Zope2.8/lib/python/Shared/DC/ZRDB/ TM.py, line 64, in abort try: self._abort() File /opt/zope/zproducts/standard/ZMySQLDA/db.py, line 389, in _abort self._tlock.release() error: release unlocked lock -- 2005-11-14T06:20:40 ERROR txn.4100 Failed to abort resource manager: MultiObjectResourceAdapter for Products.ZMySQLDA.db.DB instance at 0x42c6a52c at 1186514860 Traceback (most recent call last): File /usr/local/src/zope/Zope2.8/lib/python/transaction/ _transaction.py, line 489, in abort rm.abort(self) File /usr/local/src/zope/Zope2.8/lib/python/transaction/ _transaction.py, line 562, in abort self.manager.abort(o, txn) File /usr/local/src/zope/Zope2.8/lib/python/Shared/DC/ZRDB/ TM.py, line 64, in abort try: self._abort() File /opt/zope/zproducts/standard/ZMySQLDA/db.py, line 389, in _abort self._tlock.release() error: release unlocked lock which is a pattern typical of the many such entries: a log entry for an abort which raises a lock error, a report of a conflict error, a report of a failure to abort a Surrogate oid, followed by a second abort of the first instance. Is this reproducible on demand or does it only occur under some load? We also see frequent KeyError failures in the session variable data structure which suggests that the copy-out/modify/copy-in mechanism used to tickle the persistence mechanism does not run to completion and so the Zope persistence fail and the session variable structure is pruned or removed at some random later time. Some diagnostics are seen which report that the REQUEST['SESSION'] is occasionally removed. You'll need to provide some error messages for interpretation here. Otherwise it's guesswork. You also likely want to solve the abort problem you explain above first, because at least the first symptom you note above could be a symptom of that (although not the last).