[Zope] Re: Problem with zopectl debug

2008-04-05 Thread Manuel Vazquez Acosta
Manuel Vazquez Acosta wrote: The directory /var/zope/zope-prensa is where the real instance use to be. However for development and debuging I set up my working instance in my home. I removed the /var/zope/zope-prensa by simply removing compiled python modules: pyc's. How I still get this:

[Zope] Re: Problem with WebDAV and non-ascii titles

2008-04-01 Thread Pawel Lewicki
Dieter Maurer wrote: Pawel Lewicki wrote at 2008-3-28 15:52 +0100: I have a problem with accessing files with non-ascii titles via Enfold Desktop (WebDAV)- Zope 2.10.4). Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in

[Zope] Re: problem migrating ZClasses from Zope 2.6.1 to Zope 2.9.8

2008-03-26 Thread Max M
Allen Schmidt Sr. skrev: No idea even where to start. I played with creating a 'boring' object a while back but I am pretty sure ours is a tad more complicated. All the parts of our site I work on are in SQL and was never involved in the ZClass News stuff. It just works...and continues to

[Zope] Re: Problem With Installation

2007-12-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Victor Subervi wrote: Hi; I'm trying to install the latest Plone in a Zope 2.10.5 instance and I get this error: Traceback (most recent call last): ... from Products.CMFPlone import utils File /usr/local/zope/Products210/CMFPlone/utils.py,

[Zope] Re: Problem w/ Fresh Build

2007-12-24 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Victor Subervi wrote: Hi; I'm building Z29 on a new FBSD62 server from port. I've done this before with no problem. I followed the instructions exactly. Now, I get this: 2007-12-24 22:26:50 ERROR Zope Could not import Products.ATContentTypes

[Zope] Re: Problem w/ Fresh Build

2007-12-24 Thread Victor Subervi
Ah. Thanks :) On Dec 24, 2007 11:02 AM, Tres Seaver [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Victor Subervi wrote: Hi; I'm building Z29 on a new FBSD62 server from port. I've done this before with no problem. I followed the instructions exactly. Now, I

[Zope] Re: Problem w/ ZMySQLDA

2007-07-16 Thread J Cameron Cooper
[EMAIL PROTECTED] wrote: Forgive my ignorance, but not quite sure how to do that. Nonetheless... 1) There was no problem with any of this on the old server until the server crashed. 2) My backups were taken from a time when the old server was was working fine. 3) This problem occurs with

[Zope] Re: Problem Augmented assignment

2007-06-08 Thread julian
I have resolve my problem. It's very odd. It's the place of the operator... query = Eq('portal_type', 'J_Product') query = Eq('review_state', 'published') I replace this by : query = query Eq('portal_type', 'J_Product') query = query Eq('review_state', 'published') It's work :)

Re: [Zope] Re: Problem Augmented assignment

2007-06-08 Thread Dieter Maurer
julian wrote at 2007-6-4 10:34 +0200: The event.log ... Module None, line 8, in getProduct - PythonScript at /SITES/my_site/directory1/sub_directory1/getProduct - Line 8 Module AccessControl.ZopeGuards, line 478, in protected_inplacevar TypeError: Augmented assignment to And objects

[Zope] Re: Problem Augmented assignment

2007-06-06 Thread Josef Meile
julian schrieb: In fact it's a problem of AdvancedQuery : TypeError: Augmented assignment to And objects is not allowed in untrusted code If I don't write query = And(), there are no errors. But I want the function And :s . Does this also happens when you make an

[Zope] Re: Problem Augmented assignment

2007-06-04 Thread julian
The event.log 2007-06-04T10:18:18 ERROR Zope.SiteErrorLog http://test.home.com/directory/sub_directory/liste_product Traceback (innermost last): Module ZPublisher.Publish, line 115, in publish Module

[Zope] Re: Problem Augmented assignment

2007-06-04 Thread julian
A quick fix would be to move the code from your python script to an external method. Ok,thanks, but how can I call this external method in a page template. In a first page I have a form that submit 6 parameter in url. The second page must call the external method or python script(don't

[Zope] Re: Problem Augmented assignment

2007-06-04 Thread Josef Meile
A quick fix would be to move the code from your python script to an external method. Ok,thanks, but how can I call this external method in a page template. In a first page I have a form that submit 6 parameter in url. The second page must call the external method or python script(don't

[Zope] RE: Problem Getting dtml-with to work

2007-04-30 Thread Mark, Jonathan (Integic)
Thanks to the other Jonathan for advising me to try dtml-in objectIDs to find why dtml-with was not working as expected with FolderB. When I did that I realized that FolderB was not an actual folder. Rather, it was a Plone instance. One cannot not use dtml-with from outside a Plone instance to

Re: [Zope] RE: Problem Getting dtml-with to work

2007-04-30 Thread Andreas Jung
--On 30. April 2007 11:02:29 -0400 Mark, Jonathan (Integic) [EMAIL PROTECTED] wrote: Thanks to the other Jonathan for advising me to try dtml-in objectIDs to find why dtml-with was not working as expected with FolderB. When I did that I realized that FolderB was not an actual folder.

Re: [Zope] RE: Problem Getting dtml-with to work

2007-04-30 Thread Jonathan
Just the usual rant: do you have 3 good reasons for using DTML over ZPT? :-) Andreas One could also say: do you have 3 good reasons for using ZPT over DTML? ;-) Jonathan ___ Zope maillist - Zope@zope.org

Re: [Zope] RE: Problem Getting dtml-with to work

2007-04-30 Thread Tino Wildenhain
Andreas Jung schrieb: --On 30. April 2007 11:02:29 -0400 Mark, Jonathan (Integic) [EMAIL PROTECTED] wrote: Thanks to the other Jonathan for advising me to try dtml-in objectIDs to find why dtml-with was not working as expected with FolderB. When I did that I realized that FolderB was not

Re: [Zope] RE: Problem Getting dtml-with to work

2007-04-30 Thread Andreas Jung
--On 30. April 2007 17:12:34 +0200 Tino Wildenhain [EMAIL PROTECTED] wrote: 1) you mean ZPT and python script 2) one reason could be nobody rearranged the Zope-Book chapters in a way to move DTML chapter out of first sight ;-) Alan mentioned one good reason through private

[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

[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 =

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] 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] 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] Re: problem with input elements and unicode/utf-8

2007-02-20 Thread Andreas Jung
--On 19. Februar 2007 12:29:34 -0800 Jostein Leira [EMAIL PROTECTED] wrote: If it contains either of the tal-lines below I get the following error message: div tal:content=python:unicode('hei på deg','utf8') / I can reproduce this error. Obviously

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

2007-02-20 Thread Andreas Jung
--On 20. Februar 2007 17:52:52 +0100 Andreas Jung [EMAIL PROTECTED] wrote: --On 19. Februar 2007 12:29:34 -0800 Jostein Leira [EMAIL PROTECTED] wrote: If it contains either of the tal-lines below I get the following error message: div tal:content=python:unicode('hei på

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

2007-02-20 Thread Andreas Jung
--On 20. Februar 2007 18:52:51 +0100 Andreas Jung [EMAIL PROTECTED] wrote: --On 20. Februar 2007 17:52:52 +0100 Andreas Jung [EMAIL PROTECTED] wrote: --On 19. Februar 2007 12:29:34 -0800 Jostein Leira [EMAIL PROTECTED] wrote: If it contains either of the tal-lines below I get the

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

2007-02-20 Thread jleira
--- In [EMAIL PROTECTED], Andreas Jung [EMAIL PROTECTED] wrote: --On 20. Februar 2007 18:52:51 +0100 Andreas Jung [EMAIL PROTECTED] wrote: --On 20. Februar 2007 17:52:52 +0100 Andreas Jung [EMAIL PROTECTED] wrote: --On 19. Februar 2007 12:29:34 -0800 Jostein Leira [EMAIL PROTECTED] wrote: If

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

2007-02-19 Thread Daryl Daly
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

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

2007-02-19 Thread Andreas Jung
--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

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

2007-02-19 Thread Dieter Maurer
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

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

2007-02-19 Thread Jostein Leira
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] Re: problem with input elements and unicode/utf-8

2007-02-18 Thread Jostein Leira
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. http://www.zope.org/Collectors/Zope/2280

[Zope] Re: Problem Creating Instance

2006-11-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nancy Donnelly wrote: Hi; I built Z3 from FreeBSD ports. Went to create an instance and got this error: [EMAIL PROTECTED]:ports/www/zope3 (115) /usr/local/www/Zope3/bin/mkzopeinstance -d /usr/local/www/Zope3/main Traceback (most recent call

[Zope] Re: Problem with Zwiki mail-out

2006-01-10 Thread Simon Michael
Thanks Tracy, I'll include that in the next release. If you find more problems consider reporting at http://zwiki.org/IssueTracker as well so we don't miss it. -Simon ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope **

[Zope] Re: Problem with permissions in 2.8.4 (resolved)

2005-11-13 Thread Pablo Ziliani
Replying to my own post as I just found the answer to my problem (which had nothing to do with the version of zope). The problem was that when I mass-imported some folders to the new instance, I didn't check to retain the ownership information; thus the templates where executed whith the

[Zope] Re: Problem after upgrade zope from 2.6.0 - 2.8.4

2005-10-28 Thread Alexander Limi
On Thu, 27 Oct 2005 23:27:22 -0700, Tino Wildenhain [EMAIL PROTECTED] wrote: I fail to see how the zope could possibly influence the rendering of the very same HTML in a browser. Zope used to specify border=0 on images, put the title of the object in the alt tags of the image and other

Re: [Zope] Re: Problem after upgrade zope from 2.6.0 - 2.8.4

2005-10-28 Thread Tino Wildenhain
Am Donnerstag, den 27.10.2005, 23:55 -0700 schrieb Alexander Limi: On Thu, 27 Oct 2005 23:27:22 -0700, Tino Wildenhain [EMAIL PROTECTED] wrote: I fail to see how the zope could possibly influence the rendering of the very same HTML in a browser. Zope used to specify border=0 on

Re: [Zope] Re: Problem after upgrade zope from 2.6.0 - 2.8.4

2005-10-28 Thread Zhi-Wei Lu
On Oct 27, 2005, at 11:55 PM, Alexander Limi wrote: On Thu, 27 Oct 2005 23:27:22 -0700, Tino Wildenhain [EMAIL PROTECTED] wrote: I fail to see how the zope could possibly influence the rendering of the very same HTML in a browser. Zope used to specify border=0 on images, put the title

[Zope] Re: Problem with hasattr() and Zope 2.8.1

2005-10-05 Thread Doyon, Jean-Francois
Alec, Heh, thanks for the reply, I somehow have been using python for a few years now without ever running into that! I'm afraid I'm still baffled by it, mostly because I've used attributes named in such a manner up until now without problem ... From what you're saying I guess hasattr() being a

Re: [Zope] Re: Problem with hasattr() and Zope 2.8.1

2005-10-05 Thread Paul Winkler
Doyon, Jean-Francois said: But then, why does this code work ok? class CrosslingualSupport: Mix-in class to provide content objects with support for cross-lingual properties when needed. def clearCrosslingualAttributes(self, lang): For a given language,

Re: [Zope] Re: Problem with hasattr() and Zope 2.8.1

2005-10-05 Thread Paul Winkler
for propertyname in [ propname for propname in self.__multilingualproperties__.keys() if self.__multilingualproperties__[propname][1] == True ]: attname = '__' + propertyname + '_' + lang if hasattr(self, attname): delattr(self, attname) As you see on the

RE: [Zope] Re: Problem with hasattr() and Zope 2.8.1

2005-10-05 Thread Doyon, Jean-Francois
PROTECTED]; zope@zope.org Subject: Re: [Zope] Re: Problem with hasattr() and Zope 2.8.1 for propertyname in [ propname for propname in self.__multilingualproperties__.keys() if self.__multilingualproperties__[propname][1] == True ]: attname = '__' + propertyname + '_' + lang

[Zope] Re: Problem with links containing non-ascii characters in StructuredText

2005-09-29 Thread Chris Beaven
Maurits van Rees wrote: Hi, I have a problem getting links to function in StructuredText when they have non-ascii characters in the title. This can of course be solved by using html entities like 'ouml;'. But I have just started using utf-8 so I don't have to bother myself with writing html

Re: [Zope] Re: Problem with keep-alive timeout (zope: addressed to exclusive (zope: addressed to exclusive sender for this address) sender for this address)

2005-06-23 Thread Dieter Maurer
Ralph wrote at 2005-6-22 18:46 +0200: ... MS says: By default, HTTP 1.1 is enabled in Internet Explorer except when you establish an HTTP connection through a proxy server. When HTTP 1.1 is enabled, HTTP connections remain open (or persistent) by default until the connection is idle for one

Re: [Zope] Re: Problem with keep-alive timeout

2005-06-23 Thread Ralph
On Thursday 23 June 2005 19:33, Dieter Maurer - [EMAIL PROTECTED] wrote: It has nothing to do with a request timeout! So whats the reason that this f***ing browser using HTTP1.0? Zope understands large parts of HTTP 1.1, among others the Keep-Alive header, but it is not fully HTTP 1.1

[Zope] Re: Problem with keep-alive timeout (zope: addressed to exclusive (zope: addressed to exclusive sender for this address) sender for this address)

2005-06-22 Thread Ralph
On Tuesday 21 June 2005 23:28, Tres Seaver - [EMAIL PROTECTED] wrote: No that's not possible with HTTP1.0. The problem is, why IE is using HTTP1.0? With HTTP1.1 its possible to change keepalive-timeout. 'keepalive' only refers to the lenght of time that the browser-webserver connection

Re: [Zope] Re: Problem with keep-alive timeout

2005-06-22 Thread Andrew Langmead
If you really need handle an arbitrary processing time. You might need to separate the request submission from the processing, and the processing from the results display. Roughly the way it would work would be like dropping your laundry off at the cleaners. You bring in the dirty clothes

Re: [Zope] Re: Problem with keep-alive timeout

2005-06-22 Thread Jonathan
out. Ugly, but it should work. Jonathan - Original Message - From: Andrew Langmead [EMAIL PROTECTED] To: Ralph [EMAIL PROTECTED] Cc: ZopeList List zope@zope.org Sent: Wednesday, June 22, 2005 1:11 PM Subject: Re: [Zope] Re: Problem with keep-alive timeout If you really need handle

Re: [Zope] Re: Problem with keep-alive timeout

2005-06-22 Thread Andrew Langmead
On Jun 22, 2005, at 1:25 PM, Jonathan wrote:Set up your web page so that it has two frames: the main frame (visable) invokes the long running zope script;  and a secondary (hidden) frame uses a _javascript_ routine (running on a timer) which queries a no-op zope script. This should stop your

[Zope] Re: Problem with keep-alive timeout (zope: addressed to exclusive sender for this address)

2005-06-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ralph wrote: On Tuesday 21 June 2005 19:16, Dieter Maurer - [EMAIL PROTECTED] wrote: Ralph wrote at 2005-6-20 22:36 +0200: The easiest way would be to use a different browser ;-) I think IE can be customized to use a different timeout (I do not

[Zope] Re: problem with ZODB

2005-05-09 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 JV Singh wrote: I have been a silent member of the list mostly.. There is a slight problem that needs to be addressed rather urgently... The thing is that though unicode strings can be input and retrieved into the database through Zope.. For

[Zope] Re: problem with ZODB

2005-05-09 Thread Tres Seaver
JV Singh wrote: I am using Gadfly. - the one that comes with Zope... For testing whether it would work or not... OK, I just created a folder, 'gadfly_test', in a Zope 2.7 site, and added a ZGadflyConnection, 'gadfly', using the 'demo' connection. On its Test tab, I executed the following:

[Zope] RE: Problem on using nested dtml-ifdtml-in

2001-01-17 Thread Spicklemire, Jerry
Oops! What I meant to say was: "The only /dtml-if tag you need is that final one." (see prior post on this topic) Later, Jerry S. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or

[Zope] Re: Problem

2000-07-26 Thread Chris McDonough
Anvita, JavaScript is inlined in a DTML method just like it would be inside a file on a filesystem. Because JavaScript runs on the client, you just need to make sure that you return it somehow in the response to the client. There is no "magic" to doing this... as a simple example: - create a

Re: [Zope] Re: Problem with LocalFS

2000-06-24 Thread jensebaer
PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 23, 2000 2:35 AM Subject: [Zope] Re: Problem with LocalFS This is a known problem with LocalFS. The only workaround I know of is to put your dtml code into a file, give it a .dtml extension, and place it in the directory you want to upload

[Zope] Re: Problem with LocalFS

2000-06-22 Thread Jonothan Farr
This is a known problem with LocalFS. The only workaround I know of is to put your dtml code into a file, give it a .dtml extension, and place it in the directory you want to upload to. This problem will be addressed in the next version of LocalFS. --jfarr "Perl is worse than Python because