Re: [Zope-dev] zope-tests - FAILED: 2, OK: 20, UNKNOWN: 1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/07/2012 01:52 AM, Marius Gedminas wrote: [3]FAILED winbot / zope.app.i18n_py_265_32 https://mail.zope.org/pipermail/zope-tests/2012-December/069796.html Error in test testNoTargetLanguage (zope.app.i18n.tests.test_translationdomain.TestTranslationDomain) Traceback (most recent call last): File c:\Python26_32\lib\unittest.py, line 279, in run testMethod() File c:\eggs\zope.i18n-3.8.0-py2.6.egg\zope\i18n\tests\test_itranslationdomain.py, line 99, in testNoTargetLanguage eq(translate('short_greeting', context=context, default=42), 42) File c:\buildslave\zope.app.i18n\build\src\zope\app\i18n\translationdomain.py, line 74, in translate catalog_names = self._catalogs.get(target_language, []) TypeError: Object has default comparison Here, the 'target_langeage' returned by the negotiator is None, which the OOBTree is refusing to treat as a key (because its comparison semantics are undefined across process boundaries / Python versions):: from BTrees.OOBTree import OOBTree x = OOBTree() x[None] = 1 Traceback (most recent call last): File stdin, line 1, in module TypeError: Object has default comparison Such keys haven't been allowed since:: r117933 | jim | 2010-10-26 17:14:00 -0400 (Tue, 26 Oct 2010) | 7 lines Bug Fixed - BTrees allowed object keys with insane comparison. (Comparison inherited from object, which compares based on in-process address.) Now BTrees raise TypeError is an attempt is made to save a key with comparison inherited from object. (This doesn't apply to old-style class instances.) Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlDCD/wACgkQ+gerLs4ltQ4ZNgCdHTNC8Z0u5wRYsDUVUzSrZACi YCEAoM1VOupQN9VlyLOdrxcypuQtOWZ/ =bVKN -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope-tests - FAILED: 2, OK: 20, UNKNOWN: 1
2012/12/7 Tres Seaver tsea...@palladion.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/07/2012 01:52 AM, Marius Gedminas wrote: [3]FAILED winbot / zope.app.i18n_py_265_32 https://mail.zope.org/pipermail/zope-tests/2012-December/069796.html Error in test testNoTargetLanguage (zope.app.i18n.tests.test_translationdomain.TestTranslationDomain) Traceback (most recent call last): File c:\Python26_32\lib\unittest.py, line 279, in run testMethod() File c:\eggs\zope.i18n-3.8.0-py2.6.egg\zope\i18n\tests\test_itranslationdomain.py, line 99, in testNoTargetLanguage eq(translate('short_greeting', context=context, default=42), 42) File c:\buildslave\zope.app.i18n\build\src\zope\app\i18n\translationdomain.py, line 74, in translate catalog_names = self._catalogs.get(target_language, []) TypeError: Object has default comparison Here, the 'target_langeage' returned by the negotiator is None, which the OOBTree is refusing to treat as a key (because its comparison semantics are undefined across process boundaries / Python versions):: from BTrees.OOBTree import OOBTree x = OOBTree() x[None] = 1 Traceback (most recent call last): File stdin, line 1, in module TypeError: Object has default comparison Such keys haven't been allowed since:: r117933 | jim | 2010-10-26 17:14:00 -0400 (Tue, 26 Oct 2010) | 7 lines Bug Fixed - BTrees allowed object keys with insane comparison. (Comparison inherited from object, which compares based on in-process address.) Now BTrees raise TypeError is an attempt is made to save a key with comparison inherited from object. (This doesn't apply to old-style class instances.) The error happens in get, not set, should it? Otherwise, a patch for zope.app.i18n to fix this case is attached (not committed). -- Gediminas zopeappi18n-with-zodb4.diff Description: Binary data ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] DateTime issues with negative offsets
Hi all, I found a issue with the DateTime module. For what I could see the functions _tzoffset2rfc822zone and _tzoffset2iso8601zone, that are used to return a zone specification, have problems with negative offset. This not happens with all the negative offset, just when the hour is not rounded and have minutes. Functions '_tzoffset2rfc822zone' and '_tzoffset2iso8601zonethat' are used in the mtehods 'DateTime.ISO8601' and 'DateTime.rfc822'. I think it may be clearer with some examples: dt = DateTime('2004/06/14 14:30:15 GMT+0430') dt.rfc822() 'Mon, 14 Jun 2004 14:30:15 +0430' dt.ISO8601() '2004-06-14T14:30:15+04:30' This is Ok. dt = DateTime('2004/06/14 14:30:15 GMT-0400') dt.rfc822() 'Mon, 14 Jun 2004 14:30:15 -0400' dt.ISO8601() '2004-06-14T14:30:15-04:00' This is Ok. dt = DateTime('2004/06/14 14:30:15 GMT-0430') dt.rfc822() 'Mon, 14 Jun 2004 14:30:15 -0530' dt.ISO8601() '2004-06-14T14:30:15-05:30' This is not. As you could see, the offset printed is -0530. This is the code for both functions def _tzoffset2rfc822zone(seconds): Takes an offset, such as from _tzoffset(), and returns an rfc822 compliant zone specification. Please note that the result of _tzoffset() is the negative of what time.localzone and time.altzone is. return %+03d%02d % divmod((seconds / 60), 60) def _tzoffset2iso8601zone(seconds): Takes an offset, such as from _tzoffset(), and returns an ISO 8601 compliant zone specification. Please note that the result of _tzoffset() is the negative of what time.localzone and time.altzone is. return %+03d:%02d % divmod((seconds / 60), 60) I think that the error come from the way in where the integer division works. secconds = (4 * 60 + 30) * 60 secconds 16200 divmod((secconds/60), 60) (4, 30) divmod((-secconds/60), 60) (-5, 30) secconds / 60 270 270 / 60 4 - 270 / 60 -5 I hope be clear and not to much verbose, but this is my first mail to the list. Cheers and sorry for my English :) nueces ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] zope-tests - FAILED: 2, OK: 20, UNKNOWN: 1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/07/2012 01:11 PM, Gediminas Paulauskas wrote: 2012/12/7 Tres Seaver tsea...@palladion.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/07/2012 01:52 AM, Marius Gedminas wrote: [3]FAILED winbot / zope.app.i18n_py_265_32 https://mail.zope.org/pipermail/zope-tests/2012-December/069796.html Error in test testNoTargetLanguage (zope.app.i18n.tests.test_translationdomain.TestTranslationDomain) Traceback (most recent call last): File c:\Python26_32\lib\unittest.py, line 279, in run testMethod() File c:\eggs\zope.i18n-3.8.0-py2.6.egg\zope\i18n\tests\test_itranslationdomain.py, line 99, in testNoTargetLanguage eq(translate('short_greeting', context=context, default=42), 42) File c:\buildslave\zope.app.i18n\build\src\zope\app\i18n\translationdomain.py, line 74, in translate catalog_names = self._catalogs.get(target_language, []) TypeError: Object has default comparison Here, the 'target_langeage' returned by the negotiator is None, which the OOBTree is refusing to treat as a key (because its comparison semantics are undefined across process boundaries / Python versions):: from BTrees.OOBTree import OOBTree x = OOBTree() x[None] = 1 Traceback (most recent call last): File stdin, line 1, in module TypeError: Object has default comparison Such keys haven't been allowed since:: r117933 | jim | 2010-10-26 17:14:00 -0400 (Tue, 26 Oct 2010) | 7 lines Bug Fixed - BTrees allowed object keys with insane comparison. (Comparison inherited from object, which compares based on in-process address.) Now BTrees raise TypeError is an attempt is made to save a key with comparison inherited from object. (This doesn't apply to old-style class instances.) The error happens in get, not set, should it? The C code throws the error whenever dealing with a user-supplied key which cannot be safely compared to existing keys. Otherwise, a patch for zope.app.i18n to fix this case is attached (not committed). +1 for your patch. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlDCQqMACgkQ+gerLs4ltQ7boACgjbWfWCKTMl0eTKDjkcbCcHKi OZkAoNIFpN2PGERjLRnXhk/IHK9cK7iD =ug61 -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Error suitable python version
Hi Peppe, although I don't think your issue is related to the development of Zope, if you don't keep this on mailing list no one else will see any possible issues- Am 07.12.2012, 19:25 Uhr, schrieb peppe scuglia peppe...@gmail.com: Hi When i try to install with Bin/easy_install -i http://download.zope.org/Zope2.2.13.19 Zope2 Why on earth are you do want to do that? bin/pip install Zope2 works fine. Note, unless you have a clear idea of exactly what you want to do it's unusual to install Zope directly like that and Zope is a little too big just to try out. Charlie -- Charlie Clark Managing Director Clark Consulting Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] zope-tests - FAILED: 2, OK: 21
This is the summary for test reports received on the zope-tests list between 2012-12-06 00:00:00 UTC and 2012-12-07 00:00:00 UTC: See the footnotes for test reports of unsuccessful builds. An up-to date view of the builders is also available in our buildbot documentation: http://docs.zope.org/zopetoolkit/process/buildbots.html#the-nightly-builds Reports received Successful - zopetoolkit_trunk - Build # 99 Successful - zopetoolkit_trunk_app - Build # 83 Zope-2.10 Python-2.4.6 : Linux Zope-2.11 Python-2.4.6 : Linux Zope-2.12 Python-2.6.8 : Linux Zope-2.13 Python-2.6.8 : Linux Zope-2.13 Python-2.7.3 : Linux Zope-trunk Python-2.6.8 : Linux Zope-trunk Python-2.7.3 : Linux winbot / ZODB_dev py_265_win32 winbot / ZODB_dev py_265_win64 winbot / ZODB_dev py_270_win32 winbot / ZODB_dev py_270_win64 [1]winbot / z3c.recipe.paster_py_265_32 [2]winbot / zope.app.i18n_py_265_32 winbot / ztk_10 py_254_win32 winbot / ztk_10 py_265_win32 winbot / ztk_10 py_265_win64 winbot / ztk_11 py_254_win32 winbot / ztk_11 py_265_win32 winbot / ztk_11 py_265_win64 winbot / ztk_11 py_270_win32 winbot / ztk_11 py_270_win64 Non-OK results -- [1]FAILED winbot / z3c.recipe.paster_py_265_32 https://mail.zope.org/pipermail/zope-tests/2012-December/069820.html [2]FAILED winbot / zope.app.i18n_py_265_32 https://mail.zope.org/pipermail/zope-tests/2012-December/069819.html ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )