[Zope-dev] Zope Tests: 7 OK
Summary of messages to the zope-tests list. Period Sun Feb 18 12:00:00 2007 UTC to Mon Feb 19 12:00:00 2007 UTC. There were 7 messages: 7 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.6 Python-2.1.3 : Linux From: Zope Unit Tests Date: Sun Feb 18 21:04:48 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007286.html Subject: OK : Zope-2.6 Python-2.3.6 : Linux From: Zope Unit Tests Date: Sun Feb 18 21:06:18 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007287.html Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Sun Feb 18 21:07:48 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007288.html Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Unit Tests Date: Sun Feb 18 21:09:18 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007289.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Unit Tests Date: Sun Feb 18 21:10:49 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007290.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Unit Tests Date: Sun Feb 18 21:12:19 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007291.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Sun Feb 18 21:13:49 EST 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007292.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] Error Value: 'Set' object has no attribute 'count'
I am getting an error message when Zope is trying to evaluate the following: elif string.count(product_info['product']['options'],'lookup') == 1: The error message is: Error Value: 'Set' object has no attribute 'count' I have two instances of Zope running. On Zope 2.8.2-final, python 2.3.5, linux2, this does not occur. On Zope 2.8.7-1.el4.rf, python 2.3.4, linux2, it does occur. Could anyone suggest a solution? Thanks and regards Cameron ___ 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] Error Value: 'Set' object has no attribute 'count'
--On 19. Februar 2007 22:18:38 +1300 kjcsb [EMAIL PROTECTED] wrote: I am getting an error message when Zope is trying to evaluate the following: elif string.count(product_info['product']['options'],'lookup') == 1: The error message is: Error Value: 'Set' object has no attribute 'count' How reproduce with an out-of-the-box Zope installation? -aj pgpGHICcp8bMF.pgp Description: PGP signature ___ 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] Moodle and Zope SSO.
Hello all, I need to implement a SSO solution for Moodle and Zope. My use case is: 1. The user logs in Zope. 2. Zope logs in Moodle (in behalf of the user) and forwards the authentication cookie to the client. I suppose that the user has the same credentials in Zope and Moodle. I'm trying to implement a script like the one shown below but it seems too tricky and it does not work. Has anybody implemented this kind of sso with zope and moodle or whatever? Thank you very much! My script now looks like this: URL_AUTH = 'http://localhost/moodle/login/index.php' params = {'username':'foo', 'password':'bar'} conn = urllib2.urlopen(URL_AUTH, urlencode(params)) mycookie = conn.info().getheaders('Set-Cookie')[-1] # Get the cookie MOODLEID_ name = mycookie[0: int(mycookie.find(=))] # Get the name value = mycookie[mycookie.find(=)+1: mycookie.find(;)] # The value self.REQUEST.RESPONSE.setCookie(name, value, path='/moodle', domain='localhost') self.REQUEST.RESPONSE.redirect(http://localhost/moodle;) ___ 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] Cache values may only be in one cache
I'm getting the following error: Cache values may only be in one cache I'm getting this error every time I refresh my skin product. So I have to remember to restart zope every time I make a change. I'm running Plone 2.5.2 and Zope 2.9.6 On this page: http://plone.org/documentation/error/one_cache Wichert Akkerman says: Zope no longer supports product refreshing fully. For products using the component architecture it will probably never work. For others it can break as well. This is a Zope matter, not a Plone problem. Is this really true? Wouldn't it be an idea to remove the functionality completely then? ___ 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] Cache values may only be in one cache
Product refreshing is a brilliant timesaver for development if it suits your development style. Some people prefer to restart Zope on every change which is the only option for Zope 2.9 and Zope 2.8. The error is somehow related to the use of the Session Manager I think. If you instead use my Zope refreshing script http://www.fry-it.com/at/refresh-my-zope-products unlike automatic refreshing which comes out-of-the-box in Zope, the refresh is done before you reload the page which means that you won't no longer see this error message. Note: My script work best with the Zope 2.7 and Zope 2.8 branch. On 2/19/07, Jonas Nielsen [EMAIL PROTECTED] wrote: I'm getting the following error: Cache values may only be in one cache I'm getting this error every time I refresh my skin product. So I have to remember to restart zope every time I make a change. I'm running Plone 2.5.2 and Zope 2.9.6 On this page: http://plone.org/documentation/error/one_cache Wichert Akkerman says: Zope no longer supports product refreshing fully. For products using the component architecture it will probably never work. For others it can break as well. This is a Zope matter, not a Plone problem. Is this really true? Wouldn't it be an idea to remove the functionality completely then? ___ 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 ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.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] Suggestion for an opensource barchart/piechart graphic package in python
Hi, I am using matplotlib: http://matplotlib.sourceforge.net/ Joost On [EMAIL PROTECTED] Sat, Feb 17, 2007 at 07:07:50PM +0100 zope-mailing-list , Marco Bizzarri wrote: Hi all. I'm looking for an alternative to python gdchart for barchart/piechart in a web application. I'm looking to python gdchart 2, but I'm not sure on the status of maintenance of the project itself. Can someone provide advice? Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.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 ) -- You will be the victim of a bizarre joke. Joost van Lawick E: [EMAIL PROTECTED] W: http://www.lawick.nl/ signature.asc Description: Digital signature ___ 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] Suggestion for an opensource barchart/piechart graphic package in python
On 2/17/07, Bill Campbell [EMAIL PROTECTED] wrote: On Sat, Feb 17, 2007, Marco Bizzarri wrote: On 2/17/07, Bill Campbell [EMAIL PROTECTED] wrote: On Sat, Feb 17, 2007, Marco Bizzarri wrote: Hi all. I'm looking for an alternative to python gdchart for barchart/piechart in a web application. I'm looking to python gdchart 2, but I'm not sure on the status of maintenance of the project itself. I like gnuplot which makes it pretty easy to create a wide variety of plots. I know gnuplot; what is the support for python? I use it extensively in conjunction with python, buiding gnuplot files and data that are then used to generate image files. Ok, I took a look at it. However, my problem is that it forces me to install gnuplot also (am I wrong?) Since I'm working on a vertical product, which is already complex to install, I would avoid adding another tool... Thanks for your feedback, anyway. -- Marco Bizzarri http://iliveinpisa.blogspot.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] Suggestion for an opensource barchart/piechart graphic package in python
On 2/18/07, Richard Jones [EMAIL PROTECTED] wrote: I know gnuplot; what is the support for python? Google. gnuplot python It's not hard. Richard It's a lot harder to avoid making posts like this. If all that I needed was to get some package for creating charts using python (and Zope) , I could have completly avoided my post. What I was looking for (and most of the person which answered did) was to have someone which actually used the packages, or, better, were using it at the moment. I can see that there is a package for python with gnuplot. But is it used? Is it stable? Have it been used inside Zope environment? Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.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] Suggestion for an opensource barchart/piechart graphicpackage in python
- Original Message - From: Marco Bizzarri [EMAIL PROTECTED] On 2/18/07, Richard Jones [EMAIL PROTECTED] wrote: I know gnuplot; what is the support for python? It's a lot harder to avoid making posts like this. If all that I needed was to get some package for creating charts using python (and Zope) , I could have completly avoided my post. What I was looking for (and most of the person which answered did) was to have someone which actually used the packages, or, better, were using it at the moment. I can see that there is a package for python with gnuplot. But is it used? Is it stable? Have it been used inside Zope environment? It is very hard to find something at new zope site from 2004 Try ZGDChart, it is simple and good ___ 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] Suggestion for an opensource barchart/piechart graphicpackage in python
On 2/19/07, Jaroslav Lukesh [EMAIL PROTECTED] wrote: I can see that there is a package for python with gnuplot. But is it used? Is it stable? Have it been used inside Zope environment? It is very hard to find something at new zope site from 2004 Try ZGDChart, it is simple and good I tryied ZGDChart, and actually it is what we were using in the past. But gdchart development has stopped, and using it is more and more a problem. Regards Marco -- Marco Bizzarri http://iliveinpisa.blogspot.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] Suggestion for an opensource barchart/piechart graphic package in python
On 2/19/07, Martijn Pieters [EMAIL PROTECTED] wrote: On 19. feb. 2007, at 14.29, Marco Bizzarri wrote: Yes, pychart looks good, even though I have too look at what is needed in order to have it run (PIL?) Nope, pychart has no dependencies other than Python. Martijn Pieters Oh, a pure python product ;) That's great. I think I'm looking forward to make some tests with it. -- Marco Bizzarri http://iliveinpisa.blogspot.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] Suggestion for an opensource barchart/piechart
ChartDirector. Not open source, but very good and very affordable: http://www.advsofteng.com/ -- Harlow Pinson Indepth Learning Email: [EMAIL PROTECTED] Phone: 505 994-2135 Fax: 505 994-3603 ___ 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] Suggestion for an opensource barchart/piechart
On 2/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ChartDirector. Not open source, but very good and very affordable: http://www.advsofteng.com/ -- Harlow Pinson Indepth Learning Email: [EMAIL PROTECTED] Phone: 505 994-2135 Fax: 505 994-3603 Thanks, I would consider it for a non opensource project :-) -- Marco Bizzarri http://iliveinpisa.blogspot.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] Re: problem with input elements and unicode/utf-8
On Sun, February 18, 2007 1:29 pm, Jostein Leira wrote: After the comments in the Collector above I'm wondering what to do if I should not set the sys.setdefaultencoding()? Not changing the default encoding I always get a decode error when trying to save a page template with non-ascii characters. From the Collector: Correction: I can save page templates containing non-ascii characters, but not like this: tal:block tal:content=python:'æøå'/ Try: tal:content=python: unicode('æøå','utf8') I have had to do this on some of my templates after moving to 2.10.2 Daryl. ___ 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] Re: problem with input elements and unicode/utf-8
--On 18. Februar 2007 16:29:43 -0500 Jostein Leira [EMAIL PROTECTED] wrote: Have set sys.setdefaultencoding('utf-8') in /usr/local/lib/python2.4/site.py. Have set management_page_charset='utf-8' as property of / in ZMI. Have set default-zpublisher-encoding utf-8 in etc/zope.conf. Changing the default encoding is *not* the solution. Did you read this carefully? http://www.zope.org/Products/Zope/2.10.2/Zope-2.10.2_released After the comments in the Collector above I'm wondering what to do if I should not set the sys.setdefaultencoding()? Not changing the default encoding I always get a decode error when trying to save a page template with non-ascii characters. I would really love to see a *clear* and *detailed* description how this issue can be reproduced with a bare Zope installation in order to fix the issues (if there is one). -aj pgpEb5OeyObD0.pgp Description: PGP signature ___ 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] Re: problem with input elements and unicode/utf-8
Jostein Leira wrote at 2007-2-18 16:29 -0500: I have experienced on my installation that Zope decides that the character set should be iso-8859-1 for IE7 even no HTTP_ACCEPT_CHARSET is sent from IE7 and preferred charset is utf-8. Firefox submits HTTP_ACCEPT_CHARSET and Zope handles that OK. It is new for me that Zope treats Accept-Charset in any way (but I may be wrong). Usually, browsers respect the charset used when a form was delivered and submit the form in the same charset. As Zope has meanwhile forgotten which charset it used for the form delivery, you must tell it about the encoding using the magic conversion suffixes for request parameters. If you have an utf8 encoded value, you can append :utf8 to the parameter name and have it converted to a unicode string. This, you can then transform into any encoding you like. Beside utf8, you can use any encoding registered with codecs. -- Dieter ___ 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] Error Value: 'Set' object has no attribute 'count'
kjcsb wrote at 2007-2-19 22:18 +1300: I am getting an error message when Zope is trying to evaluate the following: elif string.count(product_info['product']['options'],'lookup') == 1: The error message is: Error Value: 'Set' object has no attribute 'count' Apparently string is a Set object in your context and not the string module as you expect. -- Dieter ___ 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] Moodle and Zope SSO.
Jose Luis de la Rosa Triviño wrote at 2007-2-19 13:07 +0100: I need to implement a SSO solution for Moodle and Zope. My use case is: 1. The user logs in Zope. 2. Zope logs in Moodle (in behalf of the user) and forwards the authentication cookie to the client. I suppose that the user has the same credentials in Zope and Moodle. I'm trying to implement a script like the one shown below but it seems too tricky and it does not work. Has anybody implemented this kind of sso with zope and moodle or whatever? We perform a remote login from one Zope instance on another Zope instance. The remote login puts the user identity into an encrypted token (together with a timestamp, to make replay attacks more difficult) and sends it to the second instance. This decrypts and checks the token and then performs its own login based on the user identity information. The same will work with any systems, not only Zope ones. -- Dieter ___ 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] Cache values may only be in one cache
Jonas Nielsen wrote at 2007-2-19 13:54 +0100: I'm getting the following error: Cache values may only be in one cache I'm getting this error every time I refresh my skin product. I think this is a long standing bug in the auto refresh machinery. Do not use auto refresh and the problem should not occur. The manual refresh is not affected. -- Dieter ___ 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] Moodle and Zope SSO.
I'm trying to implement a script like the one shown below but it seems too tricky and it does not work. Has anybody implemented this kind of sso with zope and moodle or whatever? We're using Zope and PHP apps with SSO build with use of CAS. Works good. For zope you'll find CAS4PAS authentication plugin for PHP I don't remember how it is called. CAS itself is java based application. -- 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 )
Re: [Zope] Re: problem with input elements and unicode/utf-8
Dieter, Andreas and Daryl Here comes a detailed description of a new Zope-installation I just made on a new Debian (testing) machine. Here are the steps to reproduce my problem. (I'm still not sure it is a problem other than me not understanding how this should work). Downloading Zope wget http://www.zope.org/Products/Zope/2.10.2/Zope-2.10.2.tgz tar -xzvf Zope-2.10.2.tgz cd Zope-2.10.2-final ./configure --prefix=/usr/local/zope make sudo make install sudo ./usr/local/zope/bin/mkzopeinstance.py /usr/local$ sudo chown -R zope.zope zope /usr/local$ sudo chown -R zope.zope zopeinst sudo jed /usr/local/zopeinst/etc/zope.conf -- set effective-user zope leira:/usr/local/zopeinst/bin# sudo ./runzope Logging in to ZMI directly to port 8080 I add a new Page Template. If the page template contains only hei på deg it saves OK and runs OK. If it contains either of the tal-lines below I get the following error message: div tal:content=python:unicode('hei på deg','utf8') / Compilation failed exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 33: ordinal not in range(128) div tal:content=python:u'hei på deg' / Compilation failed exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 26: ordinal not in range(128) div tal:content=python:'hei på deg' / Compilation failed exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 25: ordinal not in range(128) In this test I have used IE6 (and it is not passing HTTP_ACCEPT_CHARSET in the request). By the way: The character 'å' has value 0xe5 in iso-8859-1. Should the above tal-statements have worked? I have done no other configuration on the zope-instances than stated here but are consistant with my problems on another installation at work. Regards Jost - We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list.___ 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 )