[Zope-dev] Announcement: gocept.zcapatch 1.0 released

2011-12-05 Thread Wolfgang Schnerring
Hello,

after much discussion[1], Thomas Lotze and I tried to implement
generic copying/stacking of component registries[2], but ultimately
failed due to the same issues that Martin Aspeli had already foreseen:
For the general case there are way too many edge cases, especially
regarding persistent registries.

So we decided to solve our most immediate needs (that are not taken
care of by plone.testing's stacking solution of the global registry),
namely temporarily altering utility/adapter/handler registrations.

We've now released this effort as gocept.zcapatch[3], and look forward
to comments and further ideas about this. I also wonder whether this
might eventually get another home (plone.testing? zope.component? Or,
nowadays, zope.interface?), but that's for after trying it out in the
real world.

Wolfgang


[1] http://thread.gmane.org/gmane.comp.web.zope.devel/26469/focus=26484
[2] http://svn.zope.org/zope.component/branches/wosc-test-stacking/
http://svn.zope.org/zope.interface/branches/wosc-test-stacking/
[3] http://pypi.python.org/pypi/gocept.zcapatch

-- 
Wolfgang Schnerring · email/jabber: w...@gocept.com · software development
gocept gmbh  co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 219401 0 · fax +49 345 1229889 1
Python, Pyramid, Plone, Zope - consulting, development, hosting, operations


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 )


Re: [Zope-dev] merge zope.configuration dictactions branch

2011-12-05 Thread Chris McDonough
On Mon, 2011-12-05 at 08:07 +0100, Wolfgang Schnerring wrote:
 * Chris McDonough chr...@plope.com [2011-12-05 04:02]:
  ssh://svn.zope.org/repos/main/zope.configuration/branches/chrism-dictactions
 
  I want to be able to associate a new value (introspectables) with each
  ZCML configuration action
 
  On the zope.configuration trunk (and in all past releases), each ZCML
  action is maintained as a tuple.  The tuple can be of any length up to
  seven elements, but mustn't exceed a length of seven.
 
  the z.config code is much easier to understand when the action is just
  a dictionary instead of a pseudo-struct.
 
 +1, this makes a lot of sense to me.

The chrism-dictactions branch was merged to trunk; the changes will be
present in zope.configuration 3.8.0 (once released).

- 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 )


Re: [Zope-dev] merge zope.configuration dictactions branch

2011-12-05 Thread Charlie Clark

Hi Chris,

Am 05.12.2011, 04:02 Uhr, schrieb Chris McDonough chr...@plope.com:


On the zope.configuration trunk (and in all past releases), each ZCML
action is maintained as a tuple.  The tuple can be of any length up to
seven elements, but mustn't exceed a length of seven.  A complex system
of lengthening and shortening (in
zope.configuration.config.resolveConflicts) tries to ensure that the
tuple is of the smallest length required by chopping false elements off
the end of each action tuple during storage and reconstituting them to
7-element tuples during processing and sorting.  I think this juke was
purely to make doctests easier to write, but I'm not entirely sure.


eek! I'm sure there was a better reason for this in the first place. As  
things stand ZCML declarations are not orthogonal so a key-based approach  
seems the better fit.



Up til now, pyramid_zcml could live with actions being at most 7
elements.  But recent changes to the Pyramid trunk (adding
introspectables) blew out the presumption that an action tuple could
be no longer than 7 elements (it now might need to be 8 elements).



Rather than extend the structure of the zope.configuration tuple with a
Pyramid-only introspectables argument, I've created the
chrism-dictactions branch
(http://svn.zope.org/zope.configuration/branches/chrism-dictactions/)
which changes ZCML action structures to be dictionaries.  This allows
each action to contain arbitrary keys.  This modification satisfies the
immediate requirement (adding introspectables) and allows us to never
need to change the zope.config code again if more elements need to be
added to actions.


+1 as all ZTK test pass.


I could have instead added an extras dictionary on to the end of the
tuple as an 8th element, but it seems six of one a half dozen of
another, and the z.config code is much easier to understand when the
action is just a dictionary instead of a pseudo-struct.


I'm trying to think of where I've seen that pattern of {'organised'  
'others':{}} before... oh, yes in dodgy RDBMS schema.


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 )


Re: [Zope-dev] transaction pkg release (was Re: zope.sqlalchemy+py3 test failures)

2011-12-05 Thread Chris McDonough
On Sun, 2011-12-04 at 22:12 -0500, Chris McDonough wrote:

 I'm going to make a new major release of the transaction package
 tomorrow (without the savepoint release features, and bw incompat with
 2.4 and 2.5), unless I hear otherwise.

transaction 1.2.0 released with Py3 compat (and removing Py2.4 and
Py2.5) compatibility.  Tested against the ztk trunk tests under Python
2.6.

- 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.sqlalchemy release

2011-12-05 Thread Chris McDonough
Tomorrow, I plan to:

- Merge the chrism-py3 branch of zope.sqlalchemy into its trunk.
  (http://svn.zope.org/zope.sqlalchemy/branches/chrism-py3/)
  to get Python 3 compatibility.

- Once the compat branch is merged, I'll make a 0.7 release of
  zope.sqlalchemy.

Any dissent?

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

2011-12-05 Thread Zope tests summarizer
This is the summary for test reports received on the 
zope-tests list between 2011-12-04 00:00:00 UTC and 2011-12-05 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


   Bluebream / Python2.5.5 64bit linux
   Bluebream / Python2.6.7 64bit linux
   Bluebream / Python2.7.2 64bit linux
   ZTK 1.0 / Python2.4.6 Linux 64bit
   ZTK 1.0 / Python2.5.5 Linux 64bit
   ZTK 1.0 / Python2.6.7 Linux 64bit
   ZTK 1.0dev / Python2.4.6 Linux 64bit
   ZTK 1.0dev / Python2.5.5 Linux 64bit
   ZTK 1.0dev / Python2.6.7 Linux 64bit
   ZTK 1.1 / Python2.5.5 Linux 64bit
   ZTK 1.1 / Python2.6.7 Linux 64bit
   ZTK 1.1 / Python2.7.2 Linux 64bit
   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-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
[1]winbot / ZODB_dev py_254_win32
[2]winbot / ZODB_dev py_265_win32
[3]winbot / ZODB_dev py_265_win64
   winbot / ZODB_dev py_265_win64
   winbot / ZODB_dev py_270_win32
   winbot / ZODB_dev py_270_win64
   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
   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  winbot / ZODB_dev py_254_win32
   https://mail.zope.org/pipermail/zope-tests/2011-December/053672.html


[2]FAILED  winbot / ZODB_dev py_265_win32
   https://mail.zope.org/pipermail/zope-tests/2011-December/053673.html


[3]FAILED  winbot / ZODB_dev py_265_win64
   https://mail.zope.org/pipermail/zope-tests/2011-December/053674.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] zope-tests - FAILED: 3, OK: 44

2011-12-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 [1]FAILED  winbot / ZODB_dev py_254_win32 
 https://mail.zope.org/pipermail/zope-tests/2011-December/053672.html


This appears to be due to the incompatibility of transaction 1.2 with
Python  2.6:

- -- % ---
Getting distribution for 'transaction=1.1.0'.
  File build\bdist.win32\egg\transaction\tests\savepointsample.py, line 26
class SampleDataManager(object):
^
SyntaxError: invalid syntax

  File
c:\eggs\tmpp2qpjq\transaction-1.2.0-py2.5.egg\transaction\tests\savepointsample.py,
line 26
class SampleDataManager(object):
^
SyntaxError: invalid syntax
- -- % ---


 [2]FAILED  winbot / ZODB_dev py_265_win32 
 https://mail.zope.org/pipermail/zope-tests/2011-December/053673.html
 
 
 [3]FAILED  winbot / ZODB_dev py_265_win64 
 https://mail.zope.org/pipermail/zope-tests/2011-December/053674.html


These are both odd doctest failures, perhaps also related to the recent
transaction release?


- -- % ---
File
c:\buildslave\zodb_dev_py_265_win32\build\src\ZODB\tests\testConnectionSavepoint.txt,
line 185, in testConnectionSavepoint.txt
Failed example:
savepoint2.rollback()
Expected:
Traceback (most recent call last):
...
InvalidSavepointRollbackError
Got:
Traceback (most recent call last):
  File c:\Python26_32\lib\doctest.py, line 1253, in __run
compileflags, 1) in test.globs
  File doctest testConnectionSavepoint.txt[49], line 1, in module
savepoint2.rollback()
  File
c:\eggs\transaction-1.2.0-py2.6.egg\transaction\_transaction.py, line
705, in rollback
'invalidated by a later savepoint')
InvalidSavepointRollbackError: invalidated by a later savepoint
- -- % ---



Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7dcHcACgkQ+gerLs4ltQ6d0gCfZCjd/rcQ7hf15SJrbEU6CZU+
UgIAoIDHZ6ekXMXy/I/cifX6eKQaHcWN
=9ig/
-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: 3, OK: 44

2011-12-05 Thread Chris McDonough
On Mon, 2011-12-05 at 20:31 -0500, Tres Seaver wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
  [1]FAILED  winbot / ZODB_dev py_254_win32 
  https://mail.zope.org/pipermail/zope-tests/2011-December/053672.html
 
 
 This appears to be due to the incompatibility of transaction 1.2 with
 Python  2.6:
 
 - -- % ---
 Getting distribution for 'transaction=1.1.0'.
   File build\bdist.win32\egg\transaction\tests\savepointsample.py, line 26
 class SampleDataManager(object):
 ^
 SyntaxError: invalid syntax
 
   File
 c:\eggs\tmpp2qpjq\transaction-1.2.0-py2.5.egg\transaction\tests\savepointsample.py,
 line 26
 class SampleDataManager(object):
 ^
 SyntaxError: invalid syntax
 - -- % ---

This bot configuration needs to be disabled (py 2.5 + ZODB trunk, that
is).

  [2]FAILED  winbot / ZODB_dev py_265_win32 
  https://mail.zope.org/pipermail/zope-tests/2011-December/053673.html
  
  
  [3]FAILED  winbot / ZODB_dev py_265_win64 
  https://mail.zope.org/pipermail/zope-tests/2011-December/053674.html
 
 
 These are both odd doctest failures, perhaps also related to the recent
 transaction release?

Yes.  I'll see if I can fix it in the ZODB trunk.

- 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 )


Re: [Zope-dev] zope.sqlalchemy release

2011-12-05 Thread Brian Sutherland
On Mon, Dec 05, 2011 at 04:21:51PM -0500, Chris McDonough wrote:
 Tomorrow, I plan to:
 
 - Merge the chrism-py3 branch of zope.sqlalchemy into its trunk.
   (http://svn.zope.org/zope.sqlalchemy/branches/chrism-py3/)
   to get Python 3 compatibility.
 
 - Once the compat branch is merged, I'll make a 0.7 release of
   zope.sqlalchemy.
 
 Any dissent?

None from me!

This all looks like great work.

-- 
Brian Sutherland
___
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: 3, OK: 44

2011-12-05 Thread Adam GROSZER

Hello,

Jim?

On Mon, 05 Dec 2011 23:47:06 -0500 you wrote:


On Mon, 2011-12-05 at 20:31 -0500, Tres Seaver wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


[1]FAILED  winbot / ZODB_dev py_254_win32
https://mail.zope.org/pipermail/zope-tests/2011-December/053672.html



This appears to be due to the incompatibility of transaction 1.2 with
Python  2.6:

- -- %  ---
Getting distribution for 'transaction=1.1.0'.
   File build\bdist.win32\egg\transaction\tests\savepointsample.py, line 26
 class SampleDataManager(object):
 ^
SyntaxError: invalid syntax

   File
c:\eggs\tmpp2qpjq\transaction-1.2.0-py2.5.egg\transaction\tests\savepointsample.py,
line 26
 class SampleDataManager(object):
 ^
SyntaxError: invalid syntax
- -- %  ---


This bot configuration needs to be disabled (py 2.5 + ZODB trunk, that
is).


[2]FAILED  winbot / ZODB_dev py_265_win32
https://mail.zope.org/pipermail/zope-tests/2011-December/053673.html


[3]FAILED  winbot / ZODB_dev py_265_win64
https://mail.zope.org/pipermail/zope-tests/2011-December/053674.html



These are both odd doctest failures, perhaps also related to the recent
transaction release?


Yes.  I'll see if I can fix it in the ZODB trunk.

- 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 )




--
Best regards,
 Adam GROSZER
--
Quote of the day:
Even on the road to hell, flowers can make you smile.
- Deng Ming-Dao
___
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 )