Re: to_python ignored with custom IntegerField

2007-11-05 Thread Marty Alchin
On 11/5/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > This thread motivated me to finish this work. Update to r6652 and you'll > have some documentation and a helper metaclass for the common case (if > you need something more advanced, you can obviously do without the > metaclass and code

Re: to_python ignored with custom IntegerField

2007-11-05 Thread Malcolm Tredinnick
On Sun, 2007-11-04 at 14:25 +1100, Malcolm Tredinnick wrote: [...] > What needs to be changed for field subclassing -- and I keep meaning to > finish this work, along with my 5 other highest priorities -- is that > for custom fields (only!) we install attributes as part of contribute to > class

Re: to_python ignored with custom IntegerField

2007-11-03 Thread Malcolm Tredinnick
On Sun, 2007-11-04 at 04:08 +0100, Stefan Foulis[spiderware gmbh] wrote: > Hi > I've tried to create a custom Field for the database to store > Timedelta objects. Since I only need exactness to the minute and won't > have any large timedeltas I'm using a simple Integer to store it in > the

to_python ignored with custom IntegerField

2007-11-03 Thread Stefan Foulis [spiderware gmbh]
Hi I've tried to create a custom Field for the database to store Timedelta objects. Since I only need exactness to the minute and won't have any large timedeltas I'm using a simple Integer to store it in the database. Maybe I'll make this configurable later. this is the code: