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

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

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

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

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

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

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

2010-03-23 Thread George Karpenkov
once again, I'm happy to write a patch if people think it's a good idea On Mar 11, 5:21 pm, George Karpenkov wrote: > Currently to add a link to object-tools one has to modify a template. > > I think that in most cases it would be much easier to do that through > python

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

2010-03-23 Thread George Karpenkov
http://code.djangoproject.com/ticket/13181 On Mar 23, 4:42 pm, Jared Forsyth wrote: > I say go for it, and post again with a patch and issue number (once you've > created them). Your idea seems sound. > > Jared > > On Mon, Mar 22, 2010 at 11:30 PM, George Karpenkov >