[Zope-dev] ZCML and 'zopectl test'?
Hi, I added Products/PageTemplates/configure.zcml to register an utility. That works fine when running Zope however zopectl test won't work properly anymore because the utility registration does not seem to happen when running the tests. Bug or feature? Andreas pgpB6Sn9gS6El.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 )
[Zope-dev] SOAP support?
Hi, I think it would be time to support SOAP out-of-the-box in some way in Zope 2. XMLRPC is still a useful functionality but the whole world speak of web-services and Zope should support building web-services at least on the SOAP level. I am sure that would bring back some more attention to Zope as application-server. There are several SOAP related products available on zope.org. Does anyone know about their functionality, pros cons? I know that there is also some SOAP support available for Plone/Archetypes (I think written by Benjamin Saller). Thoughts? Andreas pgp9qlY9TNM6w.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 )
[Zope-dev] Re: ZCML and 'zopectl test'?
Andreas Jung wrote: I added Products/PageTemplates/configure.zcml to register an utility. That works fine when running Zope however zopectl test won't work properly anymore because the utility registration does not seem to happen when running the tests. Bug or feature? Tests need to do their own setup. ZCML isn't magically loaded for tests, unless those tests are run within a layer that loads all ZCML before running the tests. So, there are two options: - modify the setUp() of the tests in question to provideUtility(your_utility) - make the respective tests run in a layer that loads the ZCML. I don't think layer support is on the trunk yet. Whit Morriss has a branch where he added that to Zope 2, but it still hasn't been merged :( Philipp -- http://worldcookery.com -- Professional Zope documentation and training 2nd edition of Web Component Development with Zope 3 is now shipping! ___ 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] Zope 2.10.2 coming up
Hi, I plan to release Zope 2.10.2 in a week or so (don't nail me to a particular date). This will be a beta release because it contains several ZPT changes (as discussed earlier on the list) that must/should be tested. In addition I will merge my latest changes (the UnicodeEncodingConflictResolver stuff) in order to make the handling of UnicodeDecodeErrors (possibly introduced by the changes) configurable. I am aware that this is a new feature which is forbidden by design on a release branch however there is a need to deal with such decoding errors in a reasonable and configurable way. However the default behavior won't change. Andreas pgpffVOdh1drg.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] SOAP support?
Andreas Jung wrote: Hi, I think it would be time to support SOAP out-of-the-box in some way in Zope 2. XMLRPC is still a useful functionality but the whole world speak of web-services and Zope should support building web-services at least on the SOAP level. I am sure that would bring back some more attention to Zope as application-server. There are several SOAP related products available on zope.org. Does anyone know about their functionality, pros cons? I know that there is also some SOAP support available for Plone/Archetypes (I think written by Benjamin Saller). i like the idea ver much, we have been doing a number of projects that needed SOAP connectivity. we always used pythons HTTP/URL-libs to connect to the services. therefore I can not comment available Zope/Plone based tools. Using SOAP implementing these project not only might have been more straight forward but would have left the client (even) more confident to have chosen the right tool. robert begin:vcard fn:robert rottermann n:rottermann;robert email;internet:[EMAIL PROTECTED] tel;work:031 333 10 20 tel;fax:031 333 10 23 tel;home:031 333 36 03 x-mozilla-html:FALSE version:2.1 end:vcard ___ 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] Zope Tests: 7 OK
Summary of messages to the zope-tests list. Period Sat Jan 6 12:00:00 2007 UTC to Sun Jan 7 12:00:00 2007 UTC. There were 7 messages: 7 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.6 Python-2.1.3 : Linux From: Zope Unit Tests Date: Sat Jan 6 21:09:00 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006985.html Subject: OK : Zope-2.6 Python-2.3.6 : Linux From: Zope Unit Tests Date: Sat Jan 6 21:10:31 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006986.html Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Sat Jan 6 21:12:01 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006987.html Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Unit Tests Date: Sat Jan 6 21:13:31 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006988.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Unit Tests Date: Sat Jan 6 21:15:01 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006989.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Unit Tests Date: Sat Jan 6 21:16:31 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006990.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Sat Jan 6 21:18:01 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-January/006991.html ___ 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] SOAP support?
On 1/7/07, Andreas Jung [EMAIL PROTECTED] wrote: Hi, I think it would be time to support SOAP out-of-the-box in some way in Zope 2. XMLRPC is still a useful functionality but the whole world speak of web-services and Zope should support building web-services at least on the SOAP level. I am sure that would bring back some more attention to Zope as application-server. There are several SOAP related products available on zope.org. Does anyone know about their functionality, pros cons? I know that there is also some SOAP support available for Plone/Archetypes (I think written by Benjamin Saller). Thoughts? We implemented a soap service one year ago, in the end, I was parsing the incoming stream, and generated the soap messages by hand. The available tools at that time were soappy with a zope2 wrapper and zsi 2.0 soappy was already in a stage where the developers said that they dont maintain it any more, and people should use zsi. At that time zsi was mostly dead, but some people were writing, there would be a new version soon. That actually happened, but I never looked into that 2.0 version, because I could read and write soap requests already. The old zsi looked very complicated, and threw errors at my wsdl spec. A bit off topic but I still want to throw it in: If you have the freedom to decide whether you offer soap services or not, please read these texts during your evaluation: http://wanderingbarque.com/nonintersecting/2006/11/15/the-s-stands-for-simple/ http://www.somebits.com/weblog/tech/bad/whySoapSucks.html Especially the strong typing bites us hard sometimes. If I had to support a soap interface as a server, I would receive a wsdl spec file, and would have to implement the message stubs, so for this part, I would need a wsdl parser that creates method stubs. If I would be a client, I would receive a wsdl spec file and would need a wsdl parser that creates method stubs, that actually make type checks of what I send. In the real worlds I live in, it would not help to make every method automatically available as a soap service, because there are ugly and subtle impendance mismatches, for example, if you would want to transfer sets instead of lists. It would be serious pita, to write a method so that it adheres to a complex, given wsdl spec file, and that is probably most often the case. So maybe, soap support would just mean a good documentation of integration of zsi generated code in your product code. Best regards, Patrick Gerken ___ 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: Zope 2.10.2 coming up
Hi! Andreas Jung wrote: I plan to release Zope 2.10.2 in a week or so (don't nail me to a particular date). The Zope 2.10 branch still uses Five 1.5.1. There are a few changes on the Five 1.5 branch (including a security fix) which should become part of Zope 2.10.2. I volunteer to resolve this as follows: Five releases are now linked tightly to specific Zope releases, so it doesn't make much sense to do still separate Five releases. See this thread: http://codespeak.net/pipermail/z3-five/2006q4/001889.html If there are no objections, I'll stitch the Five 1.5 branch HEAD directly into the Zope 2.10 branch (without using svn externals) and Five trunk HEAD into the Zope trunk. This would mean that from now on Five 1.5 and 1.6 are maintained as part of Zope 2. In fact there will be no Five 1.5.2 or 1.6 because there will no longer be any separate releases. Thoughts? Cheers, Yuppie ___ 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: Zope 2.10.2 coming up
--On 7. Januar 2007 14:48:43 +0100 yuppie [EMAIL PROTECTED] wrote: If there are no objections, I'll stitch the Five 1.5 branch HEAD directly into the Zope 2.10 branch (without using svn externals) and Five trunk HEAD into the Zope trunk. This would mean that from now on Five 1.5 and 1.6 are maintained as part of Zope 2. In fact there will be no Five 1.5.2 or 1.6 because there will no longer be any separate releases. I don't have a problem with this approach. In fact the change would make clear which version belongs to what. Andreas pgptkCcNo9gqY.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] Re: ZCML and 'zopectl test'?
On Sun, Jan 07, 2007 at 12:14:32PM +0100, Philipp von Weitershausen wrote: So, there are two options: - modify the setUp() of the tests in question to provideUtility(your_utility) - make the respective tests run in a layer that loads the ZCML. I don't think layer support is on the trunk yet. Whit Morriss has a branch where he added that to Zope 2, but it still hasn't been merged :( The testrunner in zope 2 has supported layers for quite a while. I currently use layers in my tests with zope 2.9.1. TestLayersHowTo on zopewiki.org gives a working example. Or do you mean something else by layer support? -- Paul Winkler ___ 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: ZCML and 'zopectl test'?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philipp von Weitershausen wrote: Andreas Jung wrote: I added Products/PageTemplates/configure.zcml to register an utility. That works fine when running Zope however zopectl test won't work properly anymore because the utility registration does not seem to happen when running the tests. Bug or feature? Tests need to do their own setup. ZCML isn't magically loaded for tests, unless those tests are run within a layer that loads all ZCML before running the tests. So, there are two options: - modify the setUp() of the tests in question to provideUtility(your_utility) - make the respective tests run in a layer that loads the ZCML. I don't think layer support is on the trunk yet. Whit Morriss has a branch where he added that to Zope 2, but it still hasn't been merged :( I'm pretty sure that layer support is on the 2.10 branch and the trunk: the CMF trunk tests now depend on it:: $ bin/zopectl show zdctl/zdrun options: schemafile: '/home/tseaver/projects/Zope-CVS/Zope-2.10-branch/lib/python/Zope2/Startup/zopeschema.xml' ... $ bin/zopectl test Running tests via: /home/tseaver/projects/Zope-CVS/bin/python2.4 /home/tseaver/projects/Zope-CVS/Zope-2.10-branch/bin/test.py -v - --config-file /home/tseaver/projects/CMF/cmf_test/z210_cmfhead/etc/zope.conf Parsing /home/tseaver/projects/CMF/cmf_test/z210_cmfhead/etc/zope.conf Running tests at level 1 Running unit tests: Running: . Ran 809 tests with 0 failures and 0 errors in 11.052 seconds. Running Products.CMFCore.testing.FunctionalZCMLLayer tests: Set up Products.CMFCore.testing.FunctionalZCMLLayer in 1.603 seconds. ... Tearing down left over layers: Tear down Products.GenericSetup.testing.ExportImportZCMLLayer in 0.000 seconds. Total: 1351 tests, 0 failures, 0 errors Tres. - -- === Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFoU2z+gerLs4ltQ4RAmxhAKDUo3oEHv8bUIoW/dLMmpeHvMWvdACgy1wU 0P+mwfqR/0MVCICtu5AZ568= =fuE+ -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] Re: ZCML and 'zopectl test'?
On 7 Jan 2007, at 20:44 , Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philipp von Weitershausen wrote: Andreas Jung wrote: I added Products/PageTemplates/configure.zcml to register an utility. That works fine when running Zope however zopectl test won't work properly anymore because the utility registration does not seem to happen when running the tests. Bug or feature? Tests need to do their own setup. ZCML isn't magically loaded for tests, unless those tests are run within a layer that loads all ZCML before running the tests. So, there are two options: - modify the setUp() of the tests in question to provideUtility(your_utility) - make the respective tests run in a layer that loads the ZCML. I don't think layer support is on the trunk yet. Whit Morriss has a branch where he added that to Zope 2, but it still hasn't been merged :( I'm pretty sure that layer support is on the 2.10 branch and the trunk: the CMF trunk tests now depend on it:: I phrased that wrongly. Layer support from the test runner perspective is in Zope 2 since Zope 2.9. But Zope 2 itself actually using test layers is not in any release branch. $ bin/zopectl show zdctl/zdrun options: schemafile: '/home/tseaver/projects/Zope-CVS/Zope-2.10-branch/lib/python/Zope2/ Startup/zopeschema.xml' ... $ bin/zopectl test Running tests via: /home/tseaver/projects/Zope-CVS/bin/python2.4 /home/tseaver/projects/Zope-CVS/Zope-2.10-branch/bin/test.py -v - --config-file /home/tseaver/projects/CMF/cmf_test/z210_cmfhead/etc/zope.conf Parsing /home/tseaver/projects/CMF/cmf_test/z210_cmfhead/etc/zope.conf Running tests at level 1 Running unit tests: Running: .. .. .. .. .. .. .. .. .. .. .. ... Ran 809 tests with 0 failures and 0 errors in 11.052 seconds. Running Products.CMFCore.testing.FunctionalZCMLLayer tests: Set up Products.CMFCore.testing.FunctionalZCMLLayer in 1.603 seconds. ... Tearing down left over layers: Tear down Products.GenericSetup.testing.ExportImportZCMLLayer in 0.000 seconds. Total: 1351 tests, 0 failures, 0 errors Tres. - -- === Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFoU2z+gerLs4ltQ4RAmxhAKDUo3oEHv8bUIoW/dLMmpeHvMWvdACgy1wU 0P+mwfqR/0MVCICtu5AZ568= =fuE+ -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] Re: ZCML and 'zopectl test'?
I just made ZopeTestCase defer all loading until it's layer(essentially deferring the import of ZopeLite which is sort of a subpar way to handle things and using a registry to handle installProducts). most of what happens in zopelite itself should be the layer(rather than carefully isolating the import) http://svn.zope.org/Zope/branches/whitmo-2.10-layers/ lurker, comments? from what I remember, the only issue was with the sandbox tests(for functional tests). basically in sandboxed test you need a fresh zodb for each test iirc. -w ___ 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 )