[Zope-Annce] REMINDER: Planned server and list outage LATER TODAY
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reminder: Today at 20:00 UTC (less than 12 hours from now) one of the Zope Foundation-maintained servers will be physically moved to a different data center by our hosting provider. The server will be shut down at around 20:00 UTC and, according to the hosting provider, become available again no later than 05:30 UTC tomorrow (Friday, May 28). This outage will affect several websites as well as the mailing list service. No mail sent to the lists will be lost, though, it will just be queued up on our secondary mail relay, which is unaffected by this move. Once the main server comes back up it will be delivered. Services affected = - the docs.zope.org website - the download.zope.org website - all zope.org mailing lists and the lists.zope.org website Server shutdown === Thursday, May 27 (TODAY) 20:00 UTC - 22:00 CEST/Berlin - 16:00 EDT/New York - May 28 06:00 EST/Sydney Server start On or before Friday, May 28 (TOMORROW) 05:30 UTC - 07:30 CEST/Berlin - 01:30 EDT/New York - 15:30 EST/Sydney jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkv+LTYACgkQRAx5nvEhZLIg4gCeKpPV3ZZVinNhDA8F9Rj1KV0Q nkMAnj1r+faNJnWhEKIrYqhZYUITipJx =EDSt -END PGP SIGNATURE- ___ Zope-Announce maillist - Zope-Announce@zope.org https://mail.zope.org/mailman/listinfo/zope-announce Zope-Announce for Announcements only - no discussions (Related lists - Users: https://mail.zope.org/mailman/listinfo/zope Developers: https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope-Checkins] SVN: Zope/branches/2.12/ Fix processInputs() so that it no longer stomps on things like :records or :int:list
Log message for revision 112780: Fix processInputs() so that it no longer stomps on things like :records or :int:list Changed: U Zope/branches/2.12/doc/CHANGES.rst U Zope/branches/2.12/src/Products/Five/browser/decode.py U Zope/branches/2.12/src/Products/Five/browser/tests/test_decode.py -=- Modified: Zope/branches/2.12/doc/CHANGES.rst === --- Zope/branches/2.12/doc/CHANGES.rst 2010-05-27 12:12:28 UTC (rev 112779) +++ Zope/branches/2.12/doc/CHANGES.rst 2010-05-27 13:27:15 UTC (rev 112780) @@ -11,6 +11,10 @@ Bugs Fixed ++ +- Five's processInputs() would stomp on :list or :tuple values that contained + ints or other non-strings, would clear out :records entirely, and would not + do anything for :record fields. + - LP #143261: The (very old-fashioned) Zope2.debug interactive request debugger still referred to the toplevel module ``Zope``, which was renamed to ``Zope2`` a long time ago. Modified: Zope/branches/2.12/src/Products/Five/browser/decode.py === --- Zope/branches/2.12/src/Products/Five/browser/decode.py 2010-05-27 12:12:28 UTC (rev 112779) +++ Zope/branches/2.12/src/Products/Five/browser/decode.py 2010-05-27 13:27:15 UTC (rev 112780) @@ -32,23 +32,40 @@ pass return text +def processInputValue(value, charsets): +Recursively look for values (e.g. elements of lists, tuples or dicts) +and attempt to decode. + + +if isinstance(value, list): +return [processInputValue(v, charsets) for v in value] +elif isinstance(value, tuple): +return tuple([processInputValue(v, charsets) for v in value]) +elif isinstance(value, dict): +for k, v in value.items(): +value[k] = processInputValue(v, charsets) +return value +elif isinstance(value, str): +return _decode(value, charsets) +else: +return value + def processInputs(request, charsets=None): +Process the values in request.form to decode strings to unicode, using +the passed-in list of charsets. If none are passed in, look up the user's +preferred charsets. The default is to use utf-8. + + if charsets is None: -envadapter = IUserPreferredCharsets(request) -charsets = envadapter.getPreferredCharsets() or ['utf-8'] - +envadapter = IUserPreferredCharsets(request, None) +if envadapter is None: +charsets = ['utf-8'] +else: +charsets = envadapter.getPreferredCharsets() or ['utf-8'] + for name, value in request.form.items(): if not (isCGI_NAME(name) or name.startswith('HTTP_')): -if isinstance(value, str): -request.form[name] = _decode(value, charsets) -elif isinstance(value, list): -request.form[name] = [ _decode(val, charsets) - for val in value - if isinstance(val, str) ] -elif isinstance(value, tuple): -request.form[name] = tuple([ _decode(val, charsets) - for val in value - if isinstance(val, str) ]) +request.form[name] = processInputValue(value, charsets) def setPageEncoding(request): Set the encoding of the form page via the Content-Type header. Modified: Zope/branches/2.12/src/Products/Five/browser/tests/test_decode.py === --- Zope/branches/2.12/src/Products/Five/browser/tests/test_decode.py 2010-05-27 12:12:28 UTC (rev 112779) +++ Zope/branches/2.12/src/Products/Five/browser/tests/test_decode.py 2010-05-27 13:27:15 UTC (rev 112780) @@ -46,6 +46,42 @@ processInputs(request, charsets) request.form['foo'] == (u'f\xf6\xf6',) True + +Ints in lists are not lost:: + + request.form['foo'] = [1, 2, 3] + processInputs(request, charsets) + request.form['foo'] == [1, 2, 3] + True + +Ints in tuples are not lost:: + + request.form['foo'] = (1, 2, 3,) + processInputs(request, charsets) + request.form['foo'] == (1, 2, 3) + True + +Mixed lists work: + + request.form['foo'] = [u'f\xf6\xf6'.encode('iso-8859-1'), 2, 3] + processInputs(request, charsets) + request.form['foo'] == [u'f\xf6\xf6', 2, 3] + True + +Mixed dicts work: + + request.form['foo'] = {'foo': u'f\xf6\xf6'.encode('iso-8859-1'), 'bar': 2} + processInputs(request, charsets) + request.form['foo'] == {'foo': u'f\xf6\xf6', 'bar': 2} + True + +Deep recursion works: + + request.form['foo'] = [{'foo': u'f\xf6\xf6'.encode('iso-8859-1'), 'bar': 2}, {'foo': uone, 'bar': 3}] + processInputs(request, charsets) +
[Zope-Checkins] SVN: Zope/trunk/src/Products/Five/browser/ Merge c112780 from 2.12 branch
Log message for revision 112781: Merge c112780 from 2.12 branch Changed: U Zope/trunk/src/Products/Five/browser/decode.py U Zope/trunk/src/Products/Five/browser/tests/test_decode.py -=- Modified: Zope/trunk/src/Products/Five/browser/decode.py === --- Zope/trunk/src/Products/Five/browser/decode.py 2010-05-27 13:27:15 UTC (rev 112780) +++ Zope/trunk/src/Products/Five/browser/decode.py 2010-05-27 13:30:02 UTC (rev 112781) @@ -32,23 +32,40 @@ pass return text +def processInputValue(value, charsets): +Recursively look for values (e.g. elements of lists, tuples or dicts) +and attempt to decode. + + +if isinstance(value, list): +return [processInputValue(v, charsets) for v in value] +elif isinstance(value, tuple): +return tuple([processInputValue(v, charsets) for v in value]) +elif isinstance(value, dict): +for k, v in value.items(): +value[k] = processInputValue(v, charsets) +return value +elif isinstance(value, str): +return _decode(value, charsets) +else: +return value + def processInputs(request, charsets=None): +Process the values in request.form to decode strings to unicode, using +the passed-in list of charsets. If none are passed in, look up the user's +preferred charsets. The default is to use utf-8. + + if charsets is None: -envadapter = IUserPreferredCharsets(request) -charsets = envadapter.getPreferredCharsets() or ['utf-8'] - +envadapter = IUserPreferredCharsets(request, None) +if envadapter is None: +charsets = ['utf-8'] +else: +charsets = envadapter.getPreferredCharsets() or ['utf-8'] + for name, value in request.form.items(): if not (isCGI_NAME(name) or name.startswith('HTTP_')): -if isinstance(value, str): -request.form[name] = _decode(value, charsets) -elif isinstance(value, list): -request.form[name] = [ _decode(val, charsets) - for val in value - if isinstance(val, str) ] -elif isinstance(value, tuple): -request.form[name] = tuple([ _decode(val, charsets) - for val in value - if isinstance(val, str) ]) +request.form[name] = processInputValue(value, charsets) def setPageEncoding(request): Set the encoding of the form page via the Content-Type header. Modified: Zope/trunk/src/Products/Five/browser/tests/test_decode.py === --- Zope/trunk/src/Products/Five/browser/tests/test_decode.py 2010-05-27 13:27:15 UTC (rev 112780) +++ Zope/trunk/src/Products/Five/browser/tests/test_decode.py 2010-05-27 13:30:02 UTC (rev 112781) @@ -46,6 +46,42 @@ processInputs(request, charsets) request.form['foo'] == (u'f\xf6\xf6',) True + +Ints in lists are not lost:: + + request.form['foo'] = [1, 2, 3] + processInputs(request, charsets) + request.form['foo'] == [1, 2, 3] + True + +Ints in tuples are not lost:: + + request.form['foo'] = (1, 2, 3,) + processInputs(request, charsets) + request.form['foo'] == (1, 2, 3) + True + +Mixed lists work: + + request.form['foo'] = [u'f\xf6\xf6'.encode('iso-8859-1'), 2, 3] + processInputs(request, charsets) + request.form['foo'] == [u'f\xf6\xf6', 2, 3] + True + +Mixed dicts work: + + request.form['foo'] = {'foo': u'f\xf6\xf6'.encode('iso-8859-1'), 'bar': 2} + processInputs(request, charsets) + request.form['foo'] == {'foo': u'f\xf6\xf6', 'bar': 2} + True + +Deep recursion works: + + request.form['foo'] = [{'foo': u'f\xf6\xf6'.encode('iso-8859-1'), 'bar': 2}, {'foo': uone, 'bar': 3}] + processInputs(request, charsets) + request.form['foo'] == [{'foo': u'f\xf6\xf6', 'bar': 2}, {'foo': uone, 'bar': 3}] + True + def test_suite(): ___ Zope-Checkins maillist - Zope-Checkins@zope.org https://mail.zope.org/mailman/listinfo/zope-checkins
Re: [Zope-dev] pypi access for zope.password Was: pypi access for zope.app.authentication and zope.password
On 05/26/2010 05:59 PM, Jan-Wijbrand Kolman wrote: On 5/26/10 08:46 , Stephan Richter wrote: On Wednesday, May 26, 2010, Jan-Wijbrand Kolman wrote: Could someone grant me pypi access to zope.app.authentication and zope.password? Done. Thanks. However, I see myself in the list of package owners for zope.app.authentication now, but not for zope.password. Could someone please grant me (username jw) access to zope.password as well? Thanks in advance! According to PyPI jw has Owner privileges already (by now). Christian -- Christian Theune · c...@gocept.com gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1 Zope and Plone consulting and development ___ 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] pypi access for zope.password Was: pypi access for zope.app.authentication and zope.password
On 5/27/10 8:12 AM, Christian Theune wrote: Could someone please grant me (username jw) access to zope.password as well? Thanks in advance! According to PyPI jw has Owner privileges already (by now). Uli granted me access, but his reply to me about it didn't make it to the list somehow. Sorry for the confusion and thanks! regards, jw ___ 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] REMINDER: Planned server and list outage LATER TODAY
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reminder: Today at 20:00 UTC (less than 12 hours from now) one of the Zope Foundation-maintained servers will be physically moved to a different data center by our hosting provider. The server will be shut down at around 20:00 UTC and, according to the hosting provider, become available again no later than 05:30 UTC tomorrow (Friday, May 28). This outage will affect several websites as well as the mailing list service. No mail sent to the lists will be lost, though, it will just be queued up on our secondary mail relay, which is unaffected by this move. Once the main server comes back up it will be delivered. Services affected = - the docs.zope.org website - the download.zope.org website - all zope.org mailing lists and the lists.zope.org website Server shutdown === Thursday, May 27 (TODAY) 20:00 UTC - 22:00 CEST/Berlin - 16:00 EDT/New York - May 28 06:00 EST/Sydney Server start On or before Friday, May 28 (TOMORROW) 05:30 UTC - 07:30 CEST/Berlin - 01:30 EDT/New York - 15:30 EST/Sydney jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkv+LTYACgkQRAx5nvEhZLIg4gCeKpPV3ZZVinNhDA8F9Rj1KV0Q nkMAnj1r+faNJnWhEKIrYqhZYUITipJx =EDSt -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 )
[Zope-dev] zope.testing.testrunner: The command line is too long
Hello, Does anyone know why the testrunner of zope.testing-3.5.6 wants to launch the subprocess with the following parameteres? ... c:\\2\\zope.tales-3.4.0-py2.5.egg --default --test-path --default c:\\2 \\zope.testbrowser-3.4.2-py2.5.egg --default --test-path --default c:\\2 \\zope.testing-3.5.6-py2.5.egg --default --test-path --default c:\\2\\zo pe.testrecorder-0.3.0-py2.5.egg --default --test-path --default c:\\2\\z ope.thread-3.4-py2.5.egg --default --test-path --default c:\\2\\zope.tra versing-3.4.1-py2.5.egg --default --test-path --default c:\\2\\zope.view let-3.4.2-py2.5.egg --default --test-path --default c:\\2\\zope.wfmc-3.4 .0-py2.5.egg --default --test-path --default c:\\2\\zope.xmlpickle-3.4.0 -py2.5.egg -vv1 That causes Traceback (most recent call last): File C:\1\34\test\bin\test-script.py, line 341, in module '--test-path', 'c:\\2\\zope.xmlpickle-3.4.0-py2.5.egg', File c:\2\zope.testing-3.5.6-py2.5.egg\zope\testing\testrunner.py, line 932, in run failed = not run_with_options(options) File c:\2\zope.testing-3.5.6-py2.5.egg\zope\testing\testrunner.py, line 1105 , in run_with_options failures, errors) File c:\2\zope.testing-3.5.6-py2.5.egg\zope\testing\testrunner.py, line 1326 , in resume_tests raise SubprocessError(line+suberr.read()) zope.testing.testrunner.SubprocessError: The command line is too long. on win2003 server x64. This is while trying to run the tests of KGS3.4.1 -- Best regards, Adam GROSZER mailto:agros...@gmail.com -- Quote of the day: Just remember- when you think all is lost, the future remains. - Bob Goddard ___ 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.server: Exception during task logging
On 2010-04-14 14:58:47 +0200, Christian Zagrodnick c...@gocept.com said: Hi, zope.server logs the Exception during task message to the root logger. So there is no (easy/useful) way to filter that. I'd like to change this logging to a zope.server logger. (i.e. using logging.getLogger(...)) Objections? Since there where none thats implemented in r112771. Would somebody make a release or give me (zagy) the pypi permissions? Thanks, -- Christian Zagrodnick · c...@gocept.com gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 4 · fax +49 345 1229889 1 Zope and Plone consulting and development ___ 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] Schedule next bug day, please doodle until Friday
Hi, On 05/26/2010 08:55 AM, Christian Theune wrote: Hi, if you would like to participate in the next bug day, please go ahead and add yourself to the Doodle so we can get the best availability. Here's the link: http://doodle.com/nucv3bmt3ig4zd2c Just a gentle nudge: if you are interested in participating in the next bug day, please tell which days are comfortable for you so we can have as many people participate as possible. I will close the Doodle tomorrow evening (not before 6pm EEST). Christian -- Christian Theune · c...@gocept.com gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1 Zope and Plone consulting and development ___ 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] REMINDER: Planned server and list outage LATER TODAY
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reminder: Today at 20:00 UTC (less than 12 hours from now) one of the Zope Foundation-maintained servers will be physically moved to a different data center by our hosting provider. The server will be shut down at around 20:00 UTC and, according to the hosting provider, become available again no later than 05:30 UTC tomorrow (Friday, May 28). This outage will affect several websites as well as the mailing list service. No mail sent to the lists will be lost, though, it will just be queued up on our secondary mail relay, which is unaffected by this move. Once the main server comes back up it will be delivered. Services affected = - the docs.zope.org website - the download.zope.org website - all zope.org mailing lists and the lists.zope.org website Server shutdown === Thursday, May 27 (TODAY) 20:00 UTC - 22:00 CEST/Berlin - 16:00 EDT/New York - May 28 06:00 EST/Sydney Server start On or before Friday, May 28 (TOMORROW) 05:30 UTC - 07:30 CEST/Berlin - 01:30 EDT/New York - 15:30 EST/Sydney jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkv+LTYACgkQRAx5nvEhZLIg4gCeKpPV3ZZVinNhDA8F9Rj1KV0Q nkMAnj1r+faNJnWhEKIrYqhZYUITipJx =EDSt -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Test mail, please ignore
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Quick test, please ignore -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkv/WJkACgkQRAx5nvEhZLJ4oACgm3AmtfWAwvrhVvB83AxcbHfJ EdkAoLTWC5DeBS3xsls8FTCPU5UEZIgu =q806 -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope-CMF] CMF Tests: 5 OK
Summary of messages to the cmf-tests list. Period Wed May 26 12:00:00 2010 UTC to Thu May 27 12:00:00 2010 UTC. There were 5 messages: 5 from CMF Tests. Tests passed OK --- Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.6 : Linux From: CMF Tests Date: Wed May 26 21:44:27 EDT 2010 URL: http://mail.zope.org/pipermail/cmf-tests/2010-May/013065.html Subject: OK : CMF-2.1 Zope-2.11 Python-2.4.6 : Linux From: CMF Tests Date: Wed May 26 21:46:27 EDT 2010 URL: http://mail.zope.org/pipermail/cmf-tests/2010-May/013066.html Subject: OK : CMF-2.2 Zope-2.12 Python-2.6.5 : Linux From: CMF Tests Date: Wed May 26 21:48:27 EDT 2010 URL: http://mail.zope.org/pipermail/cmf-tests/2010-May/013067.html Subject: OK : CMF-trunk Zope-2.12 Python-2.6.5 : Linux From: CMF Tests Date: Wed May 26 21:50:27 EDT 2010 URL: http://mail.zope.org/pipermail/cmf-tests/2010-May/013068.html Subject: OK : CMF-trunk Zope-trunk Python-2.6.5 : Linux From: CMF Tests Date: Wed May 26 21:52:27 EDT 2010 URL: http://mail.zope.org/pipermail/cmf-tests/2010-May/013069.html ___ Zope-CMF maillist - Zope-CMF@zope.org https://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests