[Zope3-dev] Re: Re[2]: Zope 3.3.1

2007-01-15 Thread Philipp von Weitershausen
On 15 Jan 2007, at 09:47 , Groszer Adam wrote: Hello Philipp, I have one failure here: testPORTCannotConnect (zope.app.twisted.ftp.tests.test_zope_ftp.FTPServerPort DataConnectionTestCaes) What about that? ignore? Shrug. Not good. Does that happen with the Zope 3.3 branch checkout as

[Zope3-dev] Re[4]: Zope 3.3.1

2007-01-15 Thread Adam Groszer
Hello Philipp, .../repos/main/Zope3/branches/3.3 fails too on the same test. Buildbot seems to sleep these days. I ran into that with one of by fixes too. Monday, January 15, 2007, 10:37:52 AM, you wrote: On 15 Jan 2007, at 09:47 , Groszer Adam wrote: Hello Philipp, I have one failure here:

Re: [Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Chris Withers
Philipp von Weitershausen wrote: u'?xml version=1.0 encoding=something-else?node /' What should be done then? Not sure. We could ignore it or raise an error. I'm inclined to ignore it. That's what I do too... Chris -- Simplistix - Content Management, Zope Python Consulting -

[Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Martijn Faassen
Andreas Jung wrote: [snip] [Bernd Dorn] IMHO it should only accept strings, because in the value should be a xml string and therefore always has to be encoded in 'utf-8' or in the encoding specified in the processing instruction. I disagree with that. Since Zope 3 is supposed to use unicode

[Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Martijn Faassen
Philipp von Weitershausen wrote: [snip] A workaround inside parseString() would to check for unicode and convert the string on-the-fly to a Python string with utf-8 encoding. This is possibly a limitation of the underlying Expat parser...any recommendation how to deal with this issue? Fixed

Re: [Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Andreas Jung
--On 15. Januar 2007 13:26:16 +0100 Martijn Faassen [EMAIL PROTECTED] wrote: How would you propose to parse the following unicode string? u?xml version=1.0 encoding=ISO-8859-1?foo / If your parser is unicode-aware then the encoding of the preamble does not matter since you have already

[Zope3-dev] Re: Zope 3.3.1

2007-01-15 Thread Philipp von Weitershausen
On 15 Jan 2007, at 11:02 , Adam Groszer wrote: Hello Philipp, .../repos/main/Zope3/branches/3.3 fails too on the same test. Buildbot seems to sleep these days. I ran into that with one of by fixes too. Monday, January 15, 2007, 10:37:52 AM, you wrote: On 15 Jan 2007, at 09:47 , Groszer Adam

[Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Martijn Faassen
Hey, Gmane isn't updating so I can't really reply to the message (not visible in gmane) that I want to, but I saw the following solution proposed: def ourparse(text): if isinstance(text, unicode): text = text.encode('UTF-8') xml_parser.parse(text) now consider what will happen if

Re: [Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Andreas Jung
--On 15. Januar 2007 14:52:42 +0100 Martijn Faassen [EMAIL PROTECTED] wrote: Hey, Gmane isn't updating so I can't really reply to the message (not visible in gmane) that I want to, but I saw the following solution proposed: def ourparse(text): if isinstance(text, unicode): text

[Zope3-dev] Re: Zope 3.3.1

2007-01-15 Thread Michael Kerrin
On Monday 15 January 2007 13:23, Philipp von Weitershausen wrote: On 15 Jan 2007, at 11:02 , Adam Groszer wrote: Hello Philipp, .../repos/main/Zope3/branches/3.3 fails too on the same test. Buildbot seems to sleep these days. I ran into that with one of by fixes too. Monday,

[Zope3-dev] Re: Zope 3.3.1

2007-01-15 Thread Philipp von Weitershausen
On 15 Jan 2007, at 15:15 , Michael Kerrin wrote: On Monday 15 January 2007 13:23, Philipp von Weitershausen wrote: On 15 Jan 2007, at 11:02 , Adam Groszer wrote: Hello Philipp, .../repos/main/Zope3/branches/3.3 fails too on the same test. Buildbot seems to sleep these days. I ran into that

[Zope3-dev] Re[2]: Zope 3.3.1

2007-01-15 Thread Adam Groszer
Hello Michael, Win32, looking into that... Monday, January 15, 2007, 3:15:25 PM, you wrote: On Monday 15 January 2007 13:23, Philipp von Weitershausen wrote: On 15 Jan 2007, at 11:02 , Adam Groszer wrote: Hello Philipp, .../repos/main/Zope3/branches/3.3 fails too on the same test.

Re: [Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Martijn Faassen
Hey, On 1/15/07, Andreas Jung [EMAIL PROTECTED] wrote: [snip] ok, got it. But this problem can be solved easily by changing the encoding within the preamble. I would say refusing to guess and bailing out with an error message is better in this case. The Zen of Python: In the face of

Re: [Zope3-dev] Re[4]: Zope 3.3.1

2007-01-15 Thread Benji York
Adam Groszer wrote: Buildbot seems to sleep these days. Indeed. The Windows version tends to fall over and I've been too busy to notice of late. I wish I had time to try a newer version, but last time I did that Twisted had removed support for one of the APIs buildbot uses from their

[Zope3-dev] Idea: Failure to lookup adapters

2007-01-15 Thread Sidnei da Silva
One of the most common issues that I've faced, and watched several people struggle with, during Zope 3 development is to figure why a certain adapter is not found, or why a certain other adapter is found instead of the one you are expecting. I was wondering if there is something that could be

[Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: --On 14. Januar 2007 18:14:45 + Chris Withers [EMAIL PROTECTED] wrote: Dieter Maurer wrote: A halfway intelligent parser would accept Unicode when it gets it and concentrate on the remaining part of its task: either

[Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Martijn Faassen
Chris Withers wrote: Philipp von Weitershausen wrote: u'?xml version=1.0 encoding=something-else?node /' What should be done then? Not sure. We could ignore it or raise an error. I'm inclined to ignore it. That's what I do too... See my post elsewhere in the thread for an example of why

Re: [Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Andreas Jung
--On 15. Januar 2007 15:44:01 +0100 Martijn Faassen [EMAIL PROTECTED] wrote: Hey, On 1/15/07, Andreas Jung [EMAIL PROTECTED] wrote: [snip] ok, got it. But this problem can be solved easily by changing the encoding within the preamble. I would say refusing to guess and bailing out with

[Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Martijn Faassen
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: --On 14. Januar 2007 18:14:45 + Chris Withers [EMAIL PROTECTED] wrote: Dieter Maurer wrote: A halfway intelligent parser would accept Unicode when it gets it and concentrate on the remaining part of

[Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Martijn Faassen
Andreas Jung wrote: --On 15. Januar 2007 15:44:01 +0100 Martijn Faassen [EMAIL PROTECTED] wrote: On 1/15/07, Andreas Jung [EMAIL PROTECTED] wrote: [snip] ok, got it. But this problem can be solved easily by changing the encoding within the preamble. I would say refusing to guess and bailing

[Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martijn Faassen wrote: Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: --On 14. Januar 2007 18:14:45 + Chris Withers [EMAIL PROTECTED] wrote: Dieter Maurer wrote: A halfway intelligent parser would

Re: [Zope3-dev] Re: zope.tal.xmlparser.XMLParser() dislikes unicode

2007-01-15 Thread Andreas Jung
--On 15. Januar 2007 22:15:46 +0100 Martijn Faassen [EMAIL PROTECTED] wrote: My point is that: u?xml version=1.0 encoding=ISO-8859-1?fooSome non-ascii text/foo is confusing at best. One part of this says it's a unicode string, the other part says it's in encoding latin-1. The string

Re: [Zope3-dev] Idea: Failure to lookup adapters

2007-01-15 Thread Christian Theune
Am Montag, den 15.01.2007, 17:25 -0200 schrieb Sidnei da Silva: One of the most common issues that I've faced, and watched several people struggle with, during Zope 3 development is to figure why a certain adapter is not found, or why a certain other adapter is found instead of the one you are