Re: [Zope3-dev] test errors due to ascii defaultencoding assumption

2005-10-19 Thread Stefan Rank
on 19.10.2005 21:15 Tim Peters said the following: [Stephan Richter] I am pretty sure that it is strongly discouraged to change the default encoding in site.py. Can anyone confirm this? I think based on this discouragement we always assume that noone changes their site.pp. If you're running a

Re: [Zope3-dev] Re: tagged value handling inconsequent for interface methods and attributes and interfaces themself

2005-10-19 Thread Philipp von Weitershausen
Jim Fulton wrote: > > This is, for example, useful for setting the precondition on __setitem__ > > method defintions for containers:: > > > > class IRecipeContainer(IContainer): > > def __setitem__(name, object): > > """Add a recipe""" > > __setitem__.precondition = ItemType

[Zope3-dev] initial checkin of cxoracleda

2005-10-19 Thread Bernd Dorn
For anyone who is interested in connecting zope3 to oracle I checked in an Oracle DB Adapter to the zope repository which is using the cx_oracle library http://www.computronix.com/ utilities.shtml#Oracle it is tested against 3.0 and 3.1 versions of zope see: http://svn.zope.org/cxoracleda/

Re: [Zope3-dev] test errors due to ascii defaultencoding assumption

2005-10-19 Thread Tim Peters
[Stephan Richter] > I am pretty sure that it is strongly discouraged to change the default > encoding in site.py. Can anyone confirm this? I think based on this > discouragement we always assume that noone changes their site.pp. If you're running a personal Python, and are willing to deal with all

Re: [Zope3-dev] Re: tagged value handling inconsequent for interface methods and attributes and interfaces themself

2005-10-19 Thread Jim Fulton
Philipp von Weitershausen wrote: Grégoire Weber wrote: while modeling the external API of an application I'd like to use the tagged value feature of the interface implementation. It seems to me that handling tagged values is implemented inconsequently. It would be nice if tagging attributes a

Re: [Zope3-dev] tagged value handling inconsequent for interface methods and attributes and interfaces themself

2005-10-19 Thread Jim Fulton
Stephan Richter wrote: On Wednesday 19 October 2005 05:51, Grégoire Weber wrote: Hi everybody, while modeling the external API of an application I'd like to use the tagged value feature of the interface implementation. It seems to me that handling tagged values is implemented inconsequently.

[Zope3-dev] Re: tagged value handling inconsequent for interface methods and attributes and interfaces themself

2005-10-19 Thread Philipp von Weitershausen
Grégoire Weber wrote: > while modeling the external API of an application I'd like to use the > tagged value feature of the interface implementation. > > It seems to me that handling tagged values is implemented inconsequently. > > It would be nice if tagging attributes and interfaces would look

[Zope3-dev] Re: test errors due to ascii defaultencoding assumption

2005-10-19 Thread Michael Hudson
Stephan Richter <[EMAIL PROTECTED]> writes: > On Wednesday 19 October 2005 03:25, Stefan Rank wrote: >> I recently ran the zope3 test suite on a fresh checkout. >> and I have a non-ascii default encoding set up in my python's >> site.py file. To be exact, on Windows it is:: > > I am pretty sure th

Re: [Zope3-dev] Re: Deleting utilities in site management doesn't work correct

2005-10-19 Thread Stephan Richter
On Tuesday 18 October 2005 10:46, Tres Seaver wrote: > I was in the midst of writing a 'tools.txt' doctest which would have > provided the basis for such a test when I wrote my "keening" post.  In > case you missed the attacment, here it is again. I was looking at the file actually before, but I w

Re: [Zope3-dev] test errors due to ascii defaultencoding assumption

2005-10-19 Thread Stephan Richter
On Wednesday 19 October 2005 03:25, Stefan Rank wrote: > - would it make sense to put:: > >      reload(sys) >      sys.setdefaultencoding('ascii') > >    there instead? >    To allow the tests to run also on non-default systems. Using reload is a big no-no. > - does a non-ascii defaultencoding p

Re: [Zope3-dev] test errors due to ascii defaultencoding assumption

2005-10-19 Thread Stephan Richter
On Wednesday 19 October 2005 03:25, Stefan Rank wrote: > I recently ran the zope3 test suite on a fresh checkout. > and I have a non-ascii default encoding set up in my python's > site.py file. To be exact, on Windows it is:: I am pretty sure that it is strongly discouraged to change the default

Re: [Zope3-dev] tagged value handling inconsequent for interface methods and attributes and interfaces themself

2005-10-19 Thread Stephan Richter
On Wednesday 19 October 2005 05:51, Grégoire Weber wrote: > Hi everybody, > > while modeling the external API of an application I'd like to use the > tagged value feature of the interface implementation. > > It seems to me that handling tagged values is implemented inconsequently. > > It would be n

[Zope3-dev] tagged value handling inconsequent for interface methods and attributes and interfaces themself

2005-10-19 Thread Grégoire Weber
Hi everybody, while modeling the external API of an application I'd like to use the tagged value feature of the interface implementation. It seems to me that handling tagged values is implemented inconsequently. It would be nice if tagging attributes and interfaces would look the same as tagging

[Zope3-dev] test errors due to ascii defaultencoding assumption

2005-10-19 Thread Stefan Rank
Hi list I recently ran the zope3 test suite on a fresh checkout. and I have a non-ascii default encoding set up in my python's site.py file. To be exact, on Windows it is:: In [1]: import sys In [2]: sys.getdefaultencoding() Out[2]: 'cp1252' (on the Linux box it's 'utf-8') I get several