Re: [Zope] Problem with POST and text/xml (work-around)

2009-07-13 Thread Jonathan (dev101)
Problem: zope interprets POST requests with a Content-Type of text/xml to be xmlrpc requests. Work-around (requires Apache as a reverse proxy): use Apache to re-write the Content-Type header of the incoming request before it gets to zope using the following directives: SetEnvIfNoCase

[Zope-Checkins] SVN: Zope/trunk/src/Zope2/App/startup.py Merged c101854 from 2.12 branch

2009-07-13 Thread Hanno Schlichting
Log message for revision 101855: Merged c101854 from 2.12 branch Changed: U Zope/trunk/src/Zope2/App/startup.py -=- Modified: Zope/trunk/src/Zope2/App/startup.py === --- Zope/trunk/src/Zope2/App/startup.py 2009-07-13

[Zope-Checkins] SVN: Zope/branches/2.12/ Removed handling of string exceptions from ZPublisherExceptionHook and reverted the addition of Unauthorized exceptions to be always re-raised. This broke the

2009-07-13 Thread Hanno Schlichting
Log message for revision 101854: Removed handling of string exceptions from ZPublisherExceptionHook and reverted the addition of Unauthorized exceptions to be always re-raised. This broke the tests. Changed: U Zope/branches/2.12/doc/CHANGES.rst U

[Zope-Checkins] SVN: Zope/trunk/ Updated to new versions of zope.app.component, zope.app.zcmlfiles and zope.testing

2009-07-13 Thread Hanno Schlichting
Log message for revision 101856: Updated to new versions of zope.app.component, zope.app.zcmlfiles and zope.testing Changed: U Zope/trunk/doc/CHANGES.rst U Zope/trunk/versions.cfg -=- Modified: Zope/trunk/doc/CHANGES.rst

[Zope-Checkins] SVN: Zope/branches/2.12/ Added support to indexing datetime values to the PluginIndexes DateRangeIndex. The DateIndex already had this feature.

2009-07-13 Thread Hanno Schlichting
Log message for revision 101857: Added support to indexing datetime values to the PluginIndexes DateRangeIndex. The DateIndex already had this feature. Changed: U Zope/branches/2.12/doc/CHANGES.rst U Zope/branches/2.12/src/Products/PluginIndexes/DateRangeIndex/DateRangeIndex.py U

[Zope-Checkins] SVN: Zope/trunk/src/Products/PluginIndexes/DateRangeIndex/ Merged c101857 from 2.12 branch

2009-07-13 Thread Hanno Schlichting
Log message for revision 101858: Merged c101857 from 2.12 branch Changed: U Zope/trunk/src/Products/PluginIndexes/DateRangeIndex/DateRangeIndex.py U Zope/trunk/src/Products/PluginIndexes/DateRangeIndex/tests/test_DateRangeIndex.py -=- Modified:

[Zope-Checkins] SVN: Zope/branches/2.12/ Updated all packages to latest maintenance releases. Also updated ZConfig and pytz to latest features release.

2009-07-13 Thread Hanno Schlichting
Log message for revision 101863: Updated all packages to latest maintenance releases. Also updated ZConfig and pytz to latest features release. Changed: U Zope/branches/2.12/doc/CHANGES.rst U Zope/branches/2.12/versions.cfg -=- Modified: Zope/branches/2.12/doc/CHANGES.rst

[Zope-Checkins] SVN: Zope/trunk/doc/CHANGES.rst Don't mention package updates, which have already happened in Zope 2.12

2009-07-13 Thread Hanno Schlichting
Log message for revision 101864: Don't mention package updates, which have already happened in Zope 2.12 Changed: U Zope/trunk/doc/CHANGES.rst -=- Modified: Zope/trunk/doc/CHANGES.rst === --- Zope/trunk/doc/CHANGES.rst

[Zope-dev] test setup layer sorting

2009-07-13 Thread Reinout van Rees
zope/testing/testrunner/runner.py's order_by_bases() function orders layers by inheritance, basically. So if you've got a FunctionalTestLayer that inherits from some BasicTestLayer, the tests that use the basic test layer will be executed before the functional test layer ones. If there's no

Re: [Zope-dev] test setup layer sorting

2009-07-13 Thread Marius Gedminas
On Mon, Jul 13, 2009 at 09:27:54AM +, Reinout van Rees wrote: zope/testing/testrunner/runner.py's order_by_bases() function orders layers by inheritance, basically. So if you've got a FunctionalTestLayer that inherits from some BasicTestLayer, the tests that use the basic test layer will

Re: [Zope-dev] z3c.form: data manager forPersistentDict/PersistentMapping

2009-07-13 Thread Michael Howitz
Am 12.07.2009 um 01:46 schrieb Roger Ineichen: Hi Michael Betreff: [Zope-dev] z3c.form: data manager forPersistentDict/PersistentMapping Hello, z3c.form.datamanager.DictionaryField is a data manager which is registered for fields on a dict. In its __init__ it checks whether the data

Re: [Zope-dev] z3c.form: data manager for PersistentDict/PersistentMapping

2009-07-13 Thread Michael Howitz
Am 11.07.2009 um 17:43 schrieb Michael Howitz: Hello, z3c.form.datamanager.DictionaryField is a data manager which is registered for fields on a dict. In its __init__ it checks whether the data object is an instance of dict. So this data manager does neither work for UserDict nor

[Zope-dev] Creating new five.* package

2009-07-13 Thread Thomas Lotze
We've started a new package, five.hashedresource, that is supposed to integrate z3c.hashedresource into Zope2. Just to make sure not to step on someone's toes: is it OK to just create such a package in that namespace? -- Thomas ___ Zope-Dev maillist

Re: [Zope-dev] Creating new five.* package

2009-07-13 Thread Hanno Schlichting
On Mon, Jul 13, 2009 at 1:28 PM, Thomas Lotzetho...@thomas-lotze.de wrote: We've started a new package, five.hashedresource, that is supposed to integrate z3c.hashedresource into Zope2. Just to make sure not to step on someone's toes: is it OK to just create such a package in that namespace?

Re: [Zope-dev] test setup layer sorting

2009-07-13 Thread Reinout van Rees
On 2009-07-13, Marius Gedminas mar...@gedmin.as wrote: Whatever grok does that interferes with coverage should be fixed. I did some more debugging. In the end it boils down to this: With z3c.testsetup, you can specify a zcml file at the top of your test file. z3c.testsetup creates a ZCMLLayer

Re: [Zope-dev] test setup layer sorting

2009-07-13 Thread Benji York
On Mon, Jul 13, 2009 at 5:55 AM, Marius Gedminasmar...@gedmin.as wrote: Personally I would much prefer for the unit test layer to be sorted first.  It is already treated specially by zope.testing; I see no harm in hardcoding its sort order. +1 -- Benji York Senior Software Engineer Zope

Re: [Zope-dev] z3c.form: data manager for PersistentDict/PersistentMapping

2009-07-13 Thread Stephan Richter
On Saturday 11 July 2009, Michael Howitz wrote: z3c.form.datamanager.DictionaryField is a data manager which is registered for fields on a dict. In its __init__ it checks whether the data object is an instance of dict. So this data manager does neither work for UserDict nor

Re: [Zope-dev] test setup layer sorting

2009-07-13 Thread Marius Gedminas
On Mon, Jul 13, 2009 at 12:27:50PM +, Reinout van Rees wrote: On 2009-07-13, Marius Gedminas mar...@gedmin.as wrote: Whatever grok does that interferes with coverage should be fixed. I did some more debugging. In the end it boils down to this: With z3c.testsetup, you can specify a

Re: [Zope-dev] test setup layer sorting

2009-07-13 Thread Fred Drake
On Mon, Jul 13, 2009 at 3:36 PM, Marius Gedminasmar...@gedmin.as wrote: Fortunately, the NotImplementedError in ZCMLLayer's tearDown is just a precaution, 99% of the time it is sufficient to run CleanUp.tearDown to get the global state restored to its pristine condition. Keep in mind that a