Re: [Zope] Overriding DateTime

2009-03-26 Thread Tim Knapp
On Thu, 2009-03-26 at 09:16 +, Maurits van Rees wrote: > Tim Knapp, on 2009-03-26: > > On Wed, 2009-03-25 at 21:20 +0100, Dieter Maurer wrote: > >> Tim Knapp wrote at 2009-3-23 18:21 +1300: > >> >I would like to override the DateTime.DateTime class within my

Re: [Zope] Overriding DateTime

2009-03-25 Thread Tim Knapp
On Wed, 2009-03-25 at 21:20 +0100, Dieter Maurer wrote: > Tim Knapp wrote at 2009-3-23 18:21 +1300: > >I would like to override the DateTime.DateTime class within my > >functional tests. I have tried mocking (via mocker) and injecting the > >subclassed DateTime class into sys.

Re: [Zope] Overriding DateTime

2009-03-23 Thread Tim Knapp
Hi Chris, On Mon, 2009-03-23 at 12:45 +, Chris Withers wrote: > Tim Knapp wrote: > > I would like to override the DateTime.DateTime class within my > > functional tests. I have tried mocking (via mocker) and injecting the > > subclassed DateTime class into sys.

Re: [Zope] Overriding DateTime

2009-03-23 Thread Tim Knapp
On Mon, 2009-03-23 at 06:25 +0100, Andreas Jung wrote: > > > On Mon, Mar 23, 2009 at 06:21, Tim Knapp wrote: > Hi, > > I would like to override the DateTime.DateTime class within my > functional tests. > I have tried mocking (via m

[Zope] Overriding DateTime

2009-03-22 Thread Tim Knapp
Hi, I would like to override the DateTime.DateTime class within my functional tests. I have tried mocking (via mocker) and injecting the subclassed DateTime class into sys.modules (results in a TraversalError). The fartherest I've gotten is to set DateTime.DateTime = MySubclassedDateTime in my tes