Re: Field.contribute_to_class and contrib fields

2007-05-16 Thread Robert Coup
Robert Coup wrote: > Jeremy Dunck wrote: > >> In the gis work, we'd like to contribute a fair bit of additional >> functionality to GIS fields and models with GIS fields. >> >> So far, field contributions seem to be largely done by adding >> attributes to the model, such as FileField's get_%s_u

Trac component for GIS branch?

2007-05-16 Thread Robert Coup
Hi powerful-ones, Any chance of getting a Trac component created for the django.contrib.gis stuff? Cheers Rob :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, s

Re: Field.contribute_to_class and contrib fields

2007-05-16 Thread Robert Coup
Jeremy Dunck wrote: > In the gis work, we'd like to contribute a fair bit of additional > functionality to GIS fields and models with GIS fields. > > So far, field contributions seem to be largely done by adding > attributes to the model, such as FileField's get_%s_url. > > I think this approach m

DurationField update

2007-05-16 Thread Marty Alchin
I know I've been talking a lot about my DurationField submission lately, and I finally have some better code to back it up. I just submitted a new patch for #2443 that addresses the areas Malcolm recommended to me recently, including newforms-admin. It's still missing tests and documentation, but

Re: Question for Oracle Boulder sprinters

2007-05-16 Thread Ian Kelly
On 5/16/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-05-15 at 17:07 -0600, Ian Kelly wrote: > > As expected, this is causing some failures in the serializers_regress > > tests; specifically #s 15, 41, 51, 61, 91, 102, 141, 162, 181, and > > 191. Each of these is the result of

Re: Question for Oracle Boulder sprinters

2007-05-16 Thread Ian Kelly
On 5/16/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > I haven't looked at the latest patch: did you remember to document this > in models-api.txt? No, I'll have to take a look through the documentation some time and figure out what needs to be added for the branch. Thanks, Ian Kelly --~

Re: Storing Fractional Seconds in Oracle

2007-05-16 Thread Ian Kelly
On 5/16/07, benk <[EMAIL PROTECTED]> wrote: > > Hi, > > I was wondering if someone could shed some light on the subject of why > Oracle support in Django removes fractional seconds (milliseconds/ > microseconds) from datetime fields. That's a good question. The code to remove fractional seconds i

Re: django-values update

2007-05-16 Thread simonbun
On May 16, 12:47 pm, Gulopine <[EMAIL PROTECTED]> wrote: > Admittedly, I had considered adding 'choices', but I had decided > against it, given that these would be edited far less often than > standard Django models, and by more trustworthy personnel. I agree, but I'd just prefer to have it out

Re: Resize images on demand

2007-05-16 Thread [EMAIL PROTECTED]
The most common use case is that someone wants to create the tag with the appropriate height and width. If the incorrect values are put in, then the browser might try to scale the image which is not what we want. I'm not opposed to modifying the tag to return the actual size by using PIL calls.

Re: django-values update

2007-05-16 Thread Gulopine
Admittedly, I had considered adding 'choices', but I had decided against it, given that these would be edited far less often than standard Django models, and by more trustworthy personnel. It just didn't seem quite worth it to me. However, given that the app is quite likely to be used by distribut

Re: Resize images on demand

2007-05-16 Thread Chris Beaven
Hi John, Probably the best thing to do is look at the contrib.thumbnails patch and see if there's something you could add to it: http://code.djangoproject.com/ticket/4115 On 5/16/07, John Sutherland <[EMAIL PROTECTED]> wrote: > > Morning, > > Sorry, I'm a little late to join this discussion. > >

Re: Resize images on demand

2007-05-16 Thread John Sutherland
Morning, Sorry, I'm a little late to join this discussion. We have some code here (at Mercurytide[1]) which we use to generate thumbnails by cropping and scaling images, results can be seen on the bottom of the right column of: I'll see what the

Re: Question for Oracle Boulder sprinters

2007-05-16 Thread Malcolm Tredinnick
On Tue, 2007-05-15 at 17:07 -0600, Ian Kelly wrote: > On 5/11/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > Given the observation that Martin Winkler made in a recent thread ([1]), > > pointing out Oracles '' = NULL addiction, it made me think of something > > related: there are a lot

Re: Field.contribute_to_class and contrib fields

2007-05-16 Thread Jason Davies
On May 15, 11:09 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > It seems to me that keeping such things as attributes of the field > would be desirable since they're related and since doing so would > namespace them. Namespaces are good. :) Agreed. This did cross my mind some time ago actual

Re: Resize images on demand

2007-05-16 Thread Chris Beaven
On 5/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The other alternative might be to cache the file sizes and return it > that way. The benfit is that the filenames are cleaner but the > downside might be the complexity. Or we just keep it the way it is ;) Is there really that much bene

Storing Fractional Seconds in Oracle

2007-05-16 Thread benk
Hi, I was wondering if someone could shed some light on the subject of why Oracle support in Django removes fractional seconds (milliseconds/ microseconds) from datetime fields. In my particular scenario, I am populating an Oracle database from a separate non Django application and using Django