Re: Two field-related suggestions for newforms.models

2007-05-17 Thread David Priest
On 07-May-14, at 5:47 AM, Russell Keith-Magee wrote: > To my mind, editing relations in both directions on a form is no > different to being able to query in both directions in a filter > statement. I agree. Being able to create forms from multiple models would be killer. No application of us

Re: django-values update

2007-05-17 Thread Marty Alchin
On 5/17/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > The only thing holding me back from full support is the name; "values" > doesn't explain enough about what the app does to me. Yes, it's > bike-shedding, but Django's always had a nice color scheme. That is, > names are important (to a po

Re: Resize images on demand

2007-05-17 Thread [EMAIL PROTECTED]
Cool. I attached a simple patch that shows how I ended up solving the "size" problem. I just realized there's a small bug in my cut & paste but you can get the idea. size_cache.set(self.filename, im.size, _SIZE_CACHE_TIMEOUT) should be size_cache.set(self.filename, img.size, _SIZE_CACHE_TI

Re: Resize images on demand

2007-05-17 Thread SmileyChris
Right, check out the ticket again - new patch up. http://code.djangoproject.com/ticket/4115 On May 17, 1:19 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > The most common use case is that someone wants to create the tag > with the appropriate height and width. If the incorrect values are

Re: Tips on building a unit test for a ticket

2007-05-17 Thread Jacob Kaplan-Moss
On 5/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > - Right now, it looks like I'll end up creating a thumbnails directory > in /django/tests/regressiontests. Is this the right locattion? The general rule of thumb is: if you're testing a feature of the ORM -- a field, a database method, a

Re: #3527 - better debug traceback with code executing...

2007-05-17 Thread Jacob Kaplan-Moss
On 5/15/07, jedie <[EMAIL PROTECTED]> wrote: > Whats about INTERNAL_IPS [1] ? I think you need to let this one go. Malcom's already given a -1 and no other developers stepped up with even a +0. I'd love to see you develop this as an add-on -- a piece of exception middleware, probably -- but I do

Re: django-values update

2007-05-17 Thread Jacob Kaplan-Moss
> In my opinion it really deserves a spot in the default contrib apps. Mine as well. The only thing holding me back from full support is the name; "values" doesn't explain enough about what the app does to me. Yes, it's bike-shedding, but Django's always had a nice color scheme. That is, names

Re: Field.contribute_to_class and contrib fields

2007-05-17 Thread Marty Alchin
On 5/17/07, Robert Coup <[EMAIL PROTECTED]> wrote: > Yeah, I just wonder whether for files/images its worth having a python > object that provides the methods, since there is other metadata besides > the python file object (like its name!) > > eg: > my_model.attachment.file <- python file object >

Re: Field.contribute_to_class and contrib fields

2007-05-17 Thread Robert Coup
Marty Alchin wrote: > I like that approach to this rather tricky situation. With all my > recent work on DurationField, I took a chance at trying to make your > code into something generic enough to work for both needs, and > possibly others. I'm imagining a FileField that can act as a file-type >

Re: View this page "Great opportunity for a bright django developer"

2007-05-17 Thread Laura
Thanks Jacob. Sorry about that. I will post to the users group instead. Cheers. On 5/17/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > > On 5/17/07, dtlaura <[EMAIL PROTECTED]> wrote: > > We have a great opportunity for python/django developers. Please check > > out our job posting and appl

Re: View this page "Great opportunity for a bright django developer"

2007-05-17 Thread Jacob Kaplan-Moss
On 5/17/07, dtlaura <[EMAIL PROTECTED]> wrote: > We have a great opportunity for python/django developers. Please check > out our job posting and apply online if you are interested. Hey -- Thanks for the job posting -- hope you find a good person! -- but in the future please limit these types of

View this page "Great opportunity for a bright django developer"

2007-05-17 Thread dtlaura
Hi Everyone, We have a great opportunity for python/django developers. Please check out our job posting and apply online if you are interested. Cheers. Click on http://groups.google.com/group/django-developers/web/dt-is-looking-to-hire-a-bright-django-developer - or copy & paste it into your b

Re: Creating unique key using more than one field

2007-05-17 Thread Malcolm Tredinnick
On Thu, 2007-05-17 at 13:22 +, nagi wrote: > Thats unique_together = ('Field1','Field2') Thanks for the > suggestion.. In future, please ask these sorts of questions on the django-users list. We try very hard to keep internal development and user support on their respective lists, for the

Re: Changeset [5231] -- do_clean_*() is awkward naming

2007-05-17 Thread Malcolm Tredinnick
On Thu, 2007-05-17 at 10:52 -0400, Etienne Robillard wrote: > > I dont understand that changes. For me thats just odd, and > a royal pain to update lots of sites just for renaming clean_data to > cleaned_data. It's good programming practice that when a backwards incompatible change is introduce

Re: Field.contribute_to_class and contrib fields

2007-05-17 Thread Marty Alchin
I like that approach to this rather tricky situation. With all my recent work on DurationField, I took a chance at trying to make your code into something generic enough to work for both needs, and possibly others. I'm imagining a FileField that can act as a file-type object, lazily opening the fi

Re: Changeset [5231] -- do_clean_*() is awkward naming

2007-05-17 Thread Etienne Robillard
I dont understand that changes. For me thats just odd, and a royal pain to update lots of sites just for renaming clean_data to cleaned_data. I really think thats odd and a better rationale would take in consideration that already working and defined functions should try to keep at least some k

Re: Trac component for GIS branch?

2007-05-17 Thread Jeremy Dunck
Done. :) On 5/17/07, Robert Coup <[EMAIL PROTECTED]> wrote: > > 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 s

Re: Creating unique key using more than one field

2007-05-17 Thread nagi
Thats unique_together = ('Field1','Field2') Thanks for the suggestion.. On May 17, 1:32 pm, Margaret <[EMAIL PROTECTED]> wrote: > see FAQ underhttp://www.djangoproject.org > > On 5/17/07, nagi <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > I Need to create object in which a unique key sho

Re: Creating unique key using more than one field

2007-05-17 Thread Margaret
see FAQ under http://www.djangoproject.org On 5/17/07, nagi <[EMAIL PROTECTED]> wrote: > > Hi, > > I Need to create object in which a unique key should be be created > using more than one attribute of the object... > > How can I do that..? > > > Any suggestions welcome..! > > Regs, > Nagesh > >

Creating unique key using more than one field

2007-05-17 Thread nagi
Hi, I Need to create object in which a unique key should be be created using more than one attribute of the object... How can I do that..? Any suggestions welcome..! Regs, Nagesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to t