[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py Added test for strftime with unicode pattern.

2005-05-31 Thread Florent Guillaume
Log message for revision 30570: Added test for strftime with unicode pattern. Changed: U Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py -=- Modified: Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py

[Zope-Checkins] SVN: Zope/trunk/lib/python/DateTime/tests/testDateTime.py Merged revision 30570 from Zope-2_8-branch:

2005-05-31 Thread Florent Guillaume
Log message for revision 30571: Merged revision 30570 from Zope-2_8-branch: Added test for strftime with unicode pattern. Changed: U Zope/trunk/lib/python/DateTime/tests/testDateTime.py -=- Modified: Zope/trunk/lib/python/DateTime/tests/testDateTime.py

[Zope-Checkins] SVN: zdaemon/trunk/zdctl.py Collector # 1323: applied patch to fix umask handling in zdctl

2005-05-31 Thread Andreas Jung
Log message for revision 30572: Collector # 1323: applied patch to fix umask handling in zdctl Changed: U zdaemon/trunk/zdctl.py -=- Modified: zdaemon/trunk/zdctl.py === --- zdaemon/trunk/zdctl.py 2005-05-31 16:00:54

[Zope-Checkins] SVN: zdaemon/tags/zdaemon-Zope-2-8-0/ version for final Zope 2.8.0 release

2005-05-31 Thread Andreas Jung
Log message for revision 30573: version for final Zope 2.8.0 release Changed: A zdaemon/tags/zdaemon-Zope-2-8-0/ -=- Copied: zdaemon/tags/zdaemon-Zope-2-8-0 (from rev 30572, zdaemon/trunk) ___ Zope-Checkins maillist - Zope-Checkins@zope.org

[Zope-Checkins] SVN: Zope/trunk/lib/python/zdaemon/ replacing local copy with external definition

2005-05-31 Thread Andreas Jung
Log message for revision 30574: replacing local copy with external definition Changed: D Zope/trunk/lib/python/zdaemon/ -=- ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins

[Zope-dev] Re: [Zope-Checkins] CVS: Products/PluginIndexes/common - UnIndex.py:1.20.2.7

2005-05-31 Thread Chris Withers
Tres Seaver wrote: +if set is None: +set = IISet(()) +elif type(set) is IntType: # isinstance(set, int) for 2.8 How come isinstance is only to be used for 2.8? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting

Re: [Zope-dev] Re: [Zope-Checkins] CVS: Products/PluginIndexes/common- UnIndex.py:1.20.2.7

2005-05-31 Thread SER.RI-TIC-Alexis Roda
Chris Withers wrote: Tres Seaver wrote: +if set is None: +set = IISet(()) +elif type(set) is IntType: # isinstance(set, int) for 2.8 How come isinstance is only to be used for 2.8? Hi, when I wrote the patch and the test case I tried to

Re: [Zope-dev] Re: mechanism for license boilerplate?

2005-05-31 Thread Jens Vagelpohl
On May 30, 2005, at 20:39, Chad Whitacre wrote: Thanks, that's what I figured. ;-) IIRC the last time I did something like that (moving CMF to ZPL 2.1) I wrote a python script to replace the text appropriately... sed and awk are also good tools for that when you're good at shell

Re: [Zope-dev] mechanism for license boilerplate?

2005-05-31 Thread Gary Poster
On May 30, 2005, at 3:06 PM, Andreas Jung wrote: --On 30. Mai 2005 12:35:22 -0400 Chad Whitacre [EMAIL PROTECTED] wrote: Dear all, I am wondering what mechanism the Zope team uses to manage the copyright/license boilerplate at the top of every file. Is this handled manually or is

[Zope-dev] Re: CMFSetup + ZopeTestCase interaction bug

2005-05-31 Thread Lennart Regebro
On 5/25/05, Lennart Regebro [EMAIL PROTECTED] wrote: When you use the installProduct command of ZopeTestCase on a product that has a CMFSetup profile you may get the following error: File /home/zopes/27test/Products/CMFSetup/registry.py, line 567, in registerProfile raise KeyError,

[Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/ - Collector #1323: applied patch to fix umask problem in zdctl

2005-05-31 Thread Tim Peters
[Andreas Jung] Log message for revision 30558: - Collector #1323: applied patch to fix umask problem in zdctl Changed: U Zope/trunk/doc/CHANGES.txt U Zope/trunk/lib/python/zdaemon/zdctl.py Andreas, Zope doesn't own zdaemon. zdaemon is (so far) *copied* into Zope from

[Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/ - Collector #1323: applied patch to fix umask problem in zdctl

2005-05-31 Thread Tim Peters
[Andreas Jung] I thought Fred hooked zdaemon and ZConfig already as external definition. But apparently this happened only for ZConfig. That's correct; nothing about zdaemon has changed yet. Back on 13 May: [me] The first time ZConfig and zdaemon get tagged, it's important that whoever do

[Zope] Uninstall a zope built from source

2005-05-31 Thread Rob Wilco
Hello, Some time ago, I built zope from the sources and it worked well. Now I prefer the way Debian easily offers instances and an init.d script. I would like to uninstall the Zope from the source bt I can't find a target for make to do an uninstall. I have a googled for a while without

Re: [Zope] Uninstall a zope built from source

2005-05-31 Thread Andreas Jung
--On 31. Mai 2005 11:27:47 +0200 Rob Wilco [EMAIL PROTECTED] wrote: Hello, Some time ago, I built zope from the sources and it worked well. Now I prefer the way Debian easily offers instances and an init.d script. I would like to uninstall the Zope from the source bt I can't find a target

Re: [Zope] Uninstall a zope built from source

2005-05-31 Thread Tino Wildenhain
Am Dienstag, den 31.05.2005, 11:27 +0200 schrieb Rob Wilco: Hello, Some time ago, I built zope from the sources and it worked well. Now I prefer the way Debian easily offers instances and an init.d script. recent zope versions have that as well (e.g = 2.7) I would like to uninstall the

[Zope] Creating links dynamically

2005-05-31 Thread John Poltorak
I want to provide a set of links on a Zope site dynamically. ie don't want to hard code a number of links, but would like to load them from an external source which I can add to independently, but I have no idea as to how to set about it. Any ideas? I'd be quite happy to have the links in a

Re: [Zope] Creating links dynamically

2005-05-31 Thread Vital Lobachevsky
John Poltorak wrote: I want to provide a set of links on a Zope site dynamically. ie don't want to hard code a number of links, but would like to load them from an external source which I can add to independently, but I have no idea as to how to set about it. Any ideas? I'd be quite happy

Re: [Zope] Creating links dynamically

2005-05-31 Thread John Poltorak
On Tue, May 31, 2005 at 06:23:11PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: I want to provide a set of links on a Zope site dynamically. ie don't want to hard code a number of links, but would like to load them from an external source which I can add to independently, but I

Re: [Zope] Creating links dynamically

2005-05-31 Thread Vital Lobachevsky
John Poltorak wrote: On Tue, May 31, 2005 at 06:23:11PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: I want to provide a set of links on a Zope site dynamically. ie don't want to hard code a number of links, but would like to load them from an external source which I can add to

Re: [Zope] Creating links dynamically

2005-05-31 Thread Dieter Maurer
John Poltorak wrote at 2005-5-31 16:39 +0100: ... Many thanks for your suggestion. Is there a worked example of doing this anywhere? The CMF's ActionsTool is a prime example for such a link factory. CMFDefaults main_template.pt demonstrates how to iterate over the links generated by

Re: [Zope] Re: PIL: can't call same method twice

2005-05-31 Thread Dieter Maurer
KLEIN Stéphane wrote at 2005-5-31 00:13 +0200: ... I've the same problem and now it's work with this tip : context.REQUEST.image.seek(0). My xImageScale.py [external method] is : def xImageScale(img_file, maxx, maxy): from PIL import Image from cStringIO import StringIO

RE: [Zope] zope vs. memory [was Re: Refcounts, ZODB Cache and memory leaks?]

2005-05-31 Thread Dieter Maurer
Andy Yates wrote at 2005-5-30 22:52 -0500: ... When you fixed the TempStorage the leak indeed slowed down significantly. However, Zope still leaks memory. If left uncheck Zope will still consume all available memory and crash the server. We have resigned ourselves to restarting Zope every few

[Zope] python question

2005-05-31 Thread Kate Legere
I may be asking this in the wrong place but I have a tal page where I want to use python to display only the most recent addition to a folder of files. I can sort the folder and return all the files easily with: return sequence.sort(files, (('bobobase_modification_time', 'cmp', 'desc'),)) How

RE: [Zope] python question

2005-05-31 Thread Jim Abramson
sort() on a sequence does not return anything. It operates on the [mutable] sequence in place. You probably want to push this bit into a python script where you have more elbow room, and do this: files.sort(etc,etc) return files[0] hth, Jim -Original Message- From: [EMAIL

Re: [Zope] python question

2005-05-31 Thread J Cameron Cooper
Kate Legere wrote: I may be asking this in the wrong place but I have a tal page where I want to use python to display only the most recent addition to a folder of files. I can sort the folder and return all the files easily with: return sequence.sort(files, (('bobobase_modification_time',

Re: [Zope] Creating links dynamically

2005-05-31 Thread J Cameron Cooper
John Poltorak wrote: On Tue, May 31, 2005 at 07:17:46PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: On Tue, May 31, 2005 at 06:23:11PM +0300, Vital Lobachevsky wrote: Many thanks for your suggestion. Is there a worked example of doing this anywhere? There seem to be quite a few

RE: [Zope] python question

2005-05-31 Thread Kate Legere
Thanks - turns out the real error was in the file dealing with it - all fixed now. Thanks for the help. Kate -Original Message- From: Jim Abramson [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 2:38 PM To: Kate Legere; Zope Subject: RE: [Zope] python question sort() on a

Re: [Zope] Creating links dynamically

2005-05-31 Thread John Poltorak
On Tue, May 31, 2005 at 08:54:30PM +0200, Dieter Maurer wrote: John Poltorak wrote at 2005-5-31 16:39 +0100: ... Many thanks for your suggestion. Is there a worked example of doing this anywhere? The CMF's ActionsTool is a prime example for such a link factory. CMFDefaults

Re: [Zope] Creating links dynamically

2005-05-31 Thread John Poltorak
On Tue, May 31, 2005 at 02:51:18PM -0500, J Cameron Cooper wrote: John Poltorak wrote: Well, it's really easy. Create 'linkList' (Python Script) in the folder where you page lives or somewhere higher in folder hierarchy: ## Script (Python) linkList return [ ('http://www.google.com/',

Re: [Zope] python question

2005-05-31 Thread Tino Wildenhain
Am Dienstag, den 31.05.2005, 15:34 -0400 schrieb Kate Legere: I may be asking this in the wrong place but I have a tal page where I want to use python to display only the most recent addition to a folder of files. I can sort the folder and return all the files easily with: return

RE: [Zope] python question

2005-05-31 Thread Tino Wildenhain
Am Dienstag, den 31.05.2005, 15:38 -0400 schrieb Jim Abramson: sort() on a sequence does not return anything. It operates on the [mutable] sequence in place. sequence is a module in Zope. So she indeed was right. ___ Zope maillist - Zope@zope.org

RE: [Zope] python question

2005-05-31 Thread Jim Abramson
blast! i'll keep my mouth shut til I get the library memorized. Jim -Original Message- From: Tino Wildenhain [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 4:06 PM To: Jim Abramson Cc: Kate Legere; Zope Subject: RE: [Zope] python question Am Dienstag, den 31.05.2005,

Re: [Zope] Creating links dynamically

2005-05-31 Thread J Cameron Cooper
John Poltorak wrote: On Tue, May 31, 2005 at 02:51:18PM -0500, J Cameron Cooper wrote: John Poltorak wrote: Well, it's really easy. Create 'linkList' (Python Script) in the folder where you page lives or somewhere higher in folder hierarchy: ## Script (Python) linkList return [

Re: [Zope] Creating links dynamically

2005-05-31 Thread John Poltorak
On Tue, May 31, 2005 at 03:08:36PM -0500, J Cameron Cooper wrote: John Poltorak wrote: Why did you put it in a File? Why not a Script (Python)? I'm using a remote site and only have access via Zope's ZMI. Can I create a script through that? Certainly. It's in the dropdown. In

Re: [Zope] Creating links dynamically

2005-05-31 Thread Andreas Pakulat
On 31.Mai 2005 - 20:47:20, John Poltorak wrote: Thanks for the suggestion, but I really am a novice when it comes to all this and you are probably presuming more expertise than I have. Just a suggestion: Start reading the Zope Book (the latest version is on