Re: [Zope] DateTime mess

2005-11-25 Thread Chris Withers
Peter Bengtsson wrote: -1 on making DateTime deprecated. I'm sure thousands of zope people use DateTime in thousands of places. Technically it might be correct deprecate it but politically it's just going to put people off from upgrading. I'm sure it would be fairly trivial to write an

Re: [Zope] DateTime mess

2005-11-25 Thread Chris Withers
Lennart Regebro wrote: It depends on what you mena with deprecated. It *is* deprecated from the point of view, that if you start developing something new now, then don't use it. Really? What should we be using instead then? It is not deprecated in the way that this will go away in the

Re: [Zope] 120MB file import failures

2005-11-25 Thread Chris Withers
Michael Dexter wrote: I apologize if this is a FAQ, I could not find the answer. I would like to put a 120MB file into ZODB and it is constantly failing. Have a look at Tramlines from Infrae... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope] DateTime mess

2005-11-25 Thread Lennart Regebro
On 11/25/05, Chris Withers [EMAIL PROTECTED] wrote: Really? What should we be using instead then? datetime works much better in most cases. I honestly think it _should_ go away, just with plenty of notice... Well, possibly. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content

[Zope] Creating a DTM Document in a variable folder.

2005-11-25 Thread Martin Koekenberg
Hello, I don'thave any Python experience yet, so who has a solution for this 'problem'. Example: I 've 3 folders a, b c. I want to create a dtml document in a folder by a form. The folder is a variable in my form. The formis no problem, the form action is no problem. The python

[Zope] Psycopg export/import

2005-11-25 Thread William Herring
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. However, the methods I imported from Zope

Re: [Zope] Creating a DTM Document in a variable folder.

2005-11-25 Thread Peter Bengtsson
folder = getattr(context, 'b') adder = folder.manage_addProduct['OFSP'].methodAdd adder('index.html', 'Some title') That creates it with default content. To change it you'll have to call dtmlm = getattr(context, 'index.html') dtmlm.manage_edit(bla bla bla bla bla, 'Same title') # or f =

Re: [Zope] DateTime mess

2005-11-25 Thread Dennis Allison
If I have a vote, +1 on deprecation and replacement with something less buggy. We have spent enormous amounts of time trying to sort out and then work around DateTime problems. On the other hand, we have a substantial amount of code that uses DateTime and finally, mostlyt works. We'd be

Re: [Zope] DateTime mess

2005-11-25 Thread Andreas Jung
--On 25. November 2005 12:22:05 -0800 Dennis Allison [EMAIL PROTECTED] wrote: If I have a vote, +1 on deprecation and replacement with something less buggy. You can only deprecate when you have something better. As long as there is no useful replacemenet there is nothing to deprecate

Re: [Zope] DateTime mess

2005-11-25 Thread Dennis Allison
True. But the context of this thread was whether deprecation made sense or not. I was agreeing with Chris that the DateTime problems are better solved by replacement than by patching, but also that there is a large amount of code that has been made to work using the current DataTime and

Re: [Zope] Psycopg export/import

2005-11-25 Thread Dieter Maurer
William Herring wrote at 2005-11-25 11:31 -0500: ... However, the methods I imported from Zope 2.2.2 do not connect to the database. Message is Warning: The database connection for this method cannot be found!. However, the Connection ID is shown and all appears to be in place. Where is this

Re: [Zope] 120MB file import failures

2005-11-25 Thread Dieter Maurer
Michael Dexter wrote at 2005-11-24 11:49 -0800: I apologize if this is a FAQ, I could not find the answer. I would like to put a 120MB file into ZODB and it is constantly failing. But you should have learned that you cannot simply say is failing but must describe precisely (error information,

Re: [Zope] DateTime mess

2005-11-25 Thread Andreas Jung
--On 25. November 2005 12:43:48 -0800 Dennis Allison [EMAIL PROTECTED] wrote: True. But the context of this thread was whether deprecation made sense or not. I was agreeing with Chris that the DateTime problems are better solved by replacement than by patching, but also that there is a

[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/ Merged Five 1.2 branch changeset 20253:

2005-11-25 Thread Florent Guillaume
Log message for revision 40370: Merged Five 1.2 branch changeset 20253: Send ContainerModifiedEvent when appropriate. This requires Five 1.3+ = r20254. Some BBB has been kept until Zope 3.2 = r40368 is stiched in. Changed: U Zope/branches/2.9/lib/python/OFS/CopySupport.py

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

2005-11-25 Thread Florent Guillaume
Log message for revision 40371: Merged 40370 from 2.9 branch: Send ContainerModifiedEvent when appropriate. This requires Five 1.3+ = r20254. Some BBB has been kept until Zope 3.2 = r40368 is stiched in. Changed: U Zope/trunk/lib/python/OFS/CopySupport.py U

[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/Products/Five/ Updated to Five 1.3b4.

2005-11-25 Thread Florent Guillaume
Log message for revision 40372: Updated to Five 1.3b4. Changed: U Zope/branches/2.9/lib/python/Products/Five/CHANGES.txt U Zope/branches/2.9/lib/python/Products/Five/__init__.py U Zope/branches/2.9/lib/python/Products/Five/tests/event.txt U

[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/Products/Five/monkey.py Forgotten in Five 1.3b4 merge.

2005-11-25 Thread Florent Guillaume
Log message for revision 40374: Forgotten in Five 1.3b4 merge. Changed: A Zope/branches/2.9/lib/python/Products/Five/monkey.py -=- Added: Zope/branches/2.9/lib/python/Products/Five/monkey.py === ---

[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Five/monkey.py Forgotten in Five 1.3b4 merge.

2005-11-25 Thread Florent Guillaume
Log message for revision 40375: Forgotten in Five 1.3b4 merge. Changed: A Zope/trunk/lib/python/Products/Five/monkey.py -=- Added: Zope/trunk/lib/python/Products/Five/monkey.py === ---

[Zope-dev] I volunteer to make ConflictError handling better if you guys can help me ;-)

2005-11-25 Thread Chris Withers
Dieter Maurer wrote: What is this telling me? It is incredibly stupid. So I'm gathering... The message above only tells you, that (at the given time) a request for /some_uri resulted in a ConflictError and that since startup (at the given time) 347 conflicts occured. Unfortunately, it

Re: [Zope-dev] Not-really-unit-testing ideas.

2005-11-25 Thread Chris Withers
Fred Drake wrote: On 11/23/05, Lennart Regebro [EMAIL PROTECTED] wrote: Basically, I'd like to create a site once, and use it for all subsequent tests, until I made a change that means the site needs to be recreated. But how? Well, I'm not sure. How, for example, could I Jim's new test

Re: [Zope-dev] Re: How bad _are_ ConflictErrors

2005-11-25 Thread Chris Withers
Florent Guillaume wrote: I'm actually not sure what's logged when a Conflict Error makes it back to the users, offhand I don't see anything in my logs. Can someone confirm or infirm that fact? Well, I can agree based on empirical evidence. I have MailingLogger (sorry, I really feel the

[Zope-dev] ConflictError shouldn't subclass Exception

2005-11-25 Thread Chris Withers
Hi All, Chris McDonough wrote: Is this the number of log messages that indicate a conflict error occurred (e.g. x conflict errors since DATE messages in the event log) or the number of conflict errors that are retried more than three times and thus make it out to the app user? I'm

[Zope-dev] Re: How bad _are_ ConflictErrors

2005-11-25 Thread Florent Guillaume
Chris Withers wrote: If nothing is logged, I'll add something at level ERROR. Has this been done? If not, I volunteer to do it as part of my upcoming make COnflictErrors suck less work ;-) I'm working on it at the moment. BTW does someone have a handy script to provoke conflict errors on

Re: [Zope-dev] Re: How bad _are_ ConflictErrors

2005-11-25 Thread Sidnei da Silva
On Fri, Nov 25, 2005 at 11:22:32AM +0100, Florent Guillaume wrote: | Guess what, I know that. But I want a real ConflictError, to see what | useful info about involved objects I can log. I'm pretty sure there are ZODB tests that exercise the creation and handling of ConflictError. -- Sidnei da

Re: [Zope-dev] Not-really-unit-testing ideas.

2005-11-25 Thread Jim Fulton
Chris Withers wrote: Fred Drake wrote: On 11/23/05, Lennart Regebro [EMAIL PROTECTED] wrote: Basically, I'd like to create a site once, and use it for all subsequent tests, until I made a change that means the site needs to be recreated. But how? Well, I'm not sure. How, for example, could I

[Zope-dev] removing test.py from path

2005-11-25 Thread Tarek Ziadé
Hello, Benji recently changed test.py in Z3 in order to avoid collision name with the standard python 'test' module. I bumped into the same problem running tests under Z 2.8. I would like to add this change as well in Z 2.8 bin/test.py if no one objects. Tarek -- Tarek Ziadé | Nuxeo RD

Re: [Zope-dev] removing test.py from path

2005-11-25 Thread Tarek Ziadé
Tarek Ziadé wrote: Hello, Benji recently changed test.py in Z3 in order to avoid collision name with the standard python 'test' module. I bumped into the same problem running tests under Z 2.8. I would like to add this change as well in Z 2.8 bin/test.py if no one objects. oups, tipo,

[Zope-dev] More events

2005-11-25 Thread Florent Guillaume
I've made changes so that Five and (Zope 2.9 Zope 2 trunk) send IContainerModifiedEvents when appropriate. These events are new in Zope 3.2, and subclass IObjectModifiedEvents. This is of course available in Five 1.2 and Five 1.3. I still have to stich in a snapshot of Five 1.3 into Zope

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

2005-11-25 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: 1818 Blamelist: anguenot,chrisw,efge,jinty,sidnei,yuppie BUILD FAILED: failed test sincerely, -The Buildbot

[Zope-dev] ConflictError shouldn't subclass Exception

2005-11-25 Thread Patrick Gerken
2005/11/24, Chris Withers [EMAIL PROTECTED]: Interestingly, you can raise things that don't subclass Exception in python. This was discussed before, and I firmly agree with, that zodb conflicts should _not_ sublcass exception. That way, there's less chance of them being caught by

Re: [Zope-dev] ConflictError shouldn't subclass Exception

2005-11-25 Thread Chris McDonough
On Nov 25, 2005, at 2:25 PM, Patrick Gerken wrote: 2005/11/24, Chris Withers [EMAIL PROTECTED]: Interestingly, you can raise things that don't subclass Exception in python. This was discussed before, and I firmly agree with, that zodb conflicts should _not_ sublcass exception. That way,

Re: [Zope-dev] I volunteer to make ConflictError handling better if you guys can help me ;-)

2005-11-25 Thread Dieter Maurer
Chris Withers wrote at 2005-11-24 19:42 +: ... I would really appreciate it if you could dig this out and give me a direct url. If you do, I promise I will see it gets properly merged into the Zope core... You know that I *never* search for others (I hate searching). But I can show you

Re: [Zope-dev] Re: How bad _are_ ConflictErrors

2005-11-25 Thread Dieter Maurer
Florent Guillaume wrote at 2005-11-25 11:22 +0100: ... Guess what, I know that. But I want a real ConflictError, to see what useful info about involved objects I can log. The only thing you need to log is str(conflict_error_value). ConflictError does a good job to provide all available

Re: [Zope-dev] ConflictError shouldn't subclass Exception

2005-11-25 Thread Dieter Maurer
Chris Withers wrote at 2005-11-24 19:34 +: ... and I firmly agree with, that zodb conflicts should _not_ sublcass exception. -1 That way, there's less chance of them being caught by inexperienced programmers putting in try: except Exception: 's. Most people that use an unrestricted try

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

2005-11-25 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: 1820 Blamelist: efge BUILD FAILED: failed test sincerely, -The Buildbot ___ Zope-Dev

[Zope-dev] Zope-2.8.4 Problem with Plone-2.1.1

2005-11-25 Thread Tony Addyman
I am running Plone-2.1.1. I recently upgraded from zope-2.8.3 to zope-2.8.4 with no apparent issues. However, today when I attempted to view the properties of the Document content type within portal_types, i.e. I used a URL ending with /portal_types/Document/manage_propertiesForm. I received the

[Zope-dev] Re: More events

2005-11-25 Thread Florent Guillaume
Florent Guillaume wrote: I've made changes so that Five and (Zope 2.9 Zope 2 trunk) send IContainerModifiedEvents when appropriate. These events are new in Zope 3.2, and subclass IObjectModifiedEvents. This is of course available in Five 1.2 and Five 1.3. I still have to stich in a

[Zope-dev] Re: Zope-2.8.4 Problem with Plone-2.1.1

2005-11-25 Thread Alexander Limi
Put it in the Plone issue tracker, and we'll have a look at it. PS: Don't cross-post to lists when you want to ask several lists about the same - post individual messages, a lot of people don't like cross-posting. (Personally I don't really care, but... :) -- Alexander On Fri, 25 Nov 2005