[Zope-Checkins] SVN: Zope/trunk/lib/python/ replaced docutils with an svn:external definition
Log message for revision 41136: replaced docutils with an svn:external definition Changed: _U Zope/trunk/lib/python/ D Zope/trunk/lib/python/docutils/ -=- Property changes on: Zope/trunk/lib/python ___ Name: svn:externals - ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3.1 BTrees -r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/BTrees persistent -r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/persistent ThreadedAsync -r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ThreadedAsync transaction-r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/transaction ZEO-r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZEO ZODB -r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZODB ZopeUndo -r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZopeUndo zdaemon-r 40792 svn://svn.zope.org/repos/main/zdaemon/trunk/src/zdaemon pytz -r 40903 svn://svn.zope.org/repos/main/Zope3/trunk/src/pytz zodbcode -r 40549 svn://svn.zope.org/repos/main/Zope3/trunk/src/zodbcode ClientCookie -r 40549 svn://svn.zope.org/repos/main/Zope3/trunk/src/ClientCookie mechanize -r 40549 svn://svn.zope.org/repos/main/Zope3/trunk/src/mechanize + ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3.1 BTrees -r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/BTrees persistent -r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/persistent ThreadedAsync -r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ThreadedAsync transaction-r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/transaction ZEO-r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZEO ZODB -r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZODB ZopeUndo -r 41065 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZopeUndo zdaemon-r 40792 svn://svn.zope.org/repos/main/zdaemon/trunk/src/zdaemon pytz -r 40903 svn://svn.zope.org/repos/main/Zope3/trunk/src/pytz zodbcode -r 40549 svn://svn.zope.org/repos/main/Zope3/trunk/src/zodbcode ClientCookie -r 40549 svn://svn.zope.org/repos/main/Zope3/trunk/src/ClientCookie mechanize -r 40549 svn://svn.zope.org/repos/main/Zope3/trunk/src/mechanize docutils -r 41065 svn://svn.zope.org/repos/main/Zope3/trunk/src/docutils ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/trunk/doc/CHANGES.txt docutils
Log message for revision 41137: docutils Changed: U Zope/trunk/doc/CHANGES.txt -=- Modified: Zope/trunk/doc/CHANGES.txt === --- Zope/trunk/doc/CHANGES.txt 2006-01-04 18:21:13 UTC (rev 41136) +++ Zope/trunk/doc/CHANGES.txt 2006-01-04 18:24:36 UTC (rev 41137) @@ -180,6 +180,9 @@ - Switched to the new improved test runner from Zope 3. Run test.py with -h to find out more. + - lib/python/docutils is now a reference to docutils package +from the Zope 3 source tree (to get rid of redundant packages) + Bugs Fixed - HTTPResponse: for XML content the encoding specified within ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-dev] Zope tests: 8 OK
Summary of messages to the zope-tests list. Period Tue Jan 3 12:01:02 2006 UTC to Wed Jan 4 12:01:02 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: Tue Jan 3 21:03:45 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003922.html Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Tue Jan 3 21:05:17 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003923.html Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Tue Jan 3 21:06:47 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003924.html Subject: OK : Zope-2_7-branch Python-2.4.2 : Linux From: Zope Unit Tests Date: Tue Jan 3 21:08:17 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003925.html Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Tue Jan 3 21:09:47 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003926.html Subject: OK : Zope-2_8-branch Python-2.4.2 : Linux From: Zope Unit Tests Date: Tue Jan 3 21:11:18 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003927.html Subject: OK : Zope-2_9-branch Python-2.4.2 : Linux From: Zope Unit Tests Date: Tue Jan 3 21:12:48 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003928.html Subject: OK : Zope-trunk Python-2.4.2 : Linux From: Zope Unit Tests Date: Tue Jan 3 21:14:18 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003929.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope] ZServer threads and pool-size question
Because I use ZEO, I got lots of often modified objects, and on Zope servers I got lots of memory so I can give it a try ;) Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Jens Vagelpohl Envoyé : mercredi 4 janvier 2006 14:45 À : zope list user Objet : Re: [Zope] ZServer threads and pool-size question On 4 Jan 2006, at 13:34, Pascal Peregrina wrote: I understand. So what is the typical value to use for pool-size given a certain threads number: n+3 ? There is no typical value. Changing the thread number and pool size puts you *way* off-road, fiddling with it should be avoided. You will have to experiment if you really think you need to change that setting. More connections - more RAM usage. Makes me wonder why you think that is necessary. jens ___ 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 ) ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** ___ 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] ZServer threads and pool-size question
On 4 Jan 2006, at 13:53, Pascal Peregrina wrote: Because I use ZEO, I got lots of often modified objects, and on Zope servers I got lots of memory so I can give it a try ;) Where do you see the gain? More threads and connection also means more caches that need to be updated/invalidated when you modify an object. You might slow your system down instead. jens ___ 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] ZServer threads and pool-size question
So, are you telling me that the ideal configuration is using all default values (connection objects cache size, ZEO cache size, threads and connection pool)? Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Jens Vagelpohl Envoyé : mercredi 4 janvier 2006 15:02 À : zope list user Objet : Re: [Zope] ZServer threads and pool-size question On 4 Jan 2006, at 13:53, Pascal Peregrina wrote: Because I use ZEO, I got lots of often modified objects, and on Zope servers I got lots of memory so I can give it a try ;) Where do you see the gain? More threads and connection also means more caches that need to be updated/invalidated when you modify an object. You might slow your system down instead. jens ___ 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 ) ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** ___ 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] ZServer threads and pool-size question
On 4 Jan 2006, at 14:11, Pascal Peregrina wrote: So, are you telling me that the ideal configuration is using all default values (connection objects cache size, ZEO cache size, threads and connection pool)? The default values for thread number and connection pool covers all but the most exotic use cases. The cache sizes can benefit greatly from experimenting, but there is no standard recipe, it all depends on your specific software and hardware environment. jens ___ 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] ZServer threads and pool-size question
Ok, much clearer now... I might focus on cache sizes then. Thanks. Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Jens Vagelpohl Envoyé : mercredi 4 janvier 2006 15:17 À : zope list user Objet : Re: [Zope] ZServer threads and pool-size question On 4 Jan 2006, at 14:11, Pascal Peregrina wrote: So, are you telling me that the ideal configuration is using all default values (connection objects cache size, ZEO cache size, threads and connection pool)? The default values for thread number and connection pool covers all but the most exotic use cases. The cache sizes can benefit greatly from experimenting, but there is no standard recipe, it all depends on your specific software and hardware environment. jens ___ 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 ) ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** ___ 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 )
[Zope] Re: ZServer threads and pool-size question
Jens Vagelpohl wrote: On 4 Jan 2006, at 13:23, Pascal Peregrina wrote: Can anyone tell me why, by default in a zope instance config file, the connection pool size is 7 while the number of zserver threads is 4? Why not 4 and 4? Because under some conditions you can actually have more than 4 connections in use. Not having extra connections available has the potential to block the server. That's not true anymore in recent ZODBs. Zope 2.9 will never block and always allocate new connections as needed. It will log warnings if the number grows too much though. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of RD +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ 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] Javascript obfuscator and Zope
It's not a Zope product but at least it's python. http://www.issuetrackerproduct.com/Download#slimmer It's basically a javascript whitespace optimiser Compare http://real.issuetrackerproduct.com/tw-sack.js with the original: http://www.issuetrackerproduct.com/tw-sack.js More work can be done of course but I wanted to keep it relatively CPU fast. It works on CSS and HTML too: http://www.peterbe.com/stylesheet.css On 12/29/05, David H [EMAIL PROTECTED] wrote: Hi list, I am wondering if anyone is obfuscating JavaScript using a python script or product. I did some googling but nothing cropped up. Seems like a nice idea unless the realities of javascript obfuscation make the exercise pointless. Any thoughts? David ___ 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 ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ 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] Javascript obfuscator and Zope
Peter Bengtsson wrote: It's not a Zope product but at least it's python. http://www.issuetrackerproduct.com/Download#slimmer It's basically a javascript whitespace optimiser Compare http://real.issuetrackerproduct.com/tw-sack.js with the original: http://www.issuetrackerproduct.com/tw-sack.js More work can be done of course but I wanted to keep it relatively CPU fast. It works on CSS and HTML too: http://www.peterbe.com/stylesheet.css there is minjs written in C too: http://www.crockford.com/javascript/jsmin.html this is a one-way process though, and this should also be compared with the effect of compressing files while serving them. /JM ___ 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 )
[Zope] Re: Java vs Zope
J Cameron Cooper wrote: ... I think it's quite acceptable to put the burden of use on the programmer instead of the compiler, considering the benefits; that's what he's thinking about anyway, no? +1 Zope 3, though I admit I've only played with it glancingly, seems to be more J2EE-like in certain respects: there seem to be a lot of things I have to touch to get things going. To a certain point, I can deal with this, but if there's ever a ZDoclet... Lol, I remember so many times haveint to install XDoclet in order to develop my EJB's in any sane amount of time. But I understand and agree with your point here. EJB development required so much boilerplate code that it slowed the developer down big time. It took tools like XDoclet to come along and make the boilerplate code somewhat manageable before developing with EJB's was very productive IMHO. I recently talked about this at: http://www.serverzen.net/weblog/archive/2006/01/02/boilerplate-zope-projects For the record (and as my blog entry mentions), Skeletor seems to strive to be XDoclet for Zope2. - Rocky -- Rocky Burt ServerZen Software -- http://www.serverzen.com ServerZen Hosting -- http://www.serverzenhosting.net News About The Server -- http://www.serverzen.net ___ 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] What did your Zope server do in 2005?
So it looks like I have the most traffic but use the weakest box. :) Jake ___ http://www.ZopeZone.com On Tue, January 3, 2006 4:42 pm, Richard Jones said: On Wednesday 04 January 2006 02:11, Kirk Strauser wrote: On Monday 02 January 2006 08:10, Jake wrote: I sent this out last year and thought it would be fun to see how Zope's did in 2005. Pages:6,580,999 Hits: 37,137,283 Bandwidth: 142.12 GB Hardware: AMD Athlon 64 3200+ 2.0Ghz, 2GB DDR Ram, SCSI Raid 1, RH ES 2.1 Zope: 2.7.4, CMF 1.4.7, Plone 2.0.5 What did you gather that information with? Just parsing the log files? Anyway, here's ours: Pages: 2.9 million (approx) Hardward: Xeon 2.4GHz (HTT disabled), 2GB RAM, FreeBSD 6.0, single SCSI-320 drive. Zope: 8 instances of 2.7.8, hanging off a single ZEO server, and load-balanced (random selection) by an Apache 2.0.55 proxy on the same machine. I don't have complete stats for the whole year, but from Feb 2005 to today we did: Hits: 23,359,722 Pages: 10,977,747 Peak rate: 18,998 hits per hour Setup: 2 dual AMD Opteron 244 machines, 2GB RAM, Debian, with pydirector load-balancing them and apache out the front with the vhost mappings (we have a bazillion vhosts). One machine is also ZEO server with lotsa RAID disk, the other is just a grunt box with CPU, RAM and little else. Zope: 2.7.6 We have five ZEO clients (one per CPU plus an extra). One of them is dedicated to serving search-engine bot traffic so that the other clients (and hence regular users) aren't affected when they decide to spider *all* of our vhosts at once. Which they do, on a regular basis. Currently we see the majority of our traffic handled by the first of the other four ZEO clients, but at peak load times the others two see a trickle of hits. I expect we could double the current load, and we are anticipating an increase in load this year of at least that. It's a good thing that dual-Opteron machines are cheap. Richard ___ 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 ) ___ 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] ZServer threads and pool-size question
Pascal Peregrina wrote at 2006-1-4 13:34 -: I understand. So what is the typical value to use for pool-size given a certain threads number: n+3 ? It depends on how intensively you are using additional (application level) threads: Each thread using persistent objects requires in general (at least) one ZODB connection. As such threads are relatively rare, additional 3 connections is not too bad for the general case. -- Dieter ___ 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] Javascript obfuscator and Zope
Jean-Marc Orliaguet wrote: Peter Bengtsson wrote: It's not a Zope product but at least it's python. http://www.issuetrackerproduct.com/Download#slimmer It's basically a javascript whitespace optimiser Compare http://real.issuetrackerproduct.com/tw-sack.js with the original: http://www.issuetrackerproduct.com/tw-sack.js More work can be done of course but I wanted to keep it relatively CPU fast. It works on CSS and HTML too: http://www.peterbe.com/stylesheet.css there is minjs written in C too: http://www.crockford.com/javascript/jsmin.html this is a one-way process though, and this should also be compared with the effect of compressing files while serving them. /JM Thanks Peter and Jean-Marc! I'll take a look at these. David ___ 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 )
[Zope] Re: dynamically creating zip file, returning to user
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Toews wrote: Zope 2.8.0, Python 2.3.5 I'm having a heck of a time figuring out how to zip up some files in my zope instance and return them to the user. I can sucessfully create a zip file on the local file system, but if I try to pass it back to the user it is corrupted. Of course I'd rather not create this tmp3.zip file, so if there's a way around that (which I'm sure there is!) please do let me know. filename = 'test.zip' response = self.REQUEST.RESPONSE response.setHeader('Content-Type','application/zip') response.setHeader('Content-Disposition','attachment; filename=%s' % filename) # tried zf = zipfile.ZipFile( response, 'w' ) but get error, ZHTTP object doesn't have tell method zf = zipfile.ZipFile( '/tmp3.zip', 'w' ) zf.writestr( 'testfilename', str( self._getOb( testfileid ) ) ) zf.close() f = open('/tmp3.zip') return f.read() Any thoughts on what fairly obvious thing I'm doing wrong? Thanks! A couple of thoughts: - Be sure you open the file in binary mode ('wb' rather than 'w'); this won't help unless you are running Zope on Windows, however, because Windows is the only platform where the C runtime will mangle the line endings for files it thinks are text, rather than binary. - You could use a StringIO instance, rather than a tempfile; YMMV. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDvI6r+gerLs4ltQ4RAvrMAJ9oH0gtorWuW6NeowfVCfZ6PbyYSgCfbCHd 8VhNtnUrBeEiIp8sSLSVQOg= =f+qw -END PGP SIGNATURE- ___ 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 )
[Zope] Cookie Crumbler
Dear zopistI have a trying time using Cookie Crumbler 1.2 with Zope2.8.4 (windows version).I could NOT figure out how to log out a user. I have simplified to the orginal logged_out form to this:dtml-call "RESPONSE.expireCookie('__ac_name')" a href=""logout/aHowever, neither this nor the original logged_out dtml seems to work.Is it because I am using frames in my dtml that causes it or I am getting the concept of how Cookie Crumbler works?Thank you. Yahoo! Photos Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.___ 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 )