[Zope] Zope crashing a RedHat installation?
Hi, We're running Zope 2.7.3, Plone 1.0.something relatively large Data.fs ( 300MB ) Decent amount of anonymous traffic, But relatively low administrative use (1 - 2 users usually). Could these factors be brining the machine down? I've been getting intermittent 'corrupted data' messages for some time, but only recently been experiencing serious downtime. Is it time to seriously look at cleaning up the ZODB and upgrading? Or is my web host just trying to sell me more hardware? Any help much appreciated, - Aaron Bauman http://www.gaycenter.org ___ 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] Random Module
From ZopeBook 2.6: quote Using a module usage (pick a random choice from a list): span tal:replace=python:modules['random'].choice(['one', 'two', 'three', 'four', 'five']) a random number between one and five /span /quote Substitute any list you wish... to generate a random number [ 0 x 1 ), you'd just use something like quote tal:define define=random_floating_point_number python:modules['random'].random() / /quote I'd be curious to know if the random() method DOESN't work, cause the choice method has definitely worked for me... Hope it helps, - Aaron Bauman http://www.gaycenter.org -Original Message- From: David Siedband [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 2:38 PM To: ZOPE.org Subject: Re: [Zope] Random Module Are you sure you can't import the functions you need? It might be worthwhile to see if what you want to do can be done without adding to your allowed modules. That should be kind of a last resort. I'm curious what kind of functionality you need from random that can't be done within the importable functions... -- David On Aug 25, 2005, at 10:36 AM, Sam Boggess wrote: Why won't Zope let me call the random module? It's really annoying to have to write an external method to call such a simple tool. Is there a way around this? Thanks. ___ 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] REQUEST.setHeader doesn't seem to work?
Have you played w/ the capitalization of content-type in your call to setHeader? - Aaron Bauman http://www.gaycenter.org -Original Message- From: Yuan HOng [mailto:[EMAIL PROTECTED] Sent: Thursday, August 11, 2005 1:57 PM To: Zope@zope.org Subject: [Zope] REQUEST.setHeader doesn't seem to work? Hi, I have a dtml file on FSDV which should return a file in text/plain format. The dtml method starts with: dtml-call expr=RESPONSE.setHeader('content-type', 'text/plain') ... some content ... However, when I use 'curl -I' to check which Content-Type header is returned, I find it is still 'text/html', despite the call to setHeader. Where could the problem lie? I am using Zope 2.7.6, with Apache configured as frontend (with rewrite enabled). Could it be caused by Apache? -- Hong Yuan 大管家网上建材超市 www.homemaster.cn ___ 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 )