[Zope-dev] Zope tests: 8 OK

2006-01-31 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Mon Jan 30 12:01:01 2006 UTC to Tue Jan 31 12:01:01 2006 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Mon Jan 30 21:03:07 EST

Re: [Zope-dev] Re: [ZODB-Dev] Weird ConflictErrors - TemporaryStorage bug?

2006-01-31 Thread Dieter Maurer
Chris Withers wrote at 2006-1-30 18:32 +: Dieter Maurer wrote: Okay, I see: TemporaryStorage raises ConflictError when other storages would raise POSKeyError: something tries to access an oid that was recently garbage collected (i.e. deleted). You will never again be able to load this

Re: [Zope] Product refreshing in Zope 2.9

2006-01-31 Thread Lennart Regebro
On 1/30/06, Dieter Maurer [EMAIL PROTECTED] wrote: Lennart Regebro wrote at 2006-1-30 15:18 +0100: ... Personally I haven't had a situation trivial enough for refresh to work for years... As I reported earlier, all that is needed is a small tool to allows to register product dependencies

[Zope] Re: Product refreshing in Zope 2.9

2006-01-31 Thread Florent Guillaume
Peter Bengtsson wrote: On 1/30/06, Andreas Jung wrote: --On 30. Januar 2006 17:39:11 + Peter Bengtsson wrote: It's not a strange product. It's quite simple in fact. Not being able to refresh without restarting means that I can't use Zope 2.9 for python product development. Why is refresh

[Zope] Packing data.fs programmatically

2006-01-31 Thread Jonathan Cleaver
I am using the following module to pack my data.fs programmatically before a backup is made. This was largely taken out of the Zopelabs cookbook - thanks! def packZODB(): try: import os, sys os.chdir(/path/to/Zope/python)

Re: [Zope] Packing data.fs programmatically

2006-01-31 Thread Chris Withers
Jonathan Cleaver wrote: I am using the following module to pack my data.fs programmatically before a backup is made. This was largely taken out of the Zopelabs cookbook - thanks! zeopack.py in the utilities\ZODBTools folder of your Zope distro is what you're after, no need for home-grown

Re: [Zope] Packing data.fs programmatically

2006-01-31 Thread Reinoud van Leeuwen
On Tue, Jan 31, 2006 at 11:38:34AM +, Jonathan Cleaver wrote: I am using the following module to pack my data.fs programmatically before a backup is made. This was largely taken out of the Zopelabs cookbook - thanks! I do it though the webinterface with a wget from the crontab: @daily

Re: [Zope] Product refreshing in Zope 2.9

2006-01-31 Thread Peter Bengtsson
On 1/30/06, Dieter Maurer [EMAIL PROTECTED] wrote: Peter Bengtsson wrote at 2006-1-30 18:54 +: I've noticed another strange behaviour with the Acquisition module in Zope 2.9 that might give us some clues as to why refreshing doesn't work. Imagine some code that looks like this:: from

[Zope] Re: Packing data.fs programmatically

2006-01-31 Thread Jonathan Cleaver
Ah-ha, that's another approach I had not thought of! Many thanks! Cheers Jonathan Reinoud van Leeuwen wrote: On Tue, Jan 31, 2006 at 11:38:34AM +, Jonathan Cleaver wrote: I am using the following module to pack my data.fs programmatically before a backup is made. This was largely taken

[Zope] Re: Product refreshing in Zope 2.9

2006-01-31 Thread Peter Bengtsson
On 1/31/06, Florent Guillaume [EMAIL PROTECTED] wrote: Peter Bengtsson wrote: On 1/30/06, Andreas Jung wrote: --On 30. Januar 2006 17:39:11 + Peter Bengtsson wrote: It's not a strange product. It's quite simple in fact. Not being able to refresh without restarting means that I can't

Re: [Zope] Re: Product refreshing in Zope 2.9

2006-01-31 Thread Jens Vagelpohl
On 31 Jan 2006, at 12:02, Peter Bengtsson wrote: That's why I, like others in this thread, don't care about refresh. Like I mentioned elsewhere, with my setup, restarting zope is gravely inferior to zope-restart for product development. I'm happy to share my setup to Open Source but it's

Re: [Zope] Re: Product refreshing in Zope 2.9

2006-01-31 Thread Peter Bengtsson
On 1/31/06, Jens Vagelpohl [EMAIL PROTECTED] wrote: On 31 Jan 2006, at 12:02, Peter Bengtsson wrote: That's why I, like others in this thread, don't care about refresh. Like I mentioned elsewhere, with my setup, restarting zope is gravely inferior to zope-restart for product

Re: [Zope] Packing data.fs programmatically

2006-01-31 Thread Chris Withers
Reinoud van Leeuwen wrote: On Tue, Jan 31, 2006 at 11:38:34AM +, Jonathan Cleaver wrote: I am using the following module to pack my data.fs programmatically before a backup is made. This was largely taken out of the Zopelabs cookbook - thanks! I do it though the webinterface with a wget

[Zope] Re: Product refreshing in Zope 2.9

2006-01-31 Thread Florent Guillaume
Peter Bengtsson wrote: On 1/31/06, Jens Vagelpohl [EMAIL PROTECTED] wrote: On 31 Jan 2006, at 12:02, Peter Bengtsson wrote: That's why I, like others in this thread, don't care about refresh. Like I mentioned elsewhere, with my setup, restarting zope is gravely inferior to zope-restart for

[Zope] Re: Packing data.fs programmatically

2006-01-31 Thread Max M
Chris Withers wrote: Reinoud van Leeuwen wrote: I do it though the webinterface with a wget from the crontab: @daily cd /some_path/zeo_server/var \ cp Data.fs Data.fs.pre_pack_backup \ /usr/local/bin/wget \

Re: [Zope] Re: Product refreshing in Zope 2.9

2006-01-31 Thread Jens Vagelpohl
On 31 Jan 2006, at 13:05, Peter Bengtsson wrote: And I don't understand how Zope product refresh doesn't have a higher attention priority when it's so useful. As far as I know, it's the only way to make changes to a zope2 product without having to restart the server causing downtime and lost

Re: [Zope] Re: Packing data.fs programmatically

2006-01-31 Thread Chris Withers
ZEO Stepper Or if you don't like Stepper, then zopectl run... Chris Max M wrote: Chris Withers wrote: Reinoud van Leeuwen wrote: I do it though the webinterface with a wget from the crontab: @daily cd /some_path/zeo_server/var \ cp Data.fs Data.fs.pre_pack_backup \

Re: [Zope] zserver-threads

2006-01-31 Thread Jake
I just spent a few minutes googling it and failed, but I thought I read on the Zope wiki that for higher trafic sites, it was better to have bigger caches (50,000+) and fewer threads (2). Jake ___ http://www.ZopeZone.com On Mon, January 30, 2006 5:47 pm, Jens Vagelpohl said:

[Zope] Re: Product refreshing in Zope 2.9

2006-01-31 Thread Peter Bengtsson
On 1/31/06, Florent Guillaume [EMAIL PROTECTED] wrote: Peter Bengtsson wrote: On 1/31/06, Jens Vagelpohl [EMAIL PROTECTED] wrote: On 31 Jan 2006, at 12:02, Peter Bengtsson wrote: That's why I, like others in this thread, don't care about refresh. Like I mentioned elsewhere, with my

Re: [Zope] Re: Packing data.fs programmatically

2006-01-31 Thread Reinoud van Leeuwen
On Tue, Jan 31, 2006 at 01:36:36PM +, Chris Withers wrote: ZEO Stepper Or if you don't like Stepper, then zopectl run... Chris Sounds interesting. Do you have a working example that you can post here? -- __ Nothing is as

Re: [Zope] zserver-threads

2006-01-31 Thread Jake
http://plone.org/documentation/how-to/threads-vs-cache-size There it was. Jake ___ http://www.ZopeZone.com On Tue, January 31, 2006 9:59 am, Jake said: I just spent a few minutes googling it and failed, but I thought I read on the Zope wiki that for higher trafic sites,

Re: [Zope] zserver-threads

2006-01-31 Thread Jens Vagelpohl
On 31 Jan 2006, at 14:59, Jake wrote: I just spent a few minutes googling it and failed, but I thought I read on the Zope wiki that for higher trafic sites, it was better to have bigger caches (50,000+) and fewer threads (2). The term high traffic site doesn't mean a thing when it comes

Re: [Zope] zserver-threads

2006-01-31 Thread Jens Vagelpohl
On 31 Jan 2006, at 15:01, Jake wrote: http://plone.org/documentation/how-to/threads-vs-cache-size That article contains little information to back up the conclusions, and some of it is patently wrong. Another case of hearsay and half- thruths being propagated by well-meaning but

Re: [Zope] Re: Packing data.fs programmatically

2006-01-31 Thread Chris Withers
The product comes with a whole raft of examples for doing things: http://www.simplistix.co.uk/software/zope/stepper base.py and config.py contain the examples, lemme know if you have any problems... Chris Reinoud van Leeuwen wrote: On Tue, Jan 31, 2006 at 01:36:36PM +, Chris Withers

Re: [Zope] zserver-threads

2006-01-31 Thread Andreas Jung
--On 31. Januar 2006 12:32:35 -0500 Jake [EMAIL PROTECTED] wrote: It would be nice if someone post some guidelines for threads and cache size, like a table. RAM / Hits / Threads / Cache Size 2 GB / 20,000,000 / 3 / 50,000 5 GB / 20,000,000 / 5 / 100,000 Such a table is pretty much

Re: [Zope] Re: Product refreshing in Zope 2.9

2006-01-31 Thread Peter Bengtsson
On 1/31/06, Lennart Regebro [EMAIL PROTECTED] wrote: On 1/31/06, Peter Bengtsson [EMAIL PROTECTED] wrote: Refresh works well in limited situations, but it *cannot work* if you have global registries or many interrelated modules. The setup I use takes care of dependencies in a

Re: [Zope] zserver-threads

2006-01-31 Thread Jake
It would be nice if someone post some guidelines for threads and cache size, like a table. RAM / Hits / Threads / Cache Size 2 GB / 20,000,000 / 3 / 50,000 5 GB / 20,000,000 / 5 / 100,000 Jake ___ http://www.ZopeZone.com On Tue, January 31, 2006 10:05 am, Jens Vagelpohl

Re: [Zope] Re: Product refreshing in Zope 2.9

2006-01-31 Thread Tim Nash
This thread has been interesting. I wish there was even more writing about how people develop with zope. I have completed my first zope product and I find that the change in mindset is the biggest challenge. Zope is cool but it is quite different from php or java or cgi. I wish that there was

Re: [Zope] Re: Product refreshing in Zope 2.9

2006-01-31 Thread Tim Nash
This thread has been interesting. I wish there was even more writing about how people develop with zope. I have completed my first zope product and I find that the change in mindset is the biggest challenge. Zope is cool but it is quite different from php or java or cgi. I wish that there was

Re: [Zope] Setting up Zope in a development/production environment

2006-01-31 Thread Dieter Maurer
Qass wrote at 2006-1-30 16:12 -0600: ... Now Zope/Plone use the various permission controls to mimic the above but I would like to find out how to create the above design/staging/production environment using Zope/Plone. You keep this style for all kinds of infrastructure (code, templates,

Re: [Zope] Packing data.fs programmatically

2006-01-31 Thread Dieter Maurer
Jonathan Cleaver wrote at 2006-1-31 11:38 +: ... Now for the wierd bit. I successfully ran the code that went into this module line-by-line in the Python interpreter. The data.fs was beautifully packed. However, when I run this script from the command line (through another script that acts

Re: [Zope] Product refreshing in Zope 2.9

2006-01-31 Thread Dieter Maurer
Peter Bengtsson wrote at 2006-1-31 10:50 +: ... if RefreshFuncs.performFullRefresh(self._p_jar, self.id): from ZODB import Connection Connection.resetCaches() # Clears cache in future connections. The call above is responsible to clear the ZODB caches. After your problem

Re: [Zope] zserver-threads

2006-01-31 Thread Dieter Maurer
Jens Vagelpohl wrote at 2006-1-31 15:07 +: On 31 Jan 2006, at 15:01, Jake wrote: http://plone.org/documentation/how-to/threads-vs-cache-size That article contains little information to back up the conclusions, and some of it is patently wrong. Another case of hearsay and half- thruths

Re: [Zope] Re: Product refreshing in Zope 2.9

2006-01-31 Thread Dieter Maurer
Peter Bengtsson wrote at 2006-1-31 13:05 +: ... But that's what I'm doing! Thanks to Dieter I've got som genuine technical help on what it might be instead of just people saying that's not how I do it, give up I am an enthusiastic refresh user and find is *MUCH* more productive than the

Re: [Zope] zserver-threads

2006-01-31 Thread Jake
Well, I have been using Zope for over 6 years and I still don't think I have mastered what is truly best other than get a good server, with a lot of RAM and bump up your threads * cache to use up about 50% of it. Jake ___ http://www.ZopeZone.com On Tue, January 31, 2006

Re: [Zope] zserver-threads

2006-01-31 Thread Jake
Am I gleaming from that that you are proposing a less-is-more approach to threads? Here is what I have been using: - Zope 2.7.8 (Plone 2.1.2) - RH Linux - AMD Athlon 64 3200+ 2.0 GHz - 2GB DDR RAM - 120,000 hits a day - 392,036 objects in database - 2 threads - 100,000 object cache size This

Re: [Zope] zserver-threads

2006-01-31 Thread Floyd May
On 1/31/06, Jake [EMAIL PROTECTED] wrote: Am I gleaming from that that you are proposing a less-is-more approach tothreads?Here is what I have been using:- Zope 2.7.8 (Plone 2.1.2)- RH Linux- AMD Athlon 64 3200+ 2.0 GHz- 2GB DDR RAM - 120,000 hits a day- 392,036 objects in database- 2 threads-

[Zope] Re: zserver-threads

2006-01-31 Thread Florent Guillaume
Dieter Maurer wrote: Jens Vagelpohl wrote at 2006-1-31 15:07 +: On 31 Jan 2006, at 15:01, Jake wrote: http://plone.org/documentation/how-to/threads-vs-cache-size That article contains little information to back up the conclusions, and some of it is patently wrong. Another case of

[Zope-DB] Re: Ape, postgresql and plone: UnmanagedJar instance and 'exportFile' attribute errors

2006-01-31 Thread Bill Rye
The same error is thrown if you use APE with filesystem storage. I have Zope 2.7.8, Python 2.3.5, Plone 2.1.1 and Ape 1.0. No idea why this happens. I've had zero luck with APE, and have come to the conclusion that no one really uses it. Bill Jeff Macfarland wrote: Ape 1.0 is set to store in