[Zope-dev] Zope Tests: 5 OK

2007-09-11 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Mon Sep 10 12:00:00 2007 UTC to Tue Sep 11 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Mon Sep 10 20:53:59 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-September/008321.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Mon Sep 10 20:55:30 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-September/008322.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Sep 10 20:57:00 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-September/008323.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Sep 10 20:58:31 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-September/008324.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Sep 10 21:00:02 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-September/008325.html

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


[Zope] How to upgrade Python in older Zope?

2007-09-11 Thread Tit-Liviu Leontin
Folks,


I desperately need support for large filesystem so the data.fs file can exceed 
2 GB.

I can only make minimal changes to the existing set-up, which consists of Zope 
2.5.1 (binary release, with Python 2.1.3) on Windows Server 2003 and NTFS.

From what I've read, the issue is with the old Python not having LFS enabled, 
so I thought I'd just upgrade it to 2.2.3 which has LFS enabled.

The question is, how do I do that? Windows installer for Python doesn't know 
what to upgrade in the Zope install, so I'm thinking to copy the right files 
from the extracted Python 2.2.3 in Zope folders.

What goes where? I appreciate your patience and spoonfeeding. :-)


Thanks in advance!
Titel





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


Re: [Zope] How to upgrade Python in older Zope?

2007-09-11 Thread Paul Winkler
On Tue, Sep 11, 2007 at 07:36:18AM -0700, Tit-Liviu Leontin wrote:
 Folks,
 
 
 I desperately need support for large filesystem so the data.fs file can 
 exceed 2 GB.
 
 I can only make minimal changes to the existing set-up, which consists of 
 Zope 2.5.1 (binary release, with Python 2.1.3) on Windows Server 2003 and 
 NTFS.
 
 From what I've read, the issue is with the old Python not having LFS 
 enabled, so I thought I'd just upgrade it to 2.2.3 which has LFS enabled.
 
 The question is, how do I do that? Windows installer for Python doesn't know 
 what to upgrade in the Zope install, so I'm thinking to copy the right files 
 from the extracted Python 2.2.3 in Zope folders.

That sounds like a really bad idea. From the Zope 2.5.1 release notes:

  * Zope requires Python 2.1 (Python 2.2 is currently *not* supported)


You should NOT assume that warning was put there for no reason :-)

Also, there's not a whole lot of expertise in this community on
building for Windows; we seem to be a linux/unix-heavy crowd. You'd better
stick to the binary releases and not mess with them, unless you can
find a bona-fide expert to help you.  Anyone? :-)

Meanwhile you might try migrating a *copy* of your Data.fs to Zope
first to Zope 2.6.4 (still uses Python 2.1.x) and then to Zope 2.7.7
(uses Python 2.3.x).

FWIW I recall 2.5 to 2.6 being a painless upgrade.  I think 2.7 was a
little more involved. The most likely problem to watch out for is
security-related issues: your code might accidentally rely on a
security weakness that was subsequently tightened, so you get
permission denied at unexpected times until your code and/or
configuration is fixed.  Install and turn on VerboseSecurity, it's a
big help with things like that.


-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How to upgrade Python in older Zope?

2007-09-11 Thread Tit-Liviu Leontin
Paul,


Thank you for the quick reply! I'm aware of the risk, but it seemed the easiest 
way to circumvent a limitation. I guess it would be even easier to find Python 
2.1.3 built with LFS enabled for Windows. :-)

The reason I'm reluctant to touch anything is that I use Zope for OpenFlow, and 
I depend on its requirements. Currently it's OpenFlow 0.7 IIRC, while the 
development stopped at 1.3 and the upgrade of that application is a pain I'm 
trying to avoid. Also, I'm looking for the easiest possible way out, because in 
a month or two the entire application will be replaced with another solution.

If there is no other way than take Zope through a few updates, then I'll give 
that a shot when I get some time to tinker with this.


Thanks again, keep the ideas coming!
Titel


- Original Message 
From: Paul Winkler [EMAIL PROTECTED]
To: zope@zope.org
Sent: Tuesday, September 11, 2007 6:30:12 PM
Subject: Re: [Zope] How to upgrade Python in older Zope?

On Tue, Sep 11, 2007 at 07:36:18AM -0700, Tit-Liviu Leontin wrote:
 Folks,
 
 
 I desperately need support for large filesystem so the data.fs file can 
 exceed 2 GB.
 
 I can only make minimal changes to the existing set-up, which consists of 
 Zope 2.5.1 (binary release, with Python 2.1.3) on Windows Server 2003 and 
 NTFS.
 
 From what I've read, the issue is with the old Python not having LFS 
 enabled, so I thought I'd just upgrade it to 2.2.3 which has LFS enabled.
 
 The question is, how do I do that? Windows installer for Python doesn't know 
 what to upgrade in the Zope install, so I'm thinking to copy the right files 
 from the extracted Python 2.2.3 in Zope folders.

That sounds like a really bad idea. From the Zope 2.5.1 release notes:

  * Zope requires Python 2.1 (Python 2.2 is currently *not* supported)


You should NOT assume that warning was put there for no reason :-)

Also, there's not a whole lot of expertise in this community on
building for Windows; we seem to be a linux/unix-heavy crowd. You'd better
stick to the binary releases and not mess with them, unless you can
find a bona-fide expert to help you.  Anyone? :-)

Meanwhile you might try migrating a *copy* of your Data.fs to Zope
first to Zope 2.6.4 (still uses Python 2.1.x) and then to Zope 2.7.7
(uses Python 2.3.x).

FWIW I recall 2.5 to 2.6 being a painless upgrade.  I think 2.7 was a
little more involved. The most likely problem to watch out for is
security-related issues: your code might accidentally rely on a
security weakness that was subsequently tightened, so you get
permission denied at unexpected times until your code and/or
configuration is fixed.  Install and turn on VerboseSecurity, it's a
big help with things like that.


-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )



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


RE: [Zope] How to upgrade Python in older Zope?

2007-09-11 Thread Doyon, Jean-Francois
Alternatively, possibly, you could split your storage into multiple
Data.fs files?

I'm not sure how you'd migrate the object reliably (never done it
myself), but it should be doable one would think?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Tit-Liviu Leontin
Sent: September 11, 2007 12:55
To: zope@zope.org
Subject: Re: [Zope] How to upgrade Python in older Zope?

Paul,


Thank you for the quick reply! I'm aware of the risk, but it seemed the
easiest way to circumvent a limitation. I guess it would be even easier
to find Python 2.1.3 built with LFS enabled for Windows. :-)

The reason I'm reluctant to touch anything is that I use Zope for
OpenFlow, and I depend on its requirements. Currently it's OpenFlow 0.7
IIRC, while the development stopped at 1.3 and the upgrade of that
application is a pain I'm trying to avoid. Also, I'm looking for the
easiest possible way out, because in a month or two the entire
application will be replaced with another solution.

If there is no other way than take Zope through a few updates, then I'll
give that a shot when I get some time to tinker with this.


Thanks again, keep the ideas coming!
Titel


- Original Message 
From: Paul Winkler [EMAIL PROTECTED]
To: zope@zope.org
Sent: Tuesday, September 11, 2007 6:30:12 PM
Subject: Re: [Zope] How to upgrade Python in older Zope?

On Tue, Sep 11, 2007 at 07:36:18AM -0700, Tit-Liviu Leontin wrote:
 Folks,
 
 
 I desperately need support for large filesystem so the data.fs file
can exceed 2 GB.
 
 I can only make minimal changes to the existing set-up, which consists
of Zope 2.5.1 (binary release, with Python 2.1.3) on Windows Server 2003
and NTFS.
 
 From what I've read, the issue is with the old Python not having LFS
enabled, so I thought I'd just upgrade it to 2.2.3 which has LFS
enabled.
 
 The question is, how do I do that? Windows installer for Python
doesn't know what to upgrade in the Zope install, so I'm thinking to
copy the right files from the extracted Python 2.2.3 in Zope folders.

That sounds like a really bad idea. From the Zope 2.5.1 release notes:

  * Zope requires Python 2.1 (Python 2.2 is currently *not* supported)


You should NOT assume that warning was put there for no reason :-)

Also, there's not a whole lot of expertise in this community on building
for Windows; we seem to be a linux/unix-heavy crowd. You'd better stick
to the binary releases and not mess with them, unless you can find a
bona-fide expert to help you.  Anyone? :-)

Meanwhile you might try migrating a *copy* of your Data.fs to Zope first
to Zope 2.6.4 (still uses Python 2.1.x) and then to Zope 2.7.7 (uses
Python 2.3.x).

FWIW I recall 2.5 to 2.6 being a painless upgrade.  I think 2.7 was a
little more involved. The most likely problem to watch out for is
security-related issues: your code might accidentally rely on a security
weakness that was subsequently tightened, so you get permission denied
at unexpected times until your code and/or configuration is fixed.
Install and turn on VerboseSecurity, it's a big help with things like
that.


-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )



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


Re: [Zope] How to upgrade Python in older Zope?

2007-09-11 Thread Maciej Wisniowski
 I desperately need support for large filesystem so the data.fs file can 
 exceed 2 GB.
Have you tried to simply pack ZODB? I'm not sure how it goes in Zope 2.5
but in more recent releases, under Control Panel/Database Management
there is a Pack button. Pack should remove historical entries from ZODB
and make it smaller.

Of course create a backup before ;)

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


[Zope] utf-8 over xmlrpc with zope2.9

2007-09-11 Thread Kevin
I am trying to send unicode encoded utf-8 or latin1 strings over xmlrpc 
to a method in zope.  The method in zope tries to decode the string and 
it seems detects ascii.  I then recieve an error that
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 4: 
ordinal not in range(128)


I can re-create this error in a python shell by doing something like:
 s = 'helló'
 s2 = unicode(s,'ascii')
so after looking at code, I assume this is what is happening instead of
 s2 = unicode(s,'iso-8859-1')

If  I  submit  to this method from  an html form, I have no error and 
the data is stored perfectly.


I have tried setting the encoding of xmlrpclib.Server to utf-8 and 
latin1(iso-8859-1) and making a custom transport for xmlrpclib where I 
add charset='utf-8' or charset='iso-8859-1'.


Is is not possible to send unicode characters  128 to zope?


The method is LDAPUserFolder.manage_edit_user()






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

http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] utf-8 over xmlrpc with zope2.9

2007-09-11 Thread Doyon, Jean-Francois
Should work, I use XML-RPC pretty heavily with utf-8 without much problems.

This error might be occurring because you're mixing unicode and non-unicode 
strings on the same page.

Send the full traceback and we'll know more ...

J.F. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Sent: September 11, 2007 13:56
To: zope@zope.org
Subject: [Zope] utf-8 over xmlrpc with zope2.9

I am trying to send unicode encoded utf-8 or latin1 strings over xmlrpc to a 
method in zope.  The method in zope tries to decode the string and it seems 
detects ascii.  I then recieve an error that
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 4: 
ordinal not in range(128)

I can re-create this error in a python shell by doing something like:
  s = 'helló'
  s2 = unicode(s,'ascii')
so after looking at code, I assume this is what is happening instead of   s2 
= unicode(s,'iso-8859-1')

If  I  submit  to this method from  an html form, I have no error and the data 
is stored perfectly.

I have tried setting the encoding of xmlrpclib.Server to utf-8 and
latin1(iso-8859-1) and making a custom transport for xmlrpclib where I add 
charset='utf-8' or charset='iso-8859-1'.

Is is not possible to send unicode characters  128 to zope?


The method is LDAPUserFolder.manage_edit_user()






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


RE: [Zope] utf-8 over xmlrpc with zope2.9

2007-09-11 Thread Doyon, Jean-Francois
To be more explicit.

The problem is that the strings received by XML-RPC where the encoding is utf-8 
end up internally as unicode u'' strings.

Other strings you're working with internally might not be however.

When you're trying to render a ZPT, if you have a mix of u'' and '' strings, 
you might end up with such UnicodeDecodeErrors ...

In my case, I make sure I use u'' strnigs everywhere, and set character sets to 
utf-8 everywhere, and so on.

Basically if needed you can make your whole system utf-8, avoiding the risks of 
those errors cropping up.

J.F. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doyon, 
Jean-Francois
Sent: September 11, 2007 14:01
To: Kevin; zope@zope.org
Subject: RE: [Zope] utf-8 over xmlrpc with zope2.9

Should work, I use XML-RPC pretty heavily with utf-8 without much problems.

This error might be occurring because you're mixing unicode and non-unicode 
strings on the same page.

Send the full traceback and we'll know more ...

J.F. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Sent: September 11, 2007 13:56
To: zope@zope.org
Subject: [Zope] utf-8 over xmlrpc with zope2.9

I am trying to send unicode encoded utf-8 or latin1 strings over xmlrpc to a 
method in zope.  The method in zope tries to decode the string and it seems 
detects ascii.  I then recieve an error that
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 4: 
ordinal not in range(128)

I can re-create this error in a python shell by doing something like:
  s = 'helló'
  s2 = unicode(s,'ascii')
so after looking at code, I assume this is what is happening instead of   s2 
= unicode(s,'iso-8859-1')

If  I  submit  to this method from  an html form, I have no error and the data 
is stored perfectly.

I have tried setting the encoding of xmlrpclib.Server to utf-8 and
latin1(iso-8859-1) and making a custom transport for xmlrpclib where I add 
charset='utf-8' or charset='iso-8859-1'.

Is is not possible to send unicode characters  128 to zope?


The method is LDAPUserFolder.manage_edit_user()






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