[Zope-dev] Utility factory handling for zope.component

2008-07-23 Thread Wichert Akkerman
Tools like GenericSetup which deal with mangement of utility registration are a bit handicapped at the moment: even though you can register a utility using a factory the utility registration itself only runs the factory methods but does not keep any information on it. As a result you can not round-

[Zope-dev] Zope Tests: 5 OK

2008-07-23 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Tue Jul 22 11:00:00 2008 UTC to Wed Jul 23 11:00:00 2008 UTC. There were 5 messages: 5 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Tests Date: Tue Jul 22 21:03:12 EDT 2008 URL: http://m

[Zope-dev] Deprecation Warning

2008-07-23 Thread vyshakh krishnan
Hi everybody, While porting Zope2 on Python2.5, I am now trying to remove the deprecation warnings.Most of them are due to the raising of string exceptions. One of such warnings in the module Products is /home/zope/ztrunk25/lib/python/OFS/SimpleItem.py:248: DeprecationWarning: raising

Re: [Zope-dev] Deprecation Warning

2008-07-23 Thread Lennart Regebro
On Wed, Jul 23, 2008 at 14:03, vyshakh krishnan <[EMAIL PROTECTED]> wrote: > Hi everybody, > > > While porting Zope2 on Python2.5, I am now trying to remove the > deprecation warnings.Most of them are due to the raising of string > exceptions. One of such warnings in the module Products is > > /hom

Re: [Zope-dev] Utility factory handling for zope.component

2008-07-23 Thread Stephan Richter
On Wednesday 23 July 2008, Wichert Akkerman wrote: > If there are no objections I intend to merge the branch to trunk in a > few days I am uncomfortable with the way you approached this. I think there are at least two other possibilities that I can see without having looked closer: 1. Use the in

Re: [Zope-dev] Utility factory handling for zope.component

2008-07-23 Thread Wichert Akkerman
Stephan Richter wrote: On Wednesday 23 July 2008, Wichert Akkerman wrote: If there are no objections I intend to merge the branch to trunk in a few days I am uncomfortable with the way you approached this. I think there are at least two other possibilities that I can see without havi

[Zope-dev] Re: Utility factory handling for zope.component

2008-07-23 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wichert Akkerman wrote: > Tools like GenericSetup which deal with mangement of utility > registration are a bit handicapped at the moment: even though you can > register a utility using a factory the utility registration itself > only runs the factory

[Zope-dev] Re: Deprecation Warning

2008-07-23 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 vyshakh krishnan wrote: > Hi everybody, > > > While porting Zope2 on Python2.5, I am now trying to remove the > deprecation warnings.Most of them are due to the raising of string > exceptions. One of such warnings in the module Products is > > /home

[Zope-dev] Re: Utility factory handling for zope.component

2008-07-23 Thread Philipp von Weitershausen
Wichert Akkerman wrote: Stephan Richter wrote: On Wednesday 23 July 2008, Wichert Akkerman wrote: If there are no objections I intend to merge the branch to trunk in a few days I am uncomfortable with the way you approached this. I think there are at least two other possibilities tha

[Zope-dev] Deprecation Warning

2008-07-23 Thread vyshakh krishnan
Hello everyone, Since the deprecation warning is due to the conversion of error_type into string by 'raise_standardErrorMessage' method, is it still necessary to use new user defined Exception class or do we want to modify the function 'raise_standardErrorMessage' . ___

Re: [Zope-dev] Re: Utility factory handling for zope.component

2008-07-23 Thread Stephan Richter
On Wednesday 23 July 2008, Philipp von Weitershausen wrote: > I think Stephan is referring to the (formerly) last item of the tuple, > which is available as utility_reg.info. It contains information about > how the component was registered, for instance the ZCML file name + line > number. > > It lo

[Zope-dev] Re: Deprecation Warning

2008-07-23 Thread Lennart Regebro
On Wed, Jul 23, 2008 at 20:26, vyshakh krishnan <[EMAIL PROTECTED]> wrote: > Hello everyone, > > Since the deprecation warning is due to the conversion of error_type > into string by 'raise_standardErrorMessage' method, is it still > necessary to use new user defined Exception class or do we want t

[Zope-dev] Re: Deprecation Warning

2008-07-23 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lennart Regebro wrote: > On Wed, Jul 23, 2008 at 20:26, vyshakh krishnan > <[EMAIL PROTECTED]> wrote: >> Hello everyone, >> >> Since the deprecation warning is due to the conversion of error_type >> into string by 'raise_standardErrorMessage' method, i