[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py test for unicode workaround in ZRPythonExpr

2007-02-21 Thread Andreas Jung
Log message for revision 72743: test for unicode workaround in ZRPythonExpr Changed: U Zope/trunk/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py -=- Modified: Zope/trunk/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py

[Zope-Checkins] SVN: Zope/branches/2.10/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py test for unicode workaround in ZRPythonExpr

2007-02-21 Thread Andreas Jung
Log message for revision 72744: test for unicode workaround in ZRPythonExpr Changed: U Zope/branches/2.10/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py -=- Modified: Zope/branches/2.10/lib/python/Products/PageTemplates/tests/testZopePageTemplate.py

[Zope-dev] Zope Tests: 7 OK

2007-02-21 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Tue Feb 20 12:00:00 2007 UTC to Wed Feb 21 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: Tue Feb 20 21:05:43 EST 2007

Re: [Zope] strange image error

2007-02-21 Thread Oliver Petznick
hi changed from i386 arch to amd64 and it works. same freebsd 6.1. thanks for help, oli On Feb 13, 2007, at 10:08 PM, Dieter Maurer wrote: Oliver Petznick wrote at 2007-2-13 13:16 +0100: aloha zopers. i have a zope2.9 instance installed on a freebsd box - zope is installed out of the

[Zope] Re: problem with input elements and unicode/utf-8

2007-02-21 Thread Jostein Leira
--- In [EMAIL PROTECTED], Daryl Daly [EMAIL PROTECTED] wrote: I have setup a test case which seems to show the problem. This test removes the database component. New install of zope 2.10.2: Zope Version (Zope 2.10.2-final, python 2.4.4, linux2) Python Version 2.4.4 (#1, Oct 23 2006,

Re: [Zope] Re: problem with input elements and unicode/utf-8

2007-02-21 Thread Andreas Jung
--On 21. Februar 2007 02:05:36 -0800 Jostein Leira [EMAIL PROTECTED] wrote: header_present = 'HTTP_ACCEPT_CHARSET' in self.request to header_present = 'HTTP_ACCEPT_CHARSET' in self.request.keys() I assume that the request implementation of Zope 3 and Zope 2 differ a bit when

Re: [Zope] Re: problem with input elements and unicode/utf-8

2007-02-21 Thread Andreas Jung
--On 21. Februar 2007 11:30:11 +0100 Andreas Jung [EMAIL PROTECTED] wrote: --On 21. Februar 2007 02:05:36 -0800 Jostein Leira [EMAIL PROTECTED] wrote: header_present = 'HTTP_ACCEPT_CHARSET' in self.request to header_present = 'HTTP_ACCEPT_CHARSET' in self.request.keys() I

Re: [Zope] How to get REST friendly urls from sql database

2007-02-21 Thread Gaute Amundsen
On Tuesday 20 February 2007 16:37, Andreas Jung wrote: --On 20. Februar 2007 16:30:43 +0100 Gaute Amundsen [EMAIL PROTECTED] wrote: Hi. Normally a url to an article in our CMS system would look roughly like this: http://www.dom.tld/aritcles/25245 Where 25245 would be an object of some

Re: [Zope] How to get REST friendly urls from sql database

2007-02-21 Thread Gaute Amundsen
On Tuesday 20 February 2007 17:39, Paul Winkler wrote: snip Another option is that the object at /articles could be an instance of a class that looks something like: class MyArticleContainer(): def __before_publishing_traverse__(self, unused, request): # Save the rest of the

Re: [Zope] How to call a script by it's name stored in a variable.

2007-02-21 Thread Jonathan
- Original Message - From: rieh25 [EMAIL PROTECTED] To: zope@zope.org Sent: Tuesday, February 20, 2007 10:30 PM Subject: [Zope] How to call a script by it's name stored in a variable. How can I do something like this? var = '/Projects/test_py' return call_by_name(var) Another

[Zope] Re: How to get REST friendly urls from sql database

2007-02-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gaute Amundsen wrote: On Tuesday 20 February 2007 17:39, Paul Winkler wrote: snip Another option is that the object at /articles could be an instance of a class that looks something like: class MyArticleContainer(): def

Re: [Zope] How to get REST friendly urls from sql database

2007-02-21 Thread Paul Winkler
On Wed, Feb 21, 2007 at 12:32:30PM +0100, Gaute Amundsen wrote: On Tuesday 20 February 2007 17:39, Paul Winkler wrote: snip Another option is that the object at /articles could be an instance of a class that looks something like: class MyArticleContainer(): def

[Zope] Re: How to get REST friendly urls from sql database

2007-02-21 Thread Laurence Rowe
Surely it should make no difference to caching as they are both GETs? The first is certainly prettier, if you want URLs like that then ZSQL methods should be able to help you (read the online zope book), or roll your own looking at the traverse subpath. Laurence Gaute Amundsen wrote: Hi.

[Zope] Re: problem with input elements and unicode/utf-8

2007-02-21 Thread Daryl Daly
On Wed, February 21, 2007 2:05 am, Jostein Leira wrote: How about changing the following line 996 in /lib/python/zope/publisher/http.py ( as described in http://www.zope.org/Collectors/Zope/2280 ) header_present = 'HTTP_ACCEPT_CHARSET' in self.request to header_present =

[Zope] frameset problems

2007-02-21 Thread Garry Saddington
I have this page: frameset rows=75%,25% frame src=dtml-var page frame src=dtml-call expr=getproperty(page=_['page']) /frameset The 'page' variable is in the request but no matter what I try I am having problems passing it the the python script 'getproperty'. Can anyone point me in the

Re: [Zope] frameset problems

2007-02-21 Thread Jonathan
- Original Message - From: Garry Saddington [EMAIL PROTECTED] To: zope@zope.org Sent: Wednesday, February 21, 2007 1:44 PM Subject: [Zope] frameset problems I have this page: frameset rows=75%,25% frame src=dtml-var page frame src=dtml-call expr=getproperty(page=_['page'])

Re: [Zope] Re: problem with input elements and unicode/utf-8

2007-02-21 Thread Jostein Leira
Andreas Jung [EMAIL PROTECTED] wrote: --On 21. Februar 2007 11:30:11 +0100 Andreas Jung wrote: --On 21. Februar 2007 02:05:36 -0800 Jostein Leira wrote: header_present = 'HTTP_ACCEPT_CHARSET' in self.request to header_present = 'HTTP_ACCEPT_CHARSET' in self.request.keys() I assume

Re: [Zope] Zope 2.6.4 + Win32 server

2007-02-21 Thread Philip Kilner
Hi David, David VanKirk wrote: I'm trying to migrate from a Linux server with Oracle to a win32 server with MS SQL Server. I need to run it behind a webserver so that I can connect through SSL. I've tried IIS, Apache + PCGI, and Apache + FastCGI. Has anyone been able to successfully run a

Re: [Zope] frameset problems

2007-02-21 Thread Tino Wildenhain
Garry Saddington schrieb: I have this page: frameset rows=75%,25% frame src=dtml-var page frame src=dtml-call expr=getproperty(page=_['page']) /frameset The 'page' variable is in the request but no matter what I try I am having problems passing it the the python script 'getproperty'. Can

Re: [Zope] Re: problem with input elements and unicode/utf-8

2007-02-21 Thread Dieter Maurer
Andreas Jung wrote at 2007-2-20 17:52 +0100: ... I can reproduce this error. Obviously RestrictedPython.compile_restricted_eval() can't deal correctly with unicode strings. Newer Python versions need to know the encoding of the source. In standard Python scripts, a coding comment in the form #

Re: [Zope] Zope 2.6.4 + Win32 server

2007-02-21 Thread Philip Kilner
Hi David, Please stay on the list - have added back in as CC. David VanKirk wrote: I was under the impression that you needed PCGI or FastCGI to get Zope and Apache to communicate. If you have another method, I'm open to try it. No, not at all - in fact FastCGI at least is deprecated in

Re: [Zope] Re: problem with input elements and unicode/utf-8

2007-02-21 Thread Andreas Jung
--On 21. Februar 2007 21:27:38 +0100 Dieter Maurer [EMAIL PROTECTED] wrote: Andreas Jung wrote at 2007-2-20 17:52 +0100: ... I can reproduce this error. Obviously RestrictedPython.compile_restricted_eval() can't deal correctly with unicode strings. Newer Python versions need to know the

Re: [Zope] Re: problem with input elements and unicode/utf-8

2007-02-21 Thread Dieter Maurer
Jostein Leira wrote at 2007-2-21 02:05 -0800: ... header_present = 'HTTP_ACCEPT_CHARSET' in self.request to header_present = 'HTTP_ACCEPT_CHARSET' in self.request.keys() I think this is a bug. After doing that change, IE6 and IE7 behaved consistently. HTTPRequest.keys is

Re: [Zope] Copy and Paste Problem

2007-02-21 Thread Dieter Maurer
Florian Fahrbach wrote at 2007-2-21 08:44 +0100: I hope somebody knows an answer to my rather strange problem. It seems that in our Zope-Installation (2.74) we screwed up the Copy/Cut/Paste-Mechanism. We can not copy any objects in the ZMI at all. The result always is, that the same object ist

[Zope] __bobo_traverse__ and wrappers

2007-02-21 Thread Garito
Hi all! Some days ago I begin this threat: http://www.mail-archive.com/zope@zope.org/msg26355.html Dieter point me to the solution and I try something like: def __bobo_traverse__(self, REQUEST, nombre): obj = getattr(self, nombre, None) if obj is None:

Re: [Zope] Zope 2.6.4 + Win32 server

2007-02-21 Thread Philip Kilner
Hi David, Once again, please stay on the list - you need to hit reply to all. David VanKirk wrote: I appreciate your help and links, but I'm still not getting anything. I did say it was fiddly! I've go to get some urgent stuff out of the way, but I'll have some time later and will do a