Re: [Zope-dev] zope-tests - FAILED: 22, OK: 12, UNKNOWN: 2
On 02/28/2013 08:00 AM, Marius Gedminas wrote: On Thu, Feb 28, 2013 at 01:00:02AM +, Zope tests summarizer wrote: An error occurred when trying to install coverage 3.5.3. Look above this message for any errors that were output by easy_install. error: Setup script exited with error: command 'gcc' failed: No such file or directory While: Installing test-ztk. Getting distribution for 'coverage==3.5.3'. Error: Couldn't install: coverage 3.5.3 [21] winbot / ztk_10 py_265_win64 [23] winbot / ztk_11 py_265_win64 [24] winbot / ztk_11 py_270_win64 An error occurred when trying to install coverage 3.5.3. Look above this message for any errors that were output by easy_install. Traceback (most recent call last): ... File c:\Python26_64\lib\distutils\msvc9compiler.py, line 284, in query_vcvarsall raise ValueError(str(list(result.keys( ValueError: [u'path'] While: Installing test-ztk. Getting distribution for 'coverage==3.5.3'. Error: Couldn't install: coverage 3.5.3 Marius Gedminas Added an issue: https://bitbucket.org/ned/coveragepy/issue/239/any-chance-to-have-windows-64-bit-eggs-on -- Best regards, Adam GROSZER -- Quote of the day: Sincere effort is all you can ask ___ 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: 22, OK: 12, UNKNOWN: 2
On Thu, Feb 28, 2013 at 8:00 AM, Marius Gedminas mar...@gedmin.as wrote: On Thu, Feb 28, 2013 at 01:00:02AM +, Zope tests summarizer wrote: [3]UNKNOWN : Zope-trunk Python-2.6.8 : Linux [4]UNKNOWN : Zope-trunk Python-2.7.3 : Linux Something new: Zope-trunk Python-2.6.8 : Linux (x86_64) Running ./bin/alltests --all /home/stefan/autotest/zope_runtests_4.sh: line 13: ./bin/alltests: No such file or directory Zope moved to github, I guess. Somebody ping the owners of zope-te...@epy.co.at please. I mailed Stefan Holek in private - might take some days for him to have time to do something. Hanno ___ 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: 22, OK: 12, UNKNOWN: 2
On Thursday, February 28, 2013 09:00:30 AM Marius Gedminas wrote: [9]winbot / z3c.form_py_265_32 [10] winbot / z3c.formui_py_265_32 No lxml on winbot So we have to solve this issue. I cannot declare lxml=2.3 anymore, because only lxml 3.0+ supports Python 3. If we want to keep supporting Windows, someone must sign up to create Windows binaries. Regards, Stephan -- Entrepreneur and Software Geek Google me. Zope Stephan Richter ___ 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: 22, OK: 12, UNKNOWN: 2
On Thu, Feb 28, 2013 at 07:15:57AM -0500, Stephan Richter wrote: On Thursday, February 28, 2013 09:00:30 AM Marius Gedminas wrote: [9]winbot / z3c.form_py_265_32 [10] winbot / z3c.formui_py_265_32 No lxml on winbot So we have to solve this issue. I cannot declare lxml=2.3 anymore, because only lxml 3.0+ supports Python 3. If we want to keep supporting Windows, someone must sign up to create Windows binaries. I filed a bug: https://bugs.launchpad.net/lxml/+bug/1135686 Marius Gedminas -- http://pov.lt/ -- Zope 3/BlueBream consulting and development signature.asc Description: Digital 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] ZTK 2.0: Deprecate zope.sequencesort
Hi everyone, I would like to deprecate zope.sequencesort in ZTK 2.0, since it cannot properly ported to Python 3, since it depends heavily on the cmp() way of sorting. I am also not a user of the package and I only tried to port the package for completeness sake. Thoughts? Regards, Stephan -- Entrepreneur and Software Geek Google me. Zope Stephan Richter ___ 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] ZTK 2.0: Deprecate zope.sequencesort
On Thu, Feb 28, 2013 at 2:43 PM, Stephan Richter stephan.rich...@gmail.com wrote: I would like to deprecate zope.sequencesort in ZTK 2.0, since it cannot properly ported to Python 3, since it depends heavily on the cmp() way of sorting. I am also not a user of the package and I only tried to port the package for completeness sake. Thx for trying. I'd be fine to drop it from the ZTK - Zope depends on it, but that just means it falls under their responsibility to maintain it. I think Grok never used it - so it fails the two users rule. In the same way, I think we should remove RestrictedPython and zope.untrustedpython from the ZTK. Since those are also very much dependencies of Zope alone and porting is going to be a very challenging task. Hanno ___ 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] ZTK 2.0: Deprecate zope.sequencesort
On Feb 28, 2013, at 14:43 , Stephan Richter stephan.rich...@gmail.com wrote: Hi everyone, I would like to deprecate zope.sequencesort in ZTK 2.0, since it cannot properly ported to Python 3, since it depends heavily on the cmp() way of sorting. I am also not a user of the package and I only tried to port the package for completeness sake. What does it do? I could not find a single line of documentation for it, which makes it likely very few people, if any, are using it. Wichert. ___ 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] ZTK 2.0: Deprecate zope.sequencesort
On Thursday, February 28, 2013 02:59:33 PM Hanno Schlichting wrote: In the same way, I think we should remove RestrictedPython and zope.untrustedpython from the ZTK. Since those are also very much dependencies of Zope alone and porting is going to be a very challenging task. Well, it is useful for any project allowing end-users to code Python code. I know we do in our project's UI. So I would feel more comfortable in keeping it, but I would not stop a port of my project to Python 3 because of its absence. So maybe ZTK should not either. ;-) I personally do not feel comfortable enough to tackle this package myself though. Regards, Stephan -- Entrepreneur and Software Geek Google me. Zope Stephan Richter ___ 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] ZTK 2.0: Deprecate zope.sequencesort
On Thu, Feb 28, 2013 at 3:00 PM, Wichert Akkerman wich...@wiggy.net wrote: On Feb 28, 2013, at 14:43 , Stephan Richter stephan.rich...@gmail.com wrote: Hi everyone, I would like to deprecate zope.sequencesort in ZTK 2.0, since it cannot properly ported to Python 3, since it depends heavily on the cmp() way of sorting. I am also not a user of the package and I only tried to port the package for completeness sake. What does it do? I could not find a single line of documentation for it, which makes it likely very few people, if any, are using it. Reading through the code, it seems to use a lot of code to provide quite basic sorting functionality. It feels like it's trying to fill the same role as sorted() does since Python 2.4. //Lennart ___ 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: 22, OK: 12, UNKNOWN: 2
On Thu, Feb 28, 2013 at 09:00:30AM +0200, Marius Gedminas wrote: On Thu, Feb 28, 2013 at 01:00:02AM +, Zope tests summarizer wrote: [1]Still Failing - zopetoolkit_trunk - Build # 186 Same six failures, caused by ImportError: No module named persistent inside BTrees. Weird. *puts brown paper bag over his head* So, it turns out install_requires=[ 'lots', 'of, 'packages', ] + ['one extra'] if PY3 else [], doesn't group the way I expected it to group. Should be fixed in ZODB's py3 branch. Kudos to Gediminas Paulauskas for spotting this. Marius Gedminas -- http://pov.lt/ -- Zope 3/BlueBream consulting and development signature.asc Description: Digital 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] ZTK Porting Status
Hi all, I went through the ztk-versions.cfg file and verified availability of a Python 3 port. I commented the ztk-versions.cfg file. Below are the relevant sections. If we remove all deprecated pacakges and packages that should not be in use anymore, only the following dependencies/toolchain packages require a Python 3 port: z3c.checkversions z3c.recipe.compattest zope.kgs zc.resourcelibrary zope.mkzeoinstance ZODB (awaiting merge of py3 branch) Luckily we control all these packages. These packages should just be removed from the file: # Deprecating # zope.broken was only needed for ZODB3. zope.broken = 3.6.0 # zope.server has been forked and ported to Py3 under the name waitress. zope.server = 3.8.6 # RestrictedPython and thus zope.untrustedpython are hard to port to Py3. zope.untrustedpython = 4.0.0 # No package should depend on ZODB3 anymore. ZODB3 = 3.11.0a2 # mechanize should only be needed for testbrowser. mechanize = 0.2.5 Dependencies missing a Python 3 port: # XXX: Where do we need that? Paste = 1.7.5.1 # PasteScript should not be needed anymore, since zope.paste supports serving # directly now. PasteScript = 1.7.5 # Fix by removing it from the ZTK? RestrictedPython = 3.6.0 # XXX: Where is this needed? unittest2 = 0.5.1 # Should just be ported. zc.resourcelibrary = 1.3.4 zope.mkzeoinstance = 3.9.5 # Needs merge of py3 branch. ZODB = 4.0.0a4 # toolchain # Missing py3 port z3c.checkversions = 0.4.1 # Missing py3 port z3c.recipe.compattest = 0.13.1 # Should not be needed anymore: z3c.recipe.scripts = 1.0.1 # Missing py3 port zope.kgs = 1.2.0 Regards, Stephan -- Entrepreneur and Software Geek Google me. Zope Stephan Richter ___ 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] ZTK 2.0: Deprecate zope.sequencesort
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/28/2013 08:43 AM, Stephan Richter wrote: Hi everyone, I would like to deprecate zope.sequencesort in ZTK 2.0, since it cannot properly ported to Python 3, since it depends heavily on the cmp() way of sorting. I am also not a user of the package and I only tried to port the package for completeness sake. Thoughts? I'm generally in favor of shrinking the ZTK, but just for discussion's sake: emulating 'cmp' for objects which have rich comparison semantics isn't that difficult:: def _faux_cmp(lhs, rhs): return int(rhs lhs) - int(lhs rhs) 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/ iEYEARECAAYFAlEvhpoACgkQ+gerLs4ltQ54KACggufMQUYdhD1Y9pefcP0qvAEE oEMAoLwcOL9/gGtdsIUJ0YlMme85WGhZ =ayRa -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] ZTK 2.0: Deprecate zope.sequencesort
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/28/2013 10:41 AM, Lennart Regebro wrote: Reading through the code, it seems to use a lot of code to provide quite basic sorting functionality. It feels like it's trying to fill the same role as sorted() does since Python 2.4. The other features (locale-aware sorting, sort different keys using different algorithms / directions) are not easy to emulate using 'sorted()' 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/ iEYEARECAAYFAlEvhtAACgkQ+gerLs4ltQ7PRACbBuZ7YPdTbm0zsqCExZYn/gM0 7cwAoNhy13Nd/Avf0NZ6b+ChqbrfY77E =pITz -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] ZTK 2.0: Deprecate zope.sequencesort
On Thursday, February 28, 2013 11:32:26 AM Tres Seaver wrote: Thoughts? I'm generally in favor of shrinking the ZTK, but just for discussion's sake: emulating 'cmp' for objects which have rich comparison semantics isn't that difficult:: def _faux_cmp(lhs, rhs): return int(rhs lhs) - int(lhs rhs) Well, that is the obvious implementation of cmp(), but that's not the point of the package. The package provides a callable class that represents a cmp() function. The problem is that it is not just creating some keys and calls cmp() on it. I could not find out a way to create a single key. I guess the right way to port the package is to implement a sort API. Regards, Stephan -- Entrepreneur and Software Geek Google me. Zope Stephan Richter ___ 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] ZTK 2.0: Deprecate zope.sequencesort
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/28/2013 01:04 PM, Stephan Richter wrote: On Thursday, February 28, 2013 11:32:26 AM Tres Seaver wrote: Thoughts? I'm generally in favor of shrinking the ZTK, but just for discussion's sake: emulating 'cmp' for objects which have rich comparison semantics isn't that difficult:: def _faux_cmp(lhs, rhs): return int(rhs lhs) - int(lhs rhs) Well, that is the obvious implementation of cmp(), but that's not the point of the package. The package provides a callable class that represents a cmp() function. The problem is that it is not just creating some keys and calls cmp() on it. I could not find out a way to create a single key. The main export of the package is the 'sort' function, which takes a sequence, per-column sort specs (key/attr name, sort function, direction), and optional extra data (e.g., the DTML namespace) and a flag indicating whether to use key or attribute lookup. The 'SortBy' class is really just an implementation detail of that API. I guess the right way to port the package is to implement a sort API. I have ported it to Python 3.2 and 3.3 and released a 4.0.0 version. 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/ iEYEARECAAYFAlEvuFEACgkQ+gerLs4ltQ7+0wCg1gdpKIzx1Q1lvS0xVWAhSRIM wPsAniwipqErV4yMTkRDr5GxBz6GJfzW =6SHn -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-tests - FAILED: 15, OK: 17, UNKNOWN: 2
This is the summary for test reports received on the zope-tests list between 2013-02-27 00:00:00 UTC and 2013-02-28 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 [1]Still Failing - zopetoolkit_trunk - Build # 187 [2]UNKNOWN : Zope-trunk Python-2.6.8 : Linux [3]UNKNOWN : Zope-trunk Python-2.7.3 : Linux 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 winbot / ZODB_dev py_265_win32 winbot / ZODB_dev py_265_win64 winbot / ZODB_dev py_270_win32 winbot / ZODB_dev py_270_win64 [4]winbot / z3c.formui_py_265_32 [5]winbot / z3c.layer.ready2go_py_265_32 [6]winbot / z3c.recipe.paster_py_265_32 [7]winbot / z3c.testing_py_265_32 [8]winbot / zc.resourcelibrary_py_265_32 [9]winbot / zope.app.authentication_py_265_32 [10] winbot / zope.app.authentication_py_265_32 [11] winbot / zope.app.http_py_265_32 [12] winbot / zope.app.pagetemplate_py_265_32 [13] winbot / zope.app.publication_py_265_32 [14] winbot / zope.browserpage_py_265_32 [15] winbot / zope.formlib_py_265_32 [16] winbot / zope.generations_py_265_32 [17] winbot / zope.ptresource_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 Still Failing - zopetoolkit_trunk - Build # 187 https://mail.zope.org/pipermail/zope-tests/2013-February/072917.html [2]UNKNOWN UNKNOWN : Zope-trunk Python-2.6.8 : Linux https://mail.zope.org/pipermail/zope-tests/2013-February/072923.html [3]UNKNOWN UNKNOWN : Zope-trunk Python-2.7.3 : Linux https://mail.zope.org/pipermail/zope-tests/2013-February/072924.html [4]FAILED winbot / z3c.formui_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072912.html [5]FAILED winbot / z3c.layer.ready2go_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072942.html [6]FAILED winbot / z3c.recipe.paster_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072937.html [7]FAILED winbot / z3c.testing_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072915.html [8]FAILED winbot / zc.resourcelibrary_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072943.html [9]FAILED winbot / zope.app.authentication_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072940.html [10] FAILED winbot / zope.app.authentication_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072913.html [11] FAILED winbot / zope.app.http_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072941.html [12] FAILED winbot / zope.app.pagetemplate_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072910.html [13] FAILED winbot / zope.app.publication_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072939.html [14] FAILED winbot / zope.browserpage_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072938.html [15] FAILED winbot / zope.formlib_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072911.html [16] FAILED winbot / zope.generations_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072916.html [17] FAILED winbot / zope.ptresource_py_265_32 https://mail.zope.org/pipermail/zope-tests/2013-February/072914.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 )
Re: [Zope-dev] ZTK 2.0: Deprecate zope.sequencesort
On Thu, Feb 28, 2013 at 5:33 PM, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/28/2013 10:41 AM, Lennart Regebro wrote: Reading through the code, it seems to use a lot of code to provide quite basic sorting functionality. It feels like it's trying to fill the same role as sorted() does since Python 2.4. The other features (locale-aware sorting, sort different keys using different algorithms / directions) are not easy to emulate using 'sorted()' Locale aware sorting can be tricky, I'll have to look at that code again. Sorting different keys and directions are trivial with sorted(). I'm not sure what different algorithms mean, with sorted you implement a function that returns a sorting key, that sorting key is then used to sort. It should be possible to sort according to any algorithm that way. //Lennart ___ 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] ZTK 2.0: Deprecate zope.sequencesort
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/28/2013 10:00 PM, Lennart Regebro wrote: On Thu, Feb 28, 2013 at 5:33 PM, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/28/2013 10:41 AM, Lennart Regebro wrote: Reading through the code, it seems to use a lot of code to provide quite basic sorting functionality. It feels like it's trying to fill the same role as sorted() does since Python 2.4. The other features (locale-aware sorting, sort different keys using different algorithms / directions) are not easy to emulate using 'sorted()' Locale aware sorting can be tricky, I'll have to look at that code again. Sorting different keys and directions are trivial with sorted(). I'm not sure what different algorithms mean, with sorted you implement a function that returns a sorting key, that sorting key is then used to sort. It should be possible to sort according to any algorithm that way. Assuming an unsorted list of news stories, how would you use sorted to get them ordered by category (ascending) + publication date (descending)? If you spend more than a minute on it (e.g., trying to come up with a bug-free way to compute negative dates) you've proved my mpoint. :) 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/ iEYEARECAAYFAlEwGqcACgkQ+gerLs4ltQ64PACgoDSWLIhu1EJqTu1zEanfgHlY oxAAoJkzmsOK28Rco13S+06YRyMVhZ8k =T8Or -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: 15, OK: 17, UNKNOWN: 2
New issues: - ZTK drops zope.untrustedpython, zope.pagetemplate pulls it back in - zope.testbrowser.wsgi disappeared?! The usual suspects: - lxml for Windows - authentication: str vs unicode - newlines on Windows: should page templates normalize to \n? - z3c.recipe.paster still fragile - moves to github cause temporary churn On Fri, Mar 01, 2013 at 01:00:02AM +, Zope tests summarizer wrote: [1]Still Failing - zopetoolkit_trunk - Build # 187 Build # 188 fails with Error: Picked: zope.untrustedpython = 4.0.0 while Installing 'zope.pagetemplate[test,untrusted]', 'zope.testrunner'. [2]UNKNOWN : Zope-trunk Python-2.6.8 : Linux [3]UNKNOWN : Zope-trunk Python-2.7.3 : Linux Waiting for buildbot owners to react to Zope's migration to Github. [4]winbot / z3c.formui_py_265_32 No lxml on winbot [5]winbot / z3c.layer.ready2go_py_265_32 Moved to github. [6]winbot / z3c.recipe.paster_py_265_32 This nonsense again. Argh. AFAIR AttributeError: 'NoneType' object has no attribute 'location' inside zc.buildout-1.7.1 (not 2.0!) means some of z3c.recipe.paster's dependencies used to depend on WebTest, and now it doesn't any more, so you have to manually update the test environment description because I'm too shtoopid to do that for you, and also too shtoopid to emit a clear error message hurr durr. [7]winbot / z3c.testing_py_265_32 Moved to github; last build already green. [8]winbot / zc.resourcelibrary_py_265_32 Moved to github. [9]winbot / zope.app.authentication_py_265_32 [10] winbot / zope.app.authentication_py_265_32 Same Unicode issues. [11] winbot / zope.app.http_py_265_32 Whoa. Test-module import failures: Module: zope.app.http.tests.test_put Traceback (most recent call last): File c:\buildslave\zope.app.http\build\src\zope\app\http\tests\test_put.py, line 28, in module from zope.app.wsgi.testlayer import BrowserLayer File c:\eggs\zope.app.wsgi-4.0.0a1.dev-py2.6.egg\zope\app\wsgi\testlayer.py, line 19, in module from zope.testbrowser.wsgi import Layer as WSGILayer, AuthorizationMiddleware ImportError: No module named testbrowser.wsgi [12] winbot / zope.app.pagetemplate_py_265_32 Same \r\n issues. [13] winbot / zope.app.publication_py_265_32 ImportError: No module named testbrowser.wsgi [14] winbot / zope.browserpage_py_265_32 Same \r\n issues. [15] winbot / zope.formlib_py_265_32 Moved to github. [16] winbot / zope.generations_py_265_32 [17] winbot / zope.ptresource_py_265_32 Moved to github; last build already green. Marius Gedminas -- http://pov.lt/ -- Zope 3/BlueBream consulting and development signature.asc Description: Digital 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 )