Re: Proposal - ChoiceField.choices need to accept callable, not only list or tuple

2010-03-23 Thread Ivan Sagalaev
George Karpenkov wrote: Given your experience, the chances are that you're right, however, I don't see any way how we can pass a generator which will not be called until the form class is instantiated. Why should a call matter? The body of the generator is not executed until first iteration at

Re: Proposal - ChoiceField.choices need to accept callable, not only list or tuple

2010-03-23 Thread George Karpenkov
Hi Ivan, Given your experience, the chances are that you're right, however, I don't see any way how we can pass a generator which will not be called until the form class is instantiated. We can't pass a generator function to choices (list() call will fail); we can pass the generator expression bu

Re: humanize.ordinal is very English-specific

2010-03-23 Thread Russell Keith-Magee
On Wed, Mar 24, 2010 at 4:03 AM, Shai Berger wrote: > Hi, > > I've been doing some translation work and ran into the humanize.ordinal > template tag; I found it extremely English-specific. It works by choosing > suffixes ("st", "nd", "rd", "th") to add to numeric representation (turning > e.g. 22

Re: Proposal - ChoiceField.choices need to accept callable, not only list or tuple

2010-03-23 Thread Ivan Sagalaev
George Karpenkov wrote: http://code.djangoproject.com/ticket/13181 I'm -1 on complicating it this way. The ability to pass a callable for choices is covered by passing a generator. Am I missing something? -- You received this message because you are subscribed to the Google Groups "Django d

Re: humanize.ordinal is very English-specific

2010-03-23 Thread Shai Berger
Hi again, On Tuesday 23 March 2010, s.kuzmenko wrote (I'm assuming you intended this to go to the group, rather than just me): > That's a hard one. In some languages those suffixes will depend on the noun > they refer to. To elaborate further your French example, the equivalent > of "1st" would

humanize.ordinal is very English-specific

2010-03-23 Thread Shai Berger
Hi, I've been doing some translation work and ran into the humanize.ordinal template tag; I found it extremely English-specific. It works by choosing suffixes ("st", "nd", "rd", "th") to add to numeric representation (turning e.g. 22 to "22nd") according to the last digit or two. In my languag

Re: Freelance opportunity: Front-end Django implementation

2010-03-23 Thread Alex Gaynor
On Tue, Mar 23, 2010 at 12:32 PM, replyforall wrote: > Hi Django community, > > Wanted to see if you might be able to help out with a near-term > project. > > We're looking for a freelance contractor for front-end implementation > for our Django site. The implementation should be done using Django

Freelance opportunity: Front-end Django implementation

2010-03-23 Thread replyforall
Hi Django community, Wanted to see if you might be able to help out with a near-term project. We're looking for a freelance contractor for front-end implementation for our Django site. The implementation should be done using Django template language. Required skills: strong familiarity with XHTM

Re: Proposal - hook to modify links in object-tools

2010-03-23 Thread Rajeev J Sebastian
On Tue, Mar 23, 2010 at 12:20 PM, George Karpenkov wrote: > once again, I'm happy to write a patch if people think it's a good > idea Love it! :) Regards Rajeev J Sebastian -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this