[Zope-dev] TreeVocabulary in zope.schema.vocabulary

2012-01-20 Thread Jan-Carel Brand
Hi all

I've been working on porting the Dynatree (a dynamic tree-like) widget
to z3c.form:

https://github.com/collective/collective.dynatree

My (temporary) fork is here:

https://github.com/syslabcom/collective.dynatree

And for this I needed a hierarchical tree-like vocabulary.

So I've created a TreeVocabulary in zope/schema/vocabulary.py, based
upon the existing SimpleVocabulary.

Instead of fromValues or fromItems, it has fromDict, to construct the
vocab from a dict. And the internal representation, self._terms, is a
dictionary.

My branch is here:
http://svn.zope.org/zope.schema/branches/jcbrand-treevocabulary/

The only changes are the new TreeVocabulary in zope/schema/vocabulary.py
and the tests for it in zope/schema/tests/test_vocabulary.py

Can someone please take a look and give some feedback? 

Thanks
J-C








___
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: 22, OK: 44

2012-01-20 Thread Zope tests summarizer
This is the summary for test reports received on the 
zope-tests list between 2012-01-19 00:00:00 UTC and 2012-01-20 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]ZTK 1.0 / Python2.4.6 Linux 64bit
[2]ZTK 1.0 / Python2.5.5 Linux 64bit
   ZTK 1.0 / Python2.6.7 Linux 64bit
[3]ZTK 1.0dev / Python2.4.6 Linux 64bit
[4]ZTK 1.0dev / Python2.5.5 Linux 64bit
   ZTK 1.0dev / Python2.6.7 Linux 64bit
[5]ZTK 1.1 / Python2.5.5 Linux 64bit
   ZTK 1.1 / Python2.6.7 Linux 64bit
   ZTK 1.1 / Python2.7.2 Linux 64bit
[6]ZTK 1.1dev / Python2.5.5 Linux 64bit
   ZTK 1.1dev / Python2.6.7 Linux 64bit
   ZTK 1.1dev / Python2.7.2 Linux 64bit
   Zope 3.4 KGS / Python2.4.6 64bit linux
   Zope 3.4 KGS / Python2.5.5 64bit linux
   Zope 3.4 Known Good Set / py2.4-32bit-linux
   Zope 3.4 Known Good Set / py2.4-64bit-linux
   Zope 3.4 Known Good Set / py2.5-32bit-linux
   Zope 3.4 Known Good Set / py2.5-64bit-linux
   Zope Buildbot / zope2.12-py2.6 slave-ubuntu32
   Zope Buildbot / zope2.12-py2.6 slave-ubuntu64
   Zope Buildbot / zope2.13-py2.6 slave-ubuntu32
   Zope Buildbot / zope2.13-py2.6 slave-ubuntu64
   Zope Buildbot / zope2.13-py2.7 slave-ubuntu32
   Zope Buildbot / zope2.13-py2.7 slave-ubuntu64
   Zope Buildbot / zope2.14-py2.6 slave-ubuntu32
   Zope Buildbot / zope2.14-py2.6 slave-ubuntu64
   Zope Buildbot / zope2.14-py2.7 slave-ubuntu32
   Zope Buildbot / zope2.14-py2.7 slave-ubuntu64
[7]Zope Buildbot / zopetoolkit-1.0-py2.4 slave-ubuntu32
[8]Zope Buildbot / zopetoolkit-1.0-py2.4 slave-ubuntu64
[9]Zope Buildbot / zopetoolkit-1.0-py2.5 slave-ubuntu32
[10]   Zope Buildbot / zopetoolkit-1.0-py2.5 slave-ubuntu64
[11]   Zope Buildbot / zopetoolkit-1.0-py2.6 slave-ubuntu32
[12]   Zope Buildbot / zopetoolkit-1.0-py2.6 slave-ubuntu64
[13]   Zope Buildbot / zopetoolkit-1.1-py2.5 slave-ubuntu32
[14]   Zope Buildbot / zopetoolkit-1.1-py2.5 slave-ubuntu64
[15]   Zope Buildbot / zopetoolkit-1.1-py2.6 slave-ubuntu32
[16]   Zope Buildbot / zopetoolkit-1.1-py2.6 slave-ubuntu64
[17]   Zope Buildbot / zopetoolkit-py2.5 slave-ubuntu32
[18]   Zope Buildbot / zopetoolkit-py2.5 slave-ubuntu64
[19]   Zope Buildbot / zopetoolkit-py2.6 slave-ubuntu32
[20]   Zope Buildbot / zopetoolkit-py2.6 slave-ubuntu64
   Zope-2.10 Python-2.4.6 : Linux
   Zope-2.11 Python-2.4.6 : Linux
   Zope-2.12 Python-2.6.6 : Linux
   Zope-2.12-alltests Python-2.6.6 : Linux
   Zope-2.13 Python-2.6.6 : Linux
   Zope-2.13-alltests Python-2.6.6 : Linux
   Zope-trunk Python-2.6.6 : Linux
   Zope-trunk-alltests Python-2.6.6 : 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
[21]   winbot / ztk_10 py_254_win32
   winbot / ztk_10 py_265_win32
   winbot / ztk_10 py_265_win64
[22]   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
   winbot / ztk_dev py_265_win32
   winbot / ztk_dev py_265_win64
   winbot / ztk_dev py_270_win32
   winbot / ztk_dev py_270_win64

Non-OK results
--

[1]FAILED  ZTK 1.0 / Python2.4.6 Linux 64bit
   https://mail.zope.org/pipermail/zope-tests/2012-January/056400.html


[2]FAILED  ZTK 1.0 / Python2.5.5 Linux 64bit
   https://mail.zope.org/pipermail/zope-tests/2012-January/056402.html


[3]FAILED  ZTK 1.0dev / Python2.4.6 Linux 64bit
   https://mail.zope.org/pipermail/zope-tests/2012-January/056409.html


[4]FAILED  ZTK 1.0dev / Python2.5.5 Linux 64bit
   https://mail.zope.org/pipermail/zope-tests/2012-January/056411.html


[5]FAILED  ZTK 1.1 / Python2.5.5 Linux 64bit
   https://mail.zope.org/pipermail/zope-tests/2012-January/056398.html


[6]FAILED  ZTK 1.1dev / Python2.5.5 Linux 64bit
   https://mail.zope.org/pipermail/zope-tests/2012-January/056407.html


[7]FAILED  Zope Buildbot / zopetoolkit-1.0-py2.4 slave-ubuntu32
   https://mail.zope.org/pipermail/zope-tests/2012-January/056428.html


[8]FAILED  Zope Buildbot / zopetoolkit-1.0-py2.4 slave-ubuntu64
   https://mail.zope.org/pipermail/zope-tests/2012-January/056418.html


[9]FAILED  Zope Buildbot / zopetoolkit-1.0-py2.5 slave-ubuntu32
   https://mail.zope.org/pipermail/zope-tests/2012-January/056431.html


[10]   FAILED  Zope Buildbot / zopetoolkit-1.0-py2.5 slave-ubuntu64
   https://mail.zope.org/pipermail/zope-tests/2012-January/056420.html


[11]   FAILED  Zope Buildbot / zopetoolkit-1.0-py2.6 slave-ubuntu32
   https://mail.zope.org/pipermail/zope-tests/2012-January/056434.html


[12]