Re: [Zope] delete a variable from REQUEST

2008-09-30 Thread indrajit926 indra
Hi, thanks for ur reply. My problem is, my code is like if REQUEST['usr_msg']: On Mon, Sep 29, 2008 at 1:36 PM, Tino Wildenhain <[EMAIL PROTECTED]> wrote: > Hi, > > indrajit926 indra wrote: > >> Hi All, >> >> Iam relatively new to zope. >> >> I want to delete a variable and it value from REQUE

Re: [Zope] delete a variable from REQUEST

2008-09-30 Thread indrajit926 indra
Hi, thanks for ur reply. My problem is, my code is like #code code code if REQUEST['usr_msg']: do some operations. #some code related to project my program control loops with above " if condition". REQUEST is in same context. so once REQUEST stores 'usr_msg ' every time when it goes t

Re: [Zope] delete a variable from REQUEST

2008-09-30 Thread Peter Bengtsson
Just set it to None. if REQUEST['usr_msg']: do_something() REQUEST.set('usr_msg', None) Then, the next time the condition will be false. 2008/9/30 indrajit926 indra <[EMAIL PROTECTED]>: > Hi, > > thanks for ur reply. > > My problem is, my code is like > > #code code code > > if REQUEST[

Re: [Zope] delete a variable from REQUEST

2008-09-30 Thread Tino Wildenhain
Hi, indrajit926 indra wrote: Hi, thanks for ur reply. My problem is, my code is like #code code code if REQUEST['usr_msg']: do some operations. #some code related to project my program control loops with above " if condition". REQUEST is in same context. so once REQUEST stores 'u

[Zope] Zope hangs

2008-09-30 Thread Nico Grubert
Hi there in the last days my Zope server seems to hang and the CPU is almost every time at 100 %. I installed DeadlockDebugger and see a lot of these entries: - File "/usr/local/Zope-2.10.5/lib/python/OFS/Traversable.

Re: [Zope] Zope hangs

2008-09-30 Thread Peter Bengtsson
Yes, and you can use the Control_Panel/DebugInfo as well and scroll down to the Connections table. Out of the 8 threads most of them should be vacant (ie. None) and if there are some requests logged there they should in the range of < 1 sec. If any of them are longer than 1 sec they are either stuc

Re: [Zope] Zope hangs

2008-09-30 Thread Nico Grubert
> Yes, and you can use the Control_Panel/DebugInfo as well and scroll > down to the Connections table. Out of the 8 threads most of them > should be vacant (ie. None) and if there are some requests logged > there they should in the range of < 1 sec. > If any of them are longer than 1 sec they are e

[Zope] anyone seen these errors with Zope 2.11.1?

2008-09-30 Thread Chris Withers
Hi All, I recently ugpraded to Zope 2.11.1 and now get the following errors every so often: Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render Module Products.PageTemplates.PageTemplate, line 96, in p

Re: [Zope] Zope hangs

2008-09-30 Thread Peter Bengtsson
2008/9/30 Nico Grubert <[EMAIL PROTECTED]>: >> Yes, and you can use the Control_Panel/DebugInfo as well and scroll >> down to the Connections table. Out of the 8 threads most of them >> should be vacant (ie. None) and if there are some requests logged >> there they should in the range of < 1 sec. >

[Zope] concerns with nfs

2008-09-30 Thread David Bear
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Since I have started using vmware ESX as a hosting platform for zope, I've been mostly happy. However, I am wondering if I should have any concerns with storing the zodb on nfs. All our file systems on ESX are nfs mounted and lately we have had some in

Re: [Zope] A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-30 Thread Dieter Maurer
Marco Bizzarri wrote at 2008-9-20 08:41 +0200: > ... >I'm working right now with Zope 2.8, which I don't think is running on >that version of ZODB; is is possible to backport such patch to Zope >2.8? I'm not asking to do the work, I'm just asking if, in theory, it >is possible to do it, or if it re

Re: [Zope] Strange redirect problem -- can someone assist?

2008-09-30 Thread Dieter Maurer
Dennis Allison wrote at 2008-9-28 22:56 -0700: > ... >My problem: In one form for one submit button, the redirect appears to >fail. The action is performed but the page to which the action redirects >upon completion is never displayed. Other actions from the same form work >fine. We have been t

Re: [Zope] Zope hangs

2008-09-30 Thread Dieter Maurer
Nico Grubert wrote at 2008-9-30 11:49 +0200: >in the last days my Zope server seems to hang and the CPU is almost >every time at 100 %. When your CPU is almost at 100 % over an extended period, then you do not have a typical "hanging" problem but rather something like a busy loop. >I installed D

Re: [Zope] anyone seen these errors with Zope 2.11.1?

2008-09-30 Thread Dieter Maurer
Chris Withers wrote at 2008-9-30 13:45 +0100: >I recently ugpraded to Zope 2.11.1 and now get the following errors >every so often: > ... > Module Products.PageTemplates.unicodeconflictresolver, line 69, in >resolve > Module zope.publisher.http, line 931, in getPreferredCharsets >ValueError:

[Zope] Moving zope data.fs

2008-09-30 Thread Jakob Carlsson
Hi everybody, I have two Data.fs files and the Products directory from a server that was running two Plone websites (don't know anything more about Zope or Plone versions than it was Plone 2.5.x) that I'm trying to get up and running on the new server with no access to the old installation (we re-i

Re: [Zope] Moving zope data.fs

2008-09-30 Thread Jeff Peterson
What's the error? -- Jeffrey D Peterson Webmaster Crary Industries, Inc. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jakob Carlsson Sent: Tuesday, September 30, 2008 2:39 PM To: zope@zope.org Subject: [Zope] Moving zope data.fs Hi everybody, I have two Data.fs files and the Pr