Re: [Zope] Psycopg export/import

2005-11-29 Thread Chris Withers
William Herring wrote: As part of an object, I have exported several zsql methods from Zope 2.2.2 and imported to Zope 2.6.2. In the later version I am using Psycopg as a database connection to Postgres. It is working fine for all ZSQL methods I have created within 2.6.2. You should consider

Re: [Zope] Re: Zope's Webdav port for RESTful web service

2005-11-29 Thread Chris Withers
Brad Clements wrote: PythonScript.py line 368 or so def PUT(self, REQUEST, RESPONSE): Handle HTTP PUT requests self.dav__init(REQUEST, RESPONSE) self.dav__simpleifhandler(REQUEST, RESPONSE, refresh=1) self.write(REQUEST.get('BODY', ''))

Re: [Zope] (no subject)

2005-11-29 Thread Chris Withers
Yes, I feel like that sometimes too ;-) Dennis Allison wrote: -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope **

Re: [Zope] DateTime mess

2005-11-29 Thread Chris Withers
Philipp von Weitershausen wrote: I think we need Zope to use some frankendatetime (a datetime.datetime that also supports the old DateTime API) throughout the deprecation period. Whenever people make a call to the old DateTime API on a frankendatetime object, they'll get a deprecation warning

Re: [Zope] DateTime mess

2005-11-29 Thread Chris Withers
Andrew Milton wrote: -1 for any scheme that deliberately breaks currently working code / installs. It's pretty broken already ;) -1 for any scheme that involves diddling the ZODB to 'fix' pickles, because you just know you're going to corrupt someone's ZODB, and that's just noone's

Re: [Zope] DateTime mess

2005-11-29 Thread Chris Withers
Philipp von Weitershausen wrote: Chris suggests. Why does it need to be persistent? See the use case I sketched out in my other reply... 1. Create some extensive tests about how DateTime currently works. I'm currently working on this to see whether any further procedure makes sense. yay!

Re: [Zope] Zope 2.8.4 strange behavior

2005-11-29 Thread Chris Withers
Chris McDonough wrote: The symptom you're describing has happened to me in the past. Zope stops serving requests and my CPU is not pegged (it's not hitting the CPU hard via an infinept loop I've made). I usually end up tracking it down to the fact that my instance is somehow leaking

Re: [Zope] why will FastCGI not be supported in the Future.

2005-11-29 Thread Chris Withers
Gerhard Schmidt wrote: I pretty sure that mod_proxy is much better than pcgi was. But logic tells me that it can't be better than fastcgi. Well, you logic is apparently different from everyone elses ;-) I'm with the everyone-else here, so quite whining about FCGI unless you want to maintain

Re: [Zope] DateTime mess

2005-11-29 Thread Chris Withers
Lennart Regebro wrote: Just a note: I don't think mixing in persistance is needed. Hmm... how so? I've always thought it quite nice that when, for example, you store the modification time of an object in a DateTime, you can safely update it without worrying about the whole object having to

Re: [Zope] DateTime mess

2005-11-29 Thread Philipp von Weitershausen
Chris Withers wrote: Philipp von Weitershausen wrote: I think we need Zope to use some frankendatetime (a datetime.datetime that also supports the old DateTime API) throughout the deprecation period. Whenever people make a call to the old DateTime API on a frankendatetime object, they'll

[Zope] Question about Stepper

2005-11-29 Thread Peter Bengtsson
Pardon my stupidity but is Chris Withers' Stepper the right thing for me...? I've got a message central that accepts and sends messages. The system has an in-part and and out-part that is quite separate. Then there's third party code that looks a bit like this: pseudocode def

Re: [Zope] Question about Stepper

2005-11-29 Thread Jens Vagelpohl
On 29 Nov 2005, at 11:12, Peter Bengtsson wrote: Pardon my stupidity but is Chris Withers' Stepper the right thing for me...? yes The call to sendAllUnsent() I would prefer if it was done asyncronously in case it takes several seconds. I could accomplish this by having a cron job calling

Re: [Zope] DateTime mess

2005-11-29 Thread Lennart Regebro
On 11/29/05, Chris Withers [EMAIL PROTECTED] wrote: Hmm... how so? I've always thought it quite nice that when, for example, you store the modification time of an object in a DateTime, you can safely update it without worrying about the whole object having to be repickled when you change it...

Re: [Zope] DateTime mess

2005-11-29 Thread Lennart Regebro
On 11/29/05, Philipp von Weitershausen [EMAIL PROTECTED] wrote: We could deprecate DateTime now to warn people about that. But then their product would only either work with Zope 2.12 or with Zope 2.12 (depending on whether it still expects the DateTime API or the datetime.datetime API); it

Re: [Zope] DateTime mess

2005-11-29 Thread Jürgen Herrmann
[ Lennart Regebro wrote:] On 11/29/05, Philipp von Weitershausen [EMAIL PROTECTED] wrote: We could deprecate DateTime now to warn people about that. But then their product would only either work with Zope 2.12 or with Zope 2.12 (depending on whether it still expects the DateTime API or the

Re: [Zope] DateTime mess

2005-11-29 Thread Philipp von Weitershausen
Lennart Regebro wrote: I agree, official deprecation and warnings should only happen when we have a real backwards compatibility and transition-path. Which would include what you call a frankendatetime. :-) Which, as I understand it, is what Jürgen Herrman wanted to create... Not if I

[Zope] Re: DateTime mess

2005-11-29 Thread Florent Guillaume
Chris Withers wrote: Just a note: I don't think mixing in persistance is needed. Hmm... how so? I've always thought it quite nice that when, for example, you store the modification time of an object in a DateTime, you can safely update it without worrying about the whole object having to be

Re: [Zope] Zope 2.8.4 strange behavior

2005-11-29 Thread Tim Peters
[Chris McDonough] The symptom you're describing has happened to me in the past. Zope stops serving requests and my CPU is not pegged (it's not hitting the CPU hard via an infinept loop I've made). I usually end up tracking it down to the fact that my instance is somehow leaking database

Re: [Zope] Re: Zope's Webdav port for RESTful web service

2005-11-29 Thread Brad Clements
On 29 Nov 2005 at 9:53, Chris Withers wrote: Brad Clements wrote: PythonScript.py line 368 or so def PUT(self, REQUEST, RESPONSE): ...well, you could always subclass and override ;-) Plus that method is protected by Change Python Scripts permission as well. Why is that

[Zope] Error Executing runzope Command

2005-11-29 Thread Asad Habib
Hello. I just installed Zope 2.7.0 on Mac OS X Tiger and I running it with MacPython 2.3.3. I installed Zope in /usr/local. Now, when I try to execute './runzope' or './zopectl start', I receive the following error: Fatal Python error: PyThreadState_Get: no current thread Has anyone

Re: [Zope] Error Executing runzope Command

2005-11-29 Thread Asad Habib
Thanks for your input. So, I went ahead and installed Zope 2.8.4 and the configuration script used Python 2.3.5 which comes installed with Mac OS X Tiger. Now, when I try to execute ./runzope, I get the following error: File /usr/local/lib/python/persistent/interfaces.py, line 19, in ?

Re: [Zope] Error Executing runzope Command

2005-11-29 Thread Andreas Jung
--On 29. November 2005 11:35:07 -0500 Asad Habib [EMAIL PROTECTED] wrote: Thanks for your input. So, I went ahead and installed Zope 2.8.4 and the configuration script used Python 2.3.5 which comes installed with Mac OS X Tiger. Now, when I try to execute ./runzope, I get the following

[Zope] Stepper 1.4.0 Released!

2005-11-29 Thread Chris Withers
Stepper is a framework for scripting and running asynchronous tasks on Zope servers. This is a new release fixing several bugs and introducing some minor new features. The major changes for this release were: - A bug was fixed which prevented run.py from being used. - Chains can now be

Re: [Zope] Zope 2.8.4 strange behavior

2005-11-29 Thread Dieter Maurer
Paul Winkler wrote at 2005-11-28 15:37 -0500: ... We had to implement a keep alive mechanism to prevent our firewall from behaving in this nasty way. OK. Can you give a high-level summary of what you did? I thought of using heartbeat to detect loss of connection, but I'm not sure what I could

Re: [Zope] Error Executing runzope Command

2005-11-29 Thread Dieter Maurer
Asad Habib wrote at 2005-11-29 11:35 -0500: Thanks for your input. So, I went ahead and installed Zope 2.8.4 and the configuration script used Python 2.3.5 which comes installed with Mac OS X Tiger. Now, when I try to execute ./runzope, I get the following error: File

Re: [Zope] Zope 2.8.4 strange behavior

2005-11-29 Thread Dennis Allison
Resolved. Thanks to all that responded. The symptoms were due to an external method which runs a program (htmldoc) that converts html to pdf. The external method uses the old subprocess interface to fire off the process and then wait() for it to complete. To fix another problem, we had

[Zope] Re: Zope 2.8.4 strange behavior

2005-11-29 Thread Florent Guillaume
Dieter Maurer wrote: Paul Winkler wrote at 2005-11-28 15:37 -0500: ... We had to implement a keep alive mechanism to prevent our firewall from behaving in this nasty way. OK. Can you give a high-level summary of what you did? I thought of using heartbeat to detect loss of connection, but

[Zope] here/content

2005-11-29 Thread John Poltorak
Can someone tell me how 'here/content' is translated in these lines? span tal:define=stx python:modules['Products'].PythonScripts.standard.structured_text; the_text here/content tal:content=structure python:stx(the_text) The structured text goes here. /span

[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/AccessControl/ Fixed problem with security.setPermissionDefault when the permission

2005-11-29 Thread Florent Guillaume
Log message for revision 40403: Fixed problem with security.setPermissionDefault when the permission wasn't used anywhere else in the class to protect methods. Changed: U Zope/branches/2.9/lib/python/AccessControl/SecurityInfo.py U

[Zope-Checkins] SVN: Zope/trunk/lib/python/AccessControl/ Merged r40403 from 2.9 branch:

2005-11-29 Thread Florent Guillaume
Log message for revision 40404: Merged r40403 from 2.9 branch: Fixed problem with security.setPermissionDefault when the permission wasn't used anywhere else in the class to protect methods. Changed: U Zope/trunk/lib/python/AccessControl/SecurityInfo.py U

[Zope-Checkins] SVN: Zope/branches/2.9/doc/CHANGES.txt Update CHANGES.

2005-11-29 Thread Florent Guillaume
Log message for revision 40405: Update CHANGES. Changed: U Zope/branches/2.9/doc/CHANGES.txt -=- Modified: Zope/branches/2.9/doc/CHANGES.txt === --- Zope/branches/2.9/doc/CHANGES.txt 2005-11-29 14:56:48 UTC (rev 40404)

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ Merged r40403 from 2.9 branch:

2005-11-29 Thread Florent Guillaume
Log message for revision 40406: Merged r40403 from 2.9 branch: Fixed problem with security.setPermissionDefault when the permission wasn't used anywhere else in the class to protect methods. Changed: U Zope/branches/Zope-2_8-branch/doc/CHANGES.txt U

[Zope-Checkins] SVN: Zope/trunk/lib/python/DateTime/DateTime.txt Fix timezone issues. I shoulda seen that one coming...

2005-11-29 Thread Philipp von Weitershausen
Log message for revision 40407: Fix timezone issues. I shoulda seen that one coming... Changed: U Zope/trunk/lib/python/DateTime/DateTime.txt -=- Modified: Zope/trunk/lib/python/DateTime/DateTime.txt === ---

[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/OFS/ Added backward compat for suppress_events parameter passing.

2005-11-29 Thread Florent Guillaume
Log message for revision 40408: Added backward compat for suppress_events parameter passing. Changed: U Zope/branches/2.9/lib/python/OFS/CopySupport.py U Zope/branches/2.9/lib/python/OFS/OrderSupport.py -=- Modified: Zope/branches/2.9/lib/python/OFS/CopySupport.py

[Zope-Checkins] SVN: Zope/trunk/lib/python/OFS/ Merged r40408 from 2.9 branch:

2005-11-29 Thread Florent Guillaume
Log message for revision 40409: Merged r40408 from 2.9 branch: Added backward compat for suppress_events parameter passing. Changed: U Zope/trunk/lib/python/OFS/CopySupport.py U Zope/trunk/lib/python/OFS/OrderSupport.py -=- Modified: Zope/trunk/lib/python/OFS/CopySupport.py

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/AccessControl/ Add interface and tests for AccessControl.SecurityManager.

2005-11-29 Thread Tres Seaver
Log message for revision 40418: Add interface and tests for AccessControl.SecurityManager. o The new tests are amphibious: they exercise both the Python and the C implementations, ensuring that they remain in sync. Changed: U

[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/AccessControl/ Add interface and tests for AccessControl.SecurityManager.

2005-11-29 Thread Tres Seaver
Log message for revision 40419: Add interface and tests for AccessControl.SecurityManager. o The new tests are amphibious: they exercise both the Python and the C implementations, ensuring that they remain in sync. Changed: U

[Zope-Checkins] SVN: Zope/trunk/lib/python/AccessControl/ Add interface and tests for AccessControl.SecurityManager.

2005-11-29 Thread Tres Seaver
Log message for revision 40420: Add interface and tests for AccessControl.SecurityManager. o The new tests are amphibious: they exercise both the Python and the C implementations, ensuring that they remain in sync. Changed: U Zope/trunk/lib/python/AccessControl/ImplPython.py

[Zope-dev] Re: DateTime mess

2005-11-29 Thread Philipp von Weitershausen
Tres Seaver wrote: Philipp von Weitershausen wrote: Andrew Milton wrote: -1 for any scheme that involves diddling the ZODB to 'fix' pickles, because you just know you're going to corrupt someone's ZODB, and that's just noone's idea of fun. There are sensible ways of upgrading the

[Zope-dev] Re: UI improvements

2005-11-29 Thread Chris Withers
Alexander Limi wrote: On Thu, 24 Nov 2005 02:06:11 -0800, Chris Withers [EMAIL PROTECTED] wrote: Indeed, but my comment wasn't so much about this particular change, it was about the principle of it. If 2.9 is already feature-frozen, then we're setting a dangerous precedent for allowing

Re: [Zope-dev] Re: UI improvements

2005-11-29 Thread Chris Withers
Tino Wildenhain wrote: Not sure which objects would fall in this category. All Objects in ZODB have their history - they just dont show it by default. Comparison is of course specific to a class. Indeed, how will this work? Historycopy is of course another thing. It works for all objects but

Re: [Zope-dev] Re: UI improvements

2005-11-29 Thread Tino Wildenhain
Chris Withers schrieb: Tino Wildenhain wrote: Not sure which objects would fall in this category. All Objects in ZODB have their history - they just dont show it by default. Comparison is of course specific to a class. Indeed, how will this work? Historycopy is of course another thing. It

[Zope-dev] Re: Python2.4 Security Audit ETA???

2005-11-29 Thread Florent Guillaume
The security audit already happened, and led to checkins by Jim on October 26 that preceded the release of Zope 2.8.4. Zope 2.8.4 is safe to use with python 2.4. Florent Alan Milligan wrote: Aeons ago someone promised that said Zope security audit of Python 2.4 was scheduled for October.

Re: [Zope-dev] Re: PermissionGeddon

2005-11-29 Thread Leonardo Rochael Almeida
Hi all, Em Dom, 2005-11-27 às 21:26 +0100, Florent Guillaume escreveu: Dieter Maurer wrote: The first change is in the manage_pasteObjects method of CopyContainer. There are some _setObject and _delObject calls which grew a new suppress_events parameter. [...] Several Folder like

[Zope-dev] Re: PermissionGeddon

2005-11-29 Thread Florent Guillaume
Dieter Maurer wrote: Hanno Schlichting wrote at 2005-11-26 09:28 +0100: ... I hope to have tracked the ~200 failing tests down to two of your changes in OFS.CopySupport. The first change is in the manage_pasteObjects method of CopyContainer. There are some _setObject and _delObject calls

[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2005-11-29 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 1849 Blamelist: benji_york,efge,philikon,rafrombrc,tseaver,yuppie BUILD FAILED: failed test sincerely, -The Buildbot

[Zope-dev] Re: PermissionGeddon

2005-11-29 Thread Florent Guillaume
On 26 Nov 2005, at 09:28, Hanno Schlichting wrote: The second change is actually related to your permission work. First of all I have to thank you for your great work :) But I have found one nasty thing. CopySupport had the following security declaration: __ac_permissions__=(('Copy or

[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2005-11-29 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 1851 Blamelist: efge BUILD FAILED: failed test sincerely, -The Buildbot ___ Zope-Dev

Re: [Zope-dev] Re: PermissionGeddon

2005-11-29 Thread Leonardo Rochael Almeida
Hi Florent Em Ter, 2005-11-29 às 15:32 +0100, Florent Guillaume escreveu: [...] I'm a bit peeved though at the lack of willingness from the few people that have reimplemented their version of _setObject/_delObject (which could be considered private APIs, seeing that they're prefixed with an

[Zope-dev] Re: DateTime mess

2005-11-29 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philipp von Weitershausen wrote: Tres Seaver wrote: Frankly, anything which attempts to fix pickles in-place smells bad to me. Dump and reload is how the RDBMS world handles this kind of problem, and it isn't because they don't have smart folks

Re: [Zope-dev] Re: Python2.4 Security Audit ETA???

2005-11-29 Thread Andreas Jung
--On 29. November 2005 15:13:45 +0100 Florent Guillaume [EMAIL PROTECTED] wrote: The security audit already happened, and led to checkins by Jim on October 26 that preceded the release of Zope 2.8.4. Zope 2.8.4 is safe to use with python 2.4. Let's say it this way: it's safer than with

[Zope-dev] Re: PermissionGeddon

2005-11-29 Thread Florent Guillaume
Dieter Maurer wrote: Hanno Schlichting wrote at 2005-11-26 09:28 +0100: ... I hope to have tracked the ~200 failing tests down to two of your changes in OFS.CopySupport. The first change is in the manage_pasteObjects method of CopyContainer. There are some _setObject and _delObject calls

Re: [Zope-dev] Re: DateTime mess

2005-11-29 Thread Jens Vagelpohl
On 29 Nov 2005, at 15:47, Tres Seaver wrote: Yes, and for a perfect example of why (not related to DateTime, just to fix-in-place in general) prosecution calls zope.org. Pros: Is it true that you harbor pickles from software which pre-dates the original public release of the

Re: [Zope-dev] Re: DateTime mess

2005-11-29 Thread Lennart Regebro
A question that then pops up is: Do we want to force people to do a migration to upgrade between say Zope 2.9 and Zope 2.10, just to replace all the DateTime pickles? Especially since we still need to provide API-compatibility? ___ Zope-Dev maillist -

Re: [Zope-dev] Re: DateTime mess

2005-11-29 Thread Andreas Jung
--On 29. November 2005 17:36:51 +0100 Lennart Regebro [EMAIL PROTECTED] wrote: A question that then pops up is: Do we want to force people to do a migration to upgrade between say Zope 2.9 and Zope 2.10, just to replace all the DateTime pickles? Especially since we still need to provide

Re: [Zope-dev] Folderish or SimpleItem object types for structural content

2005-11-29 Thread Dieter Maurer
Martijn Jacobs wrote at 2005-11-29 01:02 +0100: All those products are different 'types', with different functionality and different 'roles' as what they represent, so I write different products for every type. For every object that can contain subobjects you could derive it from 'Folder'

[Zope-dev] Re: PermissionGeddon

2005-11-29 Thread Dieter Maurer
Florent Guillaume wrote at 2005-11-29 15:32 +0100: ... I'm a bit peeved though at the lack of willingness from the few people that have reimplemented their version of _setObject/_delObject (which could be considered private APIs, seeing that they're prefixed with an underscore) All methods

Re: [Zope-dev] Folderish or SimpleItem object types for structural content

2005-11-29 Thread Martijn Jacobs
Hello Dieter. ...For every object that can contain subobjects you could derive it from 'Folder' (or Object Manager). But when you derive all these product types from 'Folder' you end up with ALOT of objects in your database. It that a problem? It might become one once you

[Zope-dev] Re: PermissionGeddon

2005-11-29 Thread Hanno Schlichting
Florent Guillaume wrote: Ok I just fixed SecurityInfo, could you update AccessControl/ and recheck please? Florent Hi Florent. All our unit tests pass again. I'm really looking forward for having a new Zope .0 release which might be compatible with an existing Plone release ;) Great

Re: [Zope-dev] Re: DateTime mess

2005-11-29 Thread Jens Vagelpohl
On 29 Nov 2005, at 16:46, Andreas Jung wrote: --On 29. November 2005 17:36:51 +0100 Lennart Regebro [EMAIL PROTECTED] wrote: A question that then pops up is: Do we want to force people to do a migration to upgrade between say Zope 2.9 and Zope 2.10, just to replace all the DateTime

[Zope-dev] Re: RFC: product initialization cleanup and improvements

2005-11-29 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 yuppie wrote: Ouch! I thought everything is in place for that feature, but an important piece of the puzzle is missing: The fix for checkPermission. http://www.zope.org/Collectors/Zope/1774 _verifyObjectPaste uses a hack to work around that

[Zope-DB] Z SQL equivelant of MySQL's SQL_CALC_FOUND_ROWS?

2005-11-29 Thread Kevin Monceaux
Zope Enthusiasts, I'm new to Zope so forgive me if the answer to this question is obvious. If one performs a select with a limit clause is it possible to determine how many results would have been returned if there was no limit? For example, if I wanted to select the first picture in a photo

Re: [Zope-DB] Z SQL equivelant of MySQL's SQL_CALC_FOUND_ROWS?

2005-11-29 Thread Charlie Clark
On 2005-11-29 at 20:20:10 [+0100], Kevin Monceaux [EMAIL PROTECTED] wrote: Zope Enthusiasts, I'm new to Zope so forgive me if the answer to this question is obvious. If one performs a select with a limit clause is it possible to determine how many results would have been returned if there