[Zope-dev] Zope Tests: 5 OK

2007-08-25 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Fri Aug 24 12:00:00 2007 UTC to Sat Aug 25 12:00:00 2007 UTC. There were 5 messages: 5 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Fri Aug 24 20:52:51 EDT 2007

[Zope-dev] Options replacing DateTime with datetime!?

2007-08-25 Thread Andreas Jung
Hi, perhaps the sun burned too long on my brain today but I investigated some options for replacing DateTime with Python's datetime module. Zope 3 uses datetime and we all know that the DateTime implementation sucks. Especially the timezone implementation has a bunch of problems (count the

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: Hi, perhaps the sun burned too long on my brain today but I investigated some options for replacing DateTime with Python's datetime module. Zope 3 uses datetime and we all know that the DateTime implementation sucks.

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-25 Thread Andreas Jung
--On 25. August 2007 12:33:41 -0400 Tres Seaver [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: Hi, perhaps the sun burned too long on my brain today but I investigated some options for replacing DateTime with Python's datetime module. Zope 3

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: --On 25. August 2007 12:33:41 -0400 Tres Seaver [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: Hi, perhaps the sun burned too long on my brain today but I investigated some

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-25 Thread Philipp von Weitershausen
Tres Seaver wrote: Andreas Jung wrote: Hi, perhaps the sun burned too long on my brain today but I investigated some options for replacing DateTime with Python's datetime module. Zope 3 uses datetime and we all know that the DateTime implementation sucks. Especially the timezone

[Zope] Deleting a file in Python

2007-08-25 Thread zozer
I'm reading the zope book, 2.6. And I've worked through the ZopeZoo tutorial in chapter 11. I want to make it possible to delete entries in the GuestBook via its web interface. It uses a python script to create the file with the line: context.manage_addProduct['OFSP'].manage_addFile(id,

Re: [Zope] Deleting a file in Python

2007-08-25 Thread Andreas Jung
--On 25. August 2007 07:35:06 -0400 [EMAIL PROTECTED] wrote: I'm reading the zope book, 2.6. And I've worked through the ZopeZoo tutorial in chapter 11. I want to make it possible to delete entries in the GuestBook via its web interface. It uses a python script to create the file with the

[Zope] Help with DateTime.earliestTime()

2007-08-25 Thread Eric Thomas
I've been having a site problem that I've tracked down to DateTime. Simply enough, the code snippets below both try to add 31 days to the first day in October. I'm expecting this to result in the first day of November. Good Example: from DateTime import DateTime start=DateTime('2005/10/01

Re: [Zope] Help with DateTime.earliestTime()

2007-08-25 Thread Andreas Jung
--On 25. August 2007 07:18:42 -0500 Eric Thomas [EMAIL PROTECTED] wrote: I've been having a site problem that I've tracked down to DateTime. Simply enough, the code snippets below both try to add 31 days to the first day in October. I'm expecting this to result in the first day of November.

Re: [Zope] Help with DateTime.earliestTime()

2007-08-25 Thread Jonathan
- Original Message - From: Eric Thomas [EMAIL PROTECTED] To: zope@zope.org Sent: Saturday, August 25, 2007 8:18 AM Subject: [Zope] Help with DateTime.earliestTime() I've been having a site problem that I've tracked down to DateTime. Simply enough, the code snippets below both try to

[Zope] Re: Help with DateTime.earliestTime()

2007-08-25 Thread Eric
I've been having a site problem that I've tracked down to DateTime.  Simply enough, the code snippets below both try to add 31 days to the first day in October.  I'm expecting this to result in the first day of November.   Good Example: from DateTime import DateTime

[Zope] How do I increment the number of entries in the Undo list?

2007-08-25 Thread rieh25
I nedd to undo an action that appears in the second page, but apparently I need to undo all the later actions in order to make it work. Thanks. -- View this message in context: http://www.nabble.com/How-do-I-increment-the-number-of-entries-in-the-Undo-list--tf4327989.html#a12326167 Sent from

Re: [Zope] utf-8 problem in Zope when using Localizer

2007-08-25 Thread Sascha Welter
(Fri, Aug 24, 2007 at 10:26:42AM +0200) Patrick Ulmer wrote/schrieb/egrapse: Now I only must find the right place for setdefaultencoding() so it only affect my zope-instance. Install a separate python that is used only by your zope instance. Use setdefaultencoding only there. Regards, Sascha

Re: [Zope] utf-8 problem in Zope when using Localizer

2007-08-25 Thread Andreas Jung
--On 25. August 2007 15:48:04 +0200 Sascha Welter [EMAIL PROTECTED] wrote: (Fri, Aug 24, 2007 at 10:26:42AM +0200) Patrick Ulmer wrote/schrieb/egrapse: Now I only must find the right place for setdefaultencoding() so it only affect my zope-instance. Install a separate python that is used

Re: [Zope] How do I increment the number of entries in the Undo list?

2007-08-25 Thread rieh25
I just found out it can be done in steps. rieh25 wrote: I nedd to undo an action that appears in the second page, but apparently I need to undo all the later actions in order to make it work. Thanks. -- View this message in context:

[Zope] MySql connector error

2007-08-25 Thread Kevin
I have a mysqldb connector object based on http://svn.zope.org/mysqldbda/ under zope 2.9.7 Intermittently, I recieve an error *Shouldn't load state for 0xf5f137 when the connection is closed * I implemented this object because the standard mysql database adapter would fail if the connection

[Zope] Re: How do I increment the number of entries in the Undo list?

2007-08-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rieh25 wrote: I nedd to undo an action that appears in the second page, but apparently I need to undo all the later actions in order to make it work. Thanks. For the record, you can hack the URL to give you a longer list of transactions, e.g.:

Re: [Zope] Deleting a file in Python

2007-08-25 Thread Tim Nash
I had to go to the zope cookbook today to get this script so I thought I'd paste it here for you as well. It may help you. It is from this url: http://zopelabs.com/cookbook/1037768468 hth Tim # to copy something from a folder copy_info = some_folder.manage_copyObjects(('object_foo',