Re: [Zope-dev] [ZODB-Dev] attempting to undo an un-undoable transaction gives "NotImplementedError" with ZODB 3.9.5

2010-09-09 Thread Chris Withers
On 09/09/2010 21:47, Jim Fulton wrote:
>> 2010-08-26 22:49:01 ERROR txn.-1338986496 Failed to abort resource
>> manager:> object at 0x2d509f0>  at 47516176>
>> Traceback (most recent call last):
>>File "transaction-1.1.0-py2.6.egg/transaction/_transaction.py", line
>> 475, in abort
>>  rm.abort(self)
>>File "transaction-1.1.0-py2.6.egg/transaction/_transaction.py", line
>> 548, in abort
>>  self.manager.abort(o, txn)
>>File "ZODB3-3.9.5-py2.6-macosx-10.3-fat.egg/ZODB/DB.py", line 985, in
>> abort
>>  raise NotImplementedError
>> NotImplementedError
>>
>> This used to give a meaningful error message.
>
> In 3.7 and earlier.
>
>>
>> Anyone know why it no longer does?
>
> The resource manager abort method used to be a pass. In 3.9 in raises
> an exception, which hides the undo exception.

That's bad, right?

> An app should capture
> the undo exception information before calling abort.

"the app" here is Zope 2's publisher process, right?

> My guess is that this works much better in ZODB 3.10.

Any particular reason?

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
___
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] [ZODB-Dev] attempting to undo an un-undoable transaction gives "NotImplementedError" with ZODB 3.9.5

2010-09-09 Thread Jim Fulton
On Thu, Aug 26, 2010 at 5:51 PM, Chris Withers  wrote:
> Here's an example:
>
> 2010-08-26 22:49:01 ERROR txn.-1338986496 Failed to abort resource
> manager:  object at 0x2d509f0> at 47516176>
> Traceback (most recent call last):
>   File "transaction-1.1.0-py2.6.egg/transaction/_transaction.py", line
> 475, in abort
>     rm.abort(self)
>   File "transaction-1.1.0-py2.6.egg/transaction/_transaction.py", line
> 548, in abort
>     self.manager.abort(o, txn)
>   File "ZODB3-3.9.5-py2.6-macosx-10.3-fat.egg/ZODB/DB.py", line 985, in
> abort
>     raise NotImplementedError
> NotImplementedError
>
> This used to give a meaningful error message.

In 3.7 and earlier.

>
> Anyone know why it no longer does?

The resource manager abort method used to be a pass. In 3.9 in raises
an exception, which hides the undo exception.  An app should capture
the undo exception information before calling abort.

My guess is that this works much better in ZODB 3.10.

Jim


-- 
Jim Fulton
___
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] Extending Zope2 bin/instance run

2010-09-09 Thread Marius Gedminas
On Thu, Sep 09, 2010 at 02:45:10PM +0200, Wichert Akkerman wrote:
> I've opted for a third alternative: use an entry point to define the 
> extra commands. If you do this in setup.py:
> 
> entry_points="""
>[zopectl.command]
>mycommand = mypackage.commands:func
>"""
> 
> you can do:
> 
>  $ bin/instance mycommand []
> 
> The advantage of this approach is that it makes for more user friendly 
> commands that do not needlessly expose implementation details to the
> commandline.

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


Re: [Zope-dev] Extending Zope2 bin/instance run

2010-09-09 Thread Wichert Akkerman
On 9/3/10 18:21 , Tres Seaver wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Wichert Akkerman wrote:
>> I have noticed that now that we are almost exclusively using eggs to
>> distribute our software using "bin/instance run" has become difficult:
>> often the script you want to run is located inside an egg which makes to
>> path to it hard to predict. This is not the most user friendly command:
>>
>> bin/instance run eggs/my.package-*/my/package/script.py
>>
>> If a user is using a shared egg directory from zc.buildout or something
>> else the egg can be anywhere on the filesystem, making it next to
>> impossible to explain to users.
>>
>> I am considering to modify bin/instance run to check if its first
>> argument is a filesystem path, and if not consider the argument to be a
>> dotted name of a callable which should be invoke. That way backwards
>> compatibility remains, but you can now also do this:
>>
>> bin/instance run my.package.script.main
>
> What about using something like the EntryPoint syntax:
>
>   $ bin/instance run my.package.script:main
>
> We could even add a new entry point class for it, and allow:
>
>   $ bin/instance run egg:my.package#some_name

I've opted for a third alternative: use an entry point to define the 
extra commands. If you do this in setup.py:

entry_points="""
   [zopectl.command]
   mycommand = mypackage.commands:func
   """

you can do:

 $ bin/instance mycommand []

The advantage of this approach is that it makes for more user friendly 
commands that do not needlessly expose implementation details to the
commandline.

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 )


[Zope-dev] Zope Tests: 33 OK, 14 Failed, 1 Unknown

2010-09-09 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Wed Sep  8 12:00:00 2010 UTC to Thu Sep  9 12:00:00 2010 UTC.
There were 48 messages: 6 from Zope Tests, 1 from buildbot at 
enfoldsystems.com, 4 from buildbot at pov.lt, 19 from buildbot at 
winbot.zope.org, 11 from ccomb at free.fr, 7 from jdriessen at 
thehealthagency.com.


Test failures
-

Subject: FAILED : winbot / ztk_dev py_244_win32
From: buildbot at winbot.zope.org
Date: Wed Sep  8 16:13:06 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019631.html

Subject: FAILED : winbot / ztk_dev py_254_win32
From: buildbot at winbot.zope.org
Date: Wed Sep  8 16:15:42 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019632.html

Subject: FAILED : winbot / ztk_dev py_265_win32
From: buildbot at winbot.zope.org
Date: Wed Sep  8 16:18:53 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019633.html

Subject: FAILED : winbot / ztk_dev py_265_win64
From: buildbot at winbot.zope.org
Date: Wed Sep  8 16:21:40 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019634.html

Subject: FAILED : winbot / ztk_10 py_244_win32
From: buildbot at winbot.zope.org
Date: Wed Sep  8 16:30:28 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019635.html

Subject: FAILED : winbot / zc_buildout_dev py_244_win32
From: buildbot at winbot.zope.org
Date: Wed Sep  8 17:06:35 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019639.html

Subject: FAILED : winbot / zc_buildout_dev py_265_win64
From: buildbot at winbot.zope.org
Date: Wed Sep  8 17:44:10 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019642.html

Subject: FAILED : winbot / zc_buildout_dev py_270_win64
From: buildbot at winbot.zope.org
Date: Wed Sep  8 18:10:09 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019644.html

Subject: FAILED : winbot / ZODB_dev py_270_win32
From: buildbot at winbot.zope.org
Date: Wed Sep  8 21:53:13 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019662.html

Subject: FAILED : winbot / ZODB_dev py_270_win64
From: buildbot at winbot.zope.org
Date: Wed Sep  8 22:49:27 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019668.html

Subject: FAILED : ZTK 1.0dev / Python2.5.5 Linux 64bit
From: ccomb at free.fr
Date: Wed Sep  8 23:07:18 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019670.html

Subject: FAILED : ZTK 1.0dev / Python2.6.5 Linux 64bit
From: ccomb at free.fr
Date: Wed Sep  8 23:07:41 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019671.html

Subject: FAILED : ZTK 1.0dev / Python2.4.6 Linux 64bit
From: ccomb at free.fr
Date: Wed Sep  8 23:07:46 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019672.html

Subject: FAILED : ZTK 1.0 / Python2.4.6 Linux 64bit
From: ccomb at free.fr
Date: Thu Sep  9 01:38:36 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019675.html


Unknown
---

Subject: [zodb-tests] buildbot failure in Enfold Systems on 
zodb-trunk-python-2.6-maestro
From: buildbot at enfoldsystems.com
Date: Thu Sep  9 03:13:01 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019678.html


Tests passed OK
---

Subject: OK : winbot / ztk_10 py_254_win32
From: buildbot at winbot.zope.org
Date: Wed Sep  8 16:38:55 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019636.html

Subject: OK : winbot / ztk_10 py_265_win32
From: buildbot at winbot.zope.org
Date: Wed Sep  8 16:47:10 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019637.html

Subject: OK : winbot / ztk_10 py_265_win64
From: buildbot at winbot.zope.org
Date: Wed Sep  8 16:55:08 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019638.html

Subject: OK : winbot / zc_buildout_dev py_254_win32
From: buildbot at winbot.zope.org
Date: Wed Sep  8 17:18:42 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019640.html

Subject: OK : winbot / zc_buildout_dev py_265_win32
From: buildbot at winbot.zope.org
Date: Wed Sep  8 17:31:41 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019641.html

Subject: OK : winbot / zc_buildout_dev py_270_win32
From: buildbot at winbot.zope.org
Date: Wed Sep  8 17:57:11 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019643.html

Subject: OK : winbot / ZODB_dev py_254_win32
From: buildbot at winbot.zope.org
Date: Wed Sep  8 19:05:48 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019645.html

Subject: OK : Zope Buildbot / zope2.12 slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Wed Sep  8 19:49:20 EDT 2010
URL: http://mail.zope.org/pipermail/zope-tests/2010-September/019646.html

Subject: OK : Zope Buildbot / zope2 slave-ubuntu64
From: jdriessen at thehealthagency.com
Date: Wed Sep  8 19:51:08 

Re: [Zope-dev] Different Zope 3.4.2 Newbie feedback

2010-09-09 Thread Baiju M
On Thu, Sep 9, 2010 at 1:14 PM, Martin Aspeli  wrote:
>
> On 9 September 2010 01:33, Christopher Lozinski
>  wrote:
>>
>>  Here I am sharing my thoughts as a Zope 3.4.2 newbie.
>
> As you have been told three times this week already: Zope 3 is in effect
> dead.
> You want to look at Grok (if you want less ZCML and more convention-based
> configuration) and/or Blue Bream (which is basically the evolution of Zope
> 3.4 under a new, less confusing name).

To discuss anything about Grok and BlueBream, it is recommended
to join their respective mailing lists:
https://mail.zope.org/mailman/listinfo/grok-dev
https://mail.zope.org/mailman/listinfo/bluebream

BTW, BlueBream has a nice (third party) admin UI (ice.control):
http://www.youtube.com/watch?v=kIQQBZN8Kwc
It is not really for TTW development, but it will be very useful while
developing applications.

Regards,
Baiju M
___
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] Different Zope 3.4.2 Newbie feedback

2010-09-09 Thread Martin Aspeli
On 9 September 2010 01:33, Christopher Lozinski  wrote:

>  Here I am sharing my thoughts as a Zope 3.4.2 newbie.
>

As you have been told three times this week already: Zope 3 is in effect
dead.

You want to look at Grok (if you want less ZCML and more convention-based
configuration) and/or Blue Bream (which is basically the evolution of Zope
3.4 under a new, less confusing name).

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