Re: [Zope-dev] zope-tests - FAILED: 8, OK: 39

2011-11-11 Thread Tres Seaver
 [1]FAILED  ZTK 1.1dev / Python2.7.2 Linux 64bit
https://mail.zope.org/pipermail/zope-tests/2011-November/052455.html

Looks like a transient network failure.


 [2]FAILED  Zope 3.4 KGS / Python2.4.6 64bit linux
https://mail.zope.org/pipermail/zope-tests/2011-November/052465.html

Why is the KGS pulling in new major versions?

 Getting distribution for 'zope.testing'.
 warning: no files found matching '*.test' under directory 'src'
 warning: no files found matching 'sampletests' under directory 'src'
 Got zope.testing 4.0.0.
 Getting distribution for 'zope.component==3.8.0'.
 Got zope.component 3.8.0.

(it then barfs on a Py-2.4-incompatible zope.schema).



 [3]FAILED  Zope 3.4 KGS / Python2.5.5 64bit linux
https://mail.zope.org/pipermail/zope-tests/2011-November/052466.html

Hmm, I don't get it:

 Getting distribution for 'zope.component==3.8.0'.
 Got zope.component 3.8.0.
 The version, 3.4.1, is not consistent with the requirement, 
 'zope.interface=3.6.0'.
 While:
   Installing test.
 Error: Bad version 3.4.1


 [4]FAILED  Zope 3.4 Known Good Set / py2.4-32bit-linux
https://mail.zope.org/pipermail/zope-tests/2011-November/052452.html

More incompatible version stuff.


 [5]FAILED  Zope 3.4 Known Good Set / py2.4-64bit-linux
https://mail.zope.org/pipermail/zope-tests/2011-November/052450.html

Like #2.


 [6]FAILED  Zope 3.4 Known Good Set / py2.5-32bit-linux
https://mail.zope.org/pipermail/zope-tests/2011-November/052459.html

Like #3.


 [7]FAILED  Zope 3.4 Known Good Set / py2.5-64bit-linux
https://mail.zope.org/pipermail/zope-tests/2011-November/052454.html

Like #2.


 [8]FAILED  winbot / z3c.form_py_265_32
https://mail.zope.org/pipermail/zope-tests/2011-November/052453.html

I can't parse the output from this one at all.



Tres.
-- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com

___
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: 9, OK: 39, UNKNOWN: 3

2011-11-11 Thread Zope tests summarizer
This is the summary for test reports received on the 
zope-tests list between 2011-11-10 00:00:00 UTC and 2011-11-11 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
[1]UNKNOWN : ZTK 1.0 / Python2.4.6 Linux 64bit
[2]UNKNOWN : ZTK 1.0 / Python2.5.5 Linux 64bit
[3]UNKNOWN : ZTK 1.0 / Python2.6.7 Linux 64bit
   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
[4]ZTK 1.1dev / Python2.7.2 Linux 64bit
[5]Zope 3.4 KGS / Python2.4.6 64bit linux
[6]Zope 3.4 KGS / Python2.5.5 64bit linux
[7]Zope 3.4 Known Good Set / py2.4-32bit-linux
[8]Zope 3.4 Known Good Set / py2.4-64bit-linux
[9]Zope 3.4 Known Good Set / py2.5-32bit-linux
[10]   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
   winbot / ZODB_dev py_254_win32
   winbot / ZODB_dev py_265_win32
   winbot / ZODB_dev py_265_win64
   winbot / ZODB_dev py_270_win32
   winbot / ZODB_dev py_270_win64
[11]   winbot / z3c.form_py_265_32
[12]   winbot / zope.app.basicskin_py_265_32
   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]UNKNOWN UNKNOWN : ZTK 1.0 / Python2.4.6 Linux 64bit
   https://mail.zope.org/pipermail/zope-tests/2011-November/052491.html


[2]UNKNOWN UNKNOWN : ZTK 1.0 / Python2.5.5 Linux 64bit
   https://mail.zope.org/pipermail/zope-tests/2011-November/052490.html


[3]UNKNOWN UNKNOWN : ZTK 1.0 / Python2.6.7 Linux 64bit
   https://mail.zope.org/pipermail/zope-tests/2011-November/052492.html


[4]FAILED  ZTK 1.1dev / Python2.7.2 Linux 64bit
   https://mail.zope.org/pipermail/zope-tests/2011-November/052507.html


[5]FAILED  Zope 3.4 KGS / Python2.4.6 64bit linux
   https://mail.zope.org/pipermail/zope-tests/2011-November/052516.html


[6]FAILED  Zope 3.4 KGS / Python2.5.5 64bit linux
   https://mail.zope.org/pipermail/zope-tests/2011-November/052517.html


[7]FAILED  Zope 3.4 Known Good Set / py2.4-32bit-linux
   https://mail.zope.org/pipermail/zope-tests/2011-November/052502.html


[8]FAILED  Zope 3.4 Known Good Set / py2.4-64bit-linux
   https://mail.zope.org/pipermail/zope-tests/2011-November/052500.html


[9]FAILED  Zope 3.4 Known Good Set / py2.5-32bit-linux
   https://mail.zope.org/pipermail/zope-tests/2011-November/052506.html


[10]   FAILED  Zope 3.4 Known Good Set / py2.5-64bit-linux
   https://mail.zope.org/pipermail/zope-tests/2011-November/052504.html


[11]   FAILED  winbot / z3c.form_py_265_32
   https://mail.zope.org/pipermail/zope-tests/2011-November/052503.html


[12]   FAILED  winbot / zope.app.basicskin_py_265_32
   https://mail.zope.org/pipermail/zope-tests/2011-November/052505.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: 9, OK: 39, UNKNOWN: 3

2011-11-11 Thread Tres Seaver
 [1]UNKNOWN UNKNOWN : ZTK 1.0 / Python2.4.6 Linux 64bit
https://mail.zope.org/pipermail/zope-tests/2011-November/052491.html
 
 
 [2]UNKNOWN UNKNOWN : ZTK 1.0 / Python2.5.5 Linux 64bit
https://mail.zope.org/pipermail/zope-tests/2011-November/052490.html
 
 
 [3]UNKNOWN UNKNOWN : ZTK 1.0 / Python2.6.7 Linux 64bit
https://mail.zope.org/pipermail/zope-tests/2011-November/052492.html

These three all fail in the buildout step with no stdout, e.g.:

 buildout failed slave lost ( 33 mins, 5 secs )



 [4]FAILED  ZTK 1.1dev / Python2.7.2 Linux 64bit
https://mail.zope.org/pipermail/zope-tests/2011-November/052507.html

Also a timeout, but this time with stdout.


 [5]FAILED  Zope 3.4 KGS / Python2.4.6 64bit linux
https://mail.zope.org/pipermail/zope-tests/2011-November/052516.html
 
 
 [6]FAILED  Zope 3.4 KGS / Python2.5.5 64bit linux
https://mail.zope.org/pipermail/zope-tests/2011-November/052517.html
 
 
 [7]FAILED  Zope 3.4 Known Good Set / py2.4-32bit-linux
https://mail.zope.org/pipermail/zope-tests/2011-November/052502.html
 
 
 [8]FAILED  Zope 3.4 Known Good Set / py2.4-64bit-linux
https://mail.zope.org/pipermail/zope-tests/2011-November/052500.html
 
 
 [9]FAILED  Zope 3.4 Known Good Set / py2.5-32bit-linux
https://mail.zope.org/pipermail/zope-tests/2011-November/052506.html
 
 
 [10]   FAILED  Zope 3.4 Known Good Set / py2.5-64bit-linux
https://mail.zope.org/pipermail/zope-tests/2011-November/052504.html

These all look like newer versions getting installed (not the KGS ones)
and breaking builds (the same errors as yesterday).


 [11]   FAILED  winbot / z3c.form_py_265_32
https://mail.zope.org/pipermail/zope-tests/2011-November/052503.html

Same inscrutable doctest failure as yesterday.


 [12]   FAILED  winbot / zope.app.basicskin_py_265_32
https://mail.zope.org/pipermail/zope-tests/2011-November/052505.html

Boostrap failure (looks like a timeout downloading zc.buildout).



Tres.
-- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com

___
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] force the output encoding to utf-8 in page templates

2011-11-11 Thread Yuri
Hi all!

  I've a Zope2 application with Postgresql. All is ok and utf-8 but page 
templates. This means that non utf-8 data is sent to the database, and 
the database complain with:

*Error Type: DataError*
*Error Value: invalid byte sequence for encoding UTF8: 0xe82527 HINT: 
This error can also happen if the byte sequence does not match the 
encoding expected by the server, which is controlled by client_encoding.

*This does not happen if I manually switch the browser encoding (Firefox 
- View - character encoding - Unicode (UTF-8)) and submit a form.

So my question is: how do I tell to page templates to output utf-8 
instead of iso8859-15? The output_encoding property does anything.

Obviously, changing default-zpublisher-encoding to utf-8 works, but 
other legacy applications will have problems on characted encoding.

Any idea?
**
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] force the output encoding to utf-8 in page templates

2011-11-11 Thread Yuri
Il 11/11/2011 12:43, Yuri ha scritto:
 Hi all!

  I've a Zope2 application with Postgresql. All is ok and utf-8 but 
 page templates. This means that non utf-8 data is sent to the 
 database, and the database complain with:

 *Error Type: DataError*
 *Error Value: invalid byte sequence for encoding UTF8: 0xe82527 
 HINT: This error can also happen if the byte sequence does not match 
 the encoding expected by the server, which is controlled by 
 client_encoding.

 *This does not happen if I manually switch the browser encoding 
 (Firefox - View - character encoding - Unicode (UTF-8)) and submit 
 a form.

 So my question is: how do I tell to page templates to output utf-8 
 instead of iso8859-15? The output_encoding property does anything.

 Obviously, changing default-zpublisher-encoding to utf-8 works, but 
 other legacy applications will have problems on characted encoding.

 Any idea?
 **


I've solved in page templates code:

 if not response.headers.has_key('content-type'):
 response.setHeader('content-type', self.content_type + 
';charset='  + self.output_encoding) - here add the utf-8, the 
publisher will find this filled and avoid to put the default.

on line 315 of ZopePageTemplate.py

Is there a better way? Thanks!
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] force the output encoding to utf-8 in page templates

2011-11-11 Thread morten
On Fri, 11 Nov 2011 12:56:30 +0100, Yuri y...@alfa.it wrote:
 Il 11/11/2011 12:43, Yuri ha scritto:
 Hi all!

  I've a Zope2 application with Postgresql. All is ok and utf-8 but
 page templates. This means that non utf-8 data is sent to the
 database, and the database complain with:

 *Error Type: DataError*
 *Error Value: invalid byte sequence for encoding UTF8: 0xe82527
 HINT: This error can also happen if the byte sequence does not match
 the encoding expected by the server, which is controlled by
 client_encoding.

 *This does not happen if I manually switch the browser encoding
 (Firefox - View - character encoding - Unicode (UTF-8)) and submit
 a form.

 So my question is: how do I tell to page templates to output utf-8
 instead of iso8859-15? The output_encoding property does anything.

 Obviously, changing default-zpublisher-encoding to utf-8 works, but
 other legacy applications will have problems on characted encoding.

 Any idea?
 **
 
 
 I've solved in page templates code:
 
  if not response.headers.has_key('content-type'):
  response.setHeader('content-type', self.content_type + 
 ';charset='  + self.output_encoding) - here add the utf-8, the 
 publisher will find this filled and avoid to put the default.
 
 on line 315 of ZopePageTemplate.py
 
 Is there a better way? Thanks!

Look for setting the default publisher encoding in the zope.conf
filesystem file and restart.  :)

-Morten
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Importing Unauthorized?

2011-11-11 Thread Brian R Brinegar

We're in the process of migrating from Zope 2.11 to Zope 2.13, we have scripts 
which raise string exceptions, which is no longer allowed by the version of 
python.

In particular, we have scripts which:

  raise Unauthorized

However, we don't seem to be able to import the Unauthorized exception from 
AccessControl or zExceptions. What is the new way to raise an Unauthorized 
exception from within a Zope Python Script?

Thanks,

Brian Brinegar
Web Services Coordinator
Engineering Computer Network

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Importing Unauthorized?

2011-11-11 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1




from zExceptions import Unauthorized
raise Unauthorized

But this will only workin unrestricted code.
Turn your code to browser views if you can.

- -aj

Brian R Brinegar wrote:
 We're in the process of migrating from Zope 2.11 to Zope 2.13, we
 have scripts which raise string exceptions, which is no longer
 allowed by the version of python.
 
 In particular, we have scripts which:
 
 raise Unauthorized
 
 However, we don't seem to be able to import the Unauthorized
 exception from AccessControl or zExceptions. What is the new way to
 raise an Unauthorized exception from within a Zope Python Script?
 
 Thanks,
 
 Brian Brinegar Web Services Coordinator Engineering Computer Network
 
 ___ Zope maillist  -
 Zope@zope.org https://mail.zope.org/mailman/listinfo/zope **   No
 cross posts or HTML encoding!  ** (Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce 
 https://mail.zope.org/mailman/listinfo/zope-dev )

- -- 
ZOPYX Limited   | zopyx group
Charlottenstr. 37/1 | The full-service network for Zope  Plone
D-72070 Tübingen| Produce  Publish
www.zopyx.com   | www.produce-and-publish.com
- 
E-Publishing, Python, Zope  Plone development, Consulting


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJOvS7sAAoJEADcfz7u4AZjiswLwJy0ALr//lJTYX16icAw1a59
rt9iVpckw3gme/NJ295K2HUbnL5T51XBiBE+uTqZmRzK3xH77JCq3rO4G2vfniyu
gEMwxW/h2Wa+Rs2WxM5UtVq1vhI/hsymEDDm9xUMRsqfU95sAQOcvUqm0sKc8bJB
ff4QtXYvTW663u4SqW/v9RRDdukVowD77DCJqmDUQ/Js2iYSR+qPYIjOlfk4l29D
yfxDdG+kdHlBrJ96/1EoriNlLfF6OOVrYKM2i70BJSIlB9pmjusxJQ5dGFwN9ylj
O8DgBXmfqtj/u4ye24giGQyV/L4jfiU27LQX3fFP7lqf/yB7BeNwi1jkRSrvGFlU
eDPtarxVODybKgb6M1AKL5E8GGzslqnE9iZd11Y9o2zWgxvjE1dedO+Nicv6ybP5
hXfuKSsd+Jpy32bfCF13ZT3PV7pE+0w/SLccXdTI+WlQeVY3XnNqdLeFtxdIH7mh
wjLgUc+dDaBNtbb8TmTjhfUYngaMWb4=
=2WVA
-END PGP SIGNATURE-
attachment: lists.vcf___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope-CMF] cmf-tests - OK: 4

2011-11-11 Thread CMF tests summarizer
This is the summary for test reports received on the 
cmf-tests list between 2011-11-10 00:00:00 UTC and 2011-11-11 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


   CMF-2.2 Zope-2.12 Python-2.6.6 : Linux
   CMF-2.2 Zope-2.13 Python-2.6.6 : Linux
   CMF-trunk Zope-2.13 Python-2.6.6 : Linux
   CMF-trunk Zope-trunk Python-2.6.6 : Linux

Non-OK results
--

___
Zope-CMF maillist  -  Zope-CMF@zope.org
https://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests