[Zope] Re: Zope + Apache on Quad Debian machine

2006-03-16 Thread Max M
Hugo Ramos wrote: "Has any1 tried this before? Can you point me to some documentation? What's your experience? is it true that not doing this the 4 cpu's will not be 100% used?" I think these questions are very ZOPE RELATED since I asked them in a Zope mailing list don't you think? Eh ... it

Re: [Zope] Zope + Apache on Quad Debian machine

2006-03-16 Thread Reinoud van Leeuwen
On Wed, Mar 15, 2006 at 05:45:23PM -0300, Hugo Ramos wrote: > Yellow, > > I'm using Zope+Apache on a 4 xeon's/4GB ram machine running Debian. > I've noticed that the CPU's never go beyond 30% top occupation... but > on rush hours the site takes too long to load... > > I've been reading about proc

Re: [Zope] display results from external source in zpt

2006-03-16 Thread Chris Withers
Dean Hale wrote: I'm assuming i need to add some extra details to the __init__.py file is this correct and if so have you any ideas what they would be from Products.PythonScripts.Utility import allow_module allow_module('urllib') I dunno if it'll help, but try enabling verbose security in

Re: [Zope] display results from external source in zpt

2006-03-16 Thread Chris Withers
Andreas Jung wrote: allow_module() is not a solution for all and everything (consider it a hack). Don't be rediculous. It's not a hack, it's the documented way of providing security assertions from existing code without having to patch it. That sounds a lot like what the component architect

Re: [Zope] Re: Ape

2006-03-16 Thread Chris Withers
Paul Winkler wrote: On Tue, Mar 14, 2006 at 10:29:05PM +, Chris Withers wrote: Ouch, DirectoryViews are more likely what you want... Sure, they're great. But through the web they are read-only. That's hardly a complete replacement for Ape. Depends on CK's real needs of course. Let's ha

Re: [Zope] Re: Ape

2006-03-16 Thread Chris Withers
Hi Chris, Please keep replies on the list... Chris Kratz wrote: Thanks for the pointers. But, isn't directory view part of plone? Yes, but they are more a part of CMF. You can either just install the CMFCore product, or I remember there being a couple of packagings on DirectoryView on its

Re: [Zope] Re: Zope + Apache on Quad Debian machine

2006-03-16 Thread Chris Withers
Hugo Ramos wrote: I think these questions are very ZOPE RELATED since I asked them in a Zope mailing list don't you think? No, we don't. This has nothing specific to do with Zope. Process affinity is an OS-specific thing, and if you care about it you should as on an OS-specific forum. In your

[Zope] Re: Zope + Apache on Quad Debian machine

2006-03-16 Thread Max M
Chris Withers wrote: Hugo Ramos wrote: However, as an aside, how have you established that processor affinity is the problem here? I'd suggest looking at your disk and memory usage patterns. i/o wait or swap death could quite easily see your processors only hitting 30% even if the affinity is

Re: [Zope] Re: Zope + Apache on Quad Debian machine

2006-03-16 Thread Bakhtiar A Hamid
> Hugo Ramos wrote:>> However, as an aside, how have you established that processor affinity > is the problem here? I'd suggest looking at your disk and memory usage> patterns. i/o wait or swap death could quite easily see your processors> only hitting 30% even if the affinity is locked down exactl

[Zope] how to count authenticated and anonymous users currently online ?

2006-03-16 Thread Luca Dall'Olio
I would like to know how many anonymous users are online and also if some authenticated users are. I tried with "guest counter" but couldn't make it work, and tried also to inspect temp-folder/session_data but I get a security error. Is there a way to accomplish this? Thank you everybody in ad

Re: [Zope] Zope + Apache on Quad Debian machine

2006-03-16 Thread S.Hayles
You can do something like: /usr/bin/taskset -c 0 zeo/bin/zeoctl start /usr/bin/taskset -c 1 zope.a/bin/zopectl start /usr/bin/taskset -c 2 zope.b/bin/zopectl start /usr/bin/taskset -c 3 zope.c/bin/zopectl start You then need to load-balance across the ZOPE instances with (eg Pound or Squid).

Re: [Zope] Using Twisted rather than ZServer with Zope >= 2.9.0

2006-03-16 Thread Chris McDonough
You're right. If you need it, and don't have time to make it prod- ready, you could probably get someone from the Twisted community to help if they used that code as a reference. - C On Mar 15, 2006, at 9:59 PM, Dennis Allison wrote: Ummm well the sprint code does not look like it's p

Re: [Zope] Re: Zope + Apache on Quad Debian machine

2006-03-16 Thread Martijn Pieters
On 3/16/06, Tino Wildenhain <[EMAIL PROTECTED]> wrote: > > Hey... but thank you Jens for spending all that time writing an email > > that doesn't help any1 at all...!!! > > check google for "multiple use of exclamation marks". Or look up Terry Pratchett quotes on www.lspace.org: '"Multiple exclam

RE: [Zope] Zope + Apache on Quad Debian machine

2006-03-16 Thread John Snowdon
Why do you want to do this? Do you believe that this is more effective or efficient than the scheduling algorithm that Linux uses? Binding an application to a single processor makes very little sense at all. If Zope really is your limiting factor, then you need to spread that load over as many pro

[Zope] to inherit from CMFDefault.NewsItem

2006-03-16 Thread Sergio Gomez
Hi, In my development I need a product which is basicly like CMFDefault.NewsItem, but I need to add a Selection field (SelectionWidget). Is there a way of inheriting CMFDefault.NewsItem and just add what I need? Thanks, Sergio ___ Zope maillist - Zope

Re: [Zope] Zope + Apache on Quad Debian machine

2006-03-16 Thread Stefan H. Holek
a) Your system may be I/O bound - not CPU bound - so you will never see the CPU max out because the limiting factors are memory and disk/ network access. b) Make sure to tune Python's checkinterval. While you should *always* do that, it is especially important on multi-processor/multi- core

[Zope] Forum product

2006-03-16 Thread cristina clavijo
Hi! I need a forum in my plone site which has the following installation: - Zope 2.7.8 - Plone 2.1.2 - Python 2.3.5 - LinguaPlone 0.9 I have tried the following ones with no succeed: - CMFBoard doesn't work with Plone 2.1.x - PloneBoard works only with Zope 2.8 - SimpleForum works correctly but i

Re: [Zope] Forum product

2006-03-16 Thread Jens Vagelpohl
On 16 Mar 2006, at 14:15, cristina clavijo wrote: Hi! I need a forum in my plone site which has the following installation: - Zope 2.7.8 - Plone 2.1.2 - Python 2.3.5 - LinguaPlone 0.9 I have tried the following ones with no succeed: - CMFBoard doesn't work with Plone 2.1.x - PloneBoard works

[Zope] iptables problem

2006-03-16 Thread JulianRead
Hi ive installed zope on a dedicated server with linux fedora core3 on port 8080 Ive used webmin to put port 8080 onto my linuix packet filtering iptable Every time i reboot the server the iptables also reboot and i have to set them up again for people to access zope Does anyone know how to sto

Re: [Zope] iptables problem

2006-03-16 Thread Jens Vagelpohl
On 16 Mar 2006, at 14:37, JulianRead wrote: Hi ive installed zope on a dedicated server with linux fedora core3 on port 8080 Ive used webmin to put port 8080 onto my linuix packet filtering iptable Every time i reboot the server the iptables also reboot and i have to set them up aga

Re: [Zope] iptables problem

2006-03-16 Thread Bert Vanderbauwhede
> Every time i reboot the server the iptables also reboot and i have to set > them up again for people to access zope > > Does anyone know how to stop this happening? After you configured iptables, do "service iptables save". That should do it. Bert... ___

Re: [Zope] Zope + Apache on Quad Debian machine

2006-03-16 Thread Hugo Ramos
Thank you all !! (very insane multiple exclamation marks) I've been trying different scenarios and Zope performance increased 10 to 11 times faster... Cheers Hugo On 3/16/06, Stefan H. Holek <[EMAIL PROTECTED]> wrote: > a) Your system may be I/O bound - not CPU bound - so you will ne

Re: [Zope] Zope + Apache on Quad Debian machine

2006-03-16 Thread Paul Winkler
On Thu, Mar 16, 2006 at 02:38:04PM +0100, Stefan H. Holek wrote: > a) Your system may be I/O bound - not CPU bound - so you will never > see the CPU max out because the limiting factors are memory and disk/ > network access. On that note, if running linux on a box with IDE disks, make sure that

Re: [Zope] Re: Ape

2006-03-16 Thread Chris Kratz
On Thursday 16 March 2006 02:41 am, Chris Withers wrote: > Chris Kratz wrote: > > Thanks for the pointers. But, isn't directory view part of plone? > > Yes, but they are more a part of CMF. You can either just install the > CMFCore product, or I remember there being a couple of packagings on > Dir

[Zope] read-only-database

2006-03-16 Thread Ulla Theiss
Hello list, I want to run the database in read-only mode from CD and configured it accordingly in the zope.conf: read-only-database on enable-product-installation off zserver-read-only-mode on Starting Zope, I get the following error: Traceback (most recent call last): File "\Programme\Zope

Re: [Zope] Re: Ape

2006-03-16 Thread Chris Kratz
> Now, if using svn for source control is the only reason he was using > APE, surely you'd agree that DirecotyViews are a more appropriate method? > > cheers, > > Chris Yes, you are more or less correct. The primary reason we went to APE was after having tried the nightmares of the various zope

Re: [Zope] Re: Ape

2006-03-16 Thread Paul Winkler
On Thu, Mar 16, 2006 at 11:00:11AM -0500, Chris Kratz wrote: > > Now, if using svn for source control is the only reason he was using > > APE, surely you'd agree that DirecotyViews are a more appropriate method? > > > > cheers, > > > > Chris > > Yes, you are more or less correct. The primary rea

Re: [Zope] Re: Ape

2006-03-16 Thread Chris Kratz
On Thursday 16 March 2006 12:18 pm, Paul Winkler wrote: > On Thu, Mar 16, 2006 at 11:00:11AM -0500, Chris Kratz wrote: > > > Now, if using svn for source control is the only reason he was using > > > APE, surely you'd agree that DirecotyViews are a more appropriate > > > method? > > > > > > cheers,

Re: [Zope] Re: Ape

2006-03-16 Thread Paul Winkler
On Thu, Mar 16, 2006 at 12:59:04PM -0500, Chris Kratz wrote: > Hello Paul, > > How does the refresh interval work for DirectoryView? If I wrote it in english, it wouldn't be any shorter than the code in CMFCore/FSObject.py :-) See the _updateFromFS() method, you can browse it on svn.zope.org.

[Zope] how to add zopewiki product pages

2006-03-16 Thread Simon Michael
Following on from a zope-dev thread: On 3/15/06, Chris Withers <[EMAIL PROTECTED]> wrote: Simon Michael wrote: > You forgot to make a page under http://zopewiki.org/Products . Doh! :) > > Only half joking. If I'm looking for a dimly-remembered product from six > months ago, t

Re: [Zope] AttributeError on SESSION

2006-03-16 Thread Dieter Maurer
Peter Bengtsson wrote at 2006-3-15 22:02 +: > ... >What do you get AttributeError on actually? What line? >The code above looks just fine. Are you perhaps trying to do session >['last view'] somewhere else without checking that it first exists? The reported problem looks as if the REQUEST wer

Re: [Zope] read-only-database

2006-03-16 Thread Dieter Maurer
Ulla Theiss wrote at 2006-3-16 17:00 +0100: >I want to run the database in read-only mode from CD and configured it >accordingly in the zope.conf: > >read-only-database on This is a relict from earlier times. It is no longer working... Nowadays, you specify the "read-only" property on the storag

Re: [Zope] how to count authenticated and anonymous users currently online ?

2006-03-16 Thread Dieter Maurer
Luca Dall'Olio wrote at 2006-3-16 10:01 +0100: >I would like to know how many anonymous users are online Do you know what this should mean? The server has no a priori notion which users are "online". You may artificially define the term "session" and then consider the number of session as repres

Re: [Zope] Zope + Apache on Quad Debian machine

2006-03-16 Thread Dieter Maurer
Hugo Ramos wrote at 2006-3-15 17:45 -0300: >I'm using Zope+Apache on a 4 xeon's/4GB ram machine running Debian. >I've noticed that the CPU's never go beyond 30% top occupation... but >on rush hours the site takes too long to load... > >I've been reading about process affinity and how it could speed

Re: [Zope] "Define Permissions" in ZMI Products

2006-03-16 Thread Dieter Maurer
Jeff Gentry wrote at 2006-3-15 15:55 -0500: > ... >In the past when I've worked with external products, all of my template, >dtml, html, etc files have already been predefined and I've explicitly >declared them in my code. for instance, to use a dtml file I would say >something like: >blah = DTMLF

Re: [Zope] "Define Permissions" in ZMI Products

2006-03-16 Thread Jeff Gentry
On Thu, 16 Mar 2006, Dieter Maurer wrote: > You can let your class derive from "OFS.ObjectManager.ObjectManager" > (or maybe "OFS.Folder.Folder"). Then you can put objects > into them. Yeah, the problem that I thought was going to exist didn't, as it turned out. > It is all voluntary work... > An

Re: [Zope] how to count authenticated and anonymous users currently online ?

2006-03-16 Thread Luca Dall'Olio
Dieter Maurer wrote: Luca Dall'Olio wrote at 2006-3-16 10:01 +0100: I would like to know how many anonymous users are online Do you know what this should mean? The server has no a priori notion which users are "online". You may artificially define the term "session" and then conside

Re: [Zope] Re: Ape

2006-03-16 Thread jpenny
I am perhaps being too lazy here. What is the minimal CMF stuff to install to get the CMFCore/FS... objcts installed? [EMAIL PROTECTED] wrote on 03/16/2006 03:05:45 PM: > On Thu, Mar 16, 2006 at 12:59:04PM -0500, Chris Kratz wrote: > > Hello Paul, > > > > How does the refresh interval work for

Re: [Zope] Re: Ape

2006-03-16 Thread Paul Winkler
On Thu, Mar 16, 2006 at 05:54:31PM -0500, [EMAIL PROTECTED] wrote: > I am perhaps being too lazy here. What is the minimal CMF > stuff to install to get the CMFCore/FS... objcts installed? I suspect you can download CMF from zope.org, unzip it, and install only the CMFCore directory. It shouldn't

[Zope] errors building zope 3

2006-03-16 Thread David Bear
I have python 2.4.2 installed on freebsd. It is located at /home/webenv/bin/python2.4. I set my pythonpath to /home/webenv/lib/python2.4 Python works. Then I downloaded and built zope 3 with make sure to use -with-python and -prefix /home/z3. I run make then make test and get a lot of : Error

Re: [Zope] errors building zope 3

2006-03-16 Thread Stephan Richter
On Thursday 16 March 2006 18:06, David Bear wrote: > this happens when I run make test as root as well. Don't run tests as root. I thought the test produces a warning when run as root, mhh. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k

Re: [Zope] how to count authenticated and anonymous users currently online ?

2006-03-16 Thread Andrew Milton
Luca Dall'Olio wrote at 2006-3-16 10:01 +0100: >I would like to know how many anonymous users are online >and also if some authenticated users are. You can do this using exuserfolder, you can effectively track the online users by setting a session limit which discounts them out after a period of

[Zope] setup.py build

2006-03-16 Thread wavemaster2000
hey I am trying to setup a connection between python and mysql, trying to get a connection for zope. I get this error on building C:\Program Files\Zope-2.9.1\lib\python\Products\MySQL-python-1.2.0>setup.py buil d running build running build_py creating build creating build\lib.win32-2.4 copying _m