Re: Command and option ordering (refactoring command options)

2007-09-02 Thread Adrian Holovaty
On 9/2/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > Any objections to requiring the second form? I don't have any huge objections, and it makes sense that we'd require this, given that each command knows what its valid options are. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com -

Re: How should help work (refactoring command options)

2007-09-02 Thread Adrian Holovaty
On 9/2/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > How would people feel about going to an svn style for help? My specific > proposal is that 'help' would be added as a possible command. > > $ django-admin.py help > > would list all possible commands. > > $ django-admin.py help command_name > >

Re: #4412 -- Optgroups in newforms select widgets

2007-09-02 Thread Tai Lee
Isn't having choices (with a value and display text) already combining presentation with the model? I don't see why having the model ignore the groupings would be any worse than having the model ignore the display text for each choice. I'd really like to see nested choices / optgroups allowed in

Re: How should help work (refactoring command options)

2007-09-02 Thread Russell Keith-Magee
On 9/3/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > How would people feel about going to an svn style for help? My specific > proposal is that 'help' would be added as a possible command. +1. When there were only a few commands, a single help page made sense, but now that there are dozens of c

Re: Python 3

2007-09-02 Thread Bjørn Stabell
Guido strongly recommends you try to rely on the 2to3 conversion tool to generate the Python 3000 version for a while to come, or suffer having to maintain two code bases. So "porting" should ideally be fixing the 2to3 tool, or tweaking the Python 2.x version of Django so that the tool can do its

Re: some trouble with an older bug

2007-09-02 Thread Michael Radziej
Hi Julian, Julian schrieb: >> Ahem ... where's the patch in the ticket? Perhaps I'm being dumb, but I >> honestly don't see one. >> > > Okay, sorry, it should have been this link: > > http://code.djangoproject.com/ticket/285 > > but maybe i am totally wrong and better stop writing. Well, to a

How should help work (refactoring command options)

2007-09-02 Thread Todd O'Bryan
Currently, $ django-admin.py --help returns a usage guide for every command available. It's long and lists all command options at the bottom, even though some are only appropriate for some commands. Because of this, each command has to list which options it allows separately and these appear in

Command and option ordering (refactoring command options)

2007-09-02 Thread Todd O'Bryan
Currently, both of the following work: $ django-admin.py --opt value command_name [1] $ django-admin.py command_name --opt value [2] because django-admin.py is the actual command and the command_name is just an arg. If we create a parser that only admits options that are valid for the given co

Refactoring command options (was: Re: Setting the port for testserver)

2007-09-02 Thread Todd O'Bryan
On Tue, 2007-08-28 at 10:55 -0500, Adrian Holovaty wrote: > On 8/28/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > Here's a suggestion to pull the options out of > > django.core.management.ManagementUtility: What if we just read the > > command after manage.py/django-admin.py and then passed the

Re: some trouble with an older bug

2007-09-02 Thread Julian
> > Ahem ... where's the patch in the ticket? Perhaps I'm being dumb, but I > honestly don't see one. > Okay, sorry, it should have been this link: http://code.djangoproject.com/ticket/285 but maybe i am totally wrong and better stop writing. julian > Michael --~--~-~--~~---

Re: django on jython (new version)?

2007-09-02 Thread Leo Soto M.
On 8/31/07, Marty Alchin <[EMAIL PROTECTED]> wrote: > On 8/31/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: [...] > > If there are bits of Django that need to be fixed for Jython support, > > please file tickets with "jython" in the keywords field; I'll keep an > > eye on that tag and try to f

Re: some trouble with an older bug

2007-09-02 Thread Michael Radziej
Julian schrieb: > Sorry, i did not want to offend someone, but it was just a lttle bit > frustrating. > > there is a patch wich was postet here: > > http://code.djangoproject.com/ticket/1516 > > but it has not been applied to the yet, maybe i will do it manually > with my own local django-ins

Re: some trouble with an older bug

2007-09-02 Thread Julian
Sorry, i did not want to offend someone, but it was just a lttle bit frustrating. there is a patch wich was postet here: http://code.djangoproject.com/ticket/1516 but it has not been applied to the yet, maybe i will do it manually with my own local django-installation. kind regards julian On

Re: Python 3

2007-09-02 Thread Forest Bond
On Sun, Sep 02, 2007 at 10:04:35AM -0500, Jacob Kaplan-Moss wrote: > > but have any of the developers tried running django on Python 3? > > Python 3.0a1 (py3k, Aug 31 2007, 13:09:02) > [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin > Type "help", "copyright", "credits" or "license" for mo

Re: Python 3

2007-09-02 Thread Ivan Sagalaev
Jacob Kaplan-Moss wrote: > Yeah, it's gonna be a long road... Guido's tool "2to3"[1] should make those boring syntax conversions automatically and leave only juicy parts to human brains. [1]: http://svn.python.org/view/sandbox/trunk/2to3/ --~--~-~--~~~---~--~~ Y

Re: __slot__ like behaviour for Model classes?

2007-09-02 Thread Jay Parlar
On 9/1/07, jorjun <[EMAIL PROTECTED]> wrote: > But I disagree with __slots__ being justified purely for optimization > purposes. Disagree all you want, but this is what Guido Van Rossum, creator of Python and BDFL, had to say about it: "__slots__ is a terrible hack with nasty, hard-to-fathom sid

Re: Python 3

2007-09-02 Thread Jacob Kaplan-Moss
On 9/1/07, Griffin Caprio <[EMAIL PROTECTED]> wrote: > I know it's obscenely early, Yeah, it really is. Django's going to be Python 2-based for quite some time yet. > but have any of the developers tried > running django on Python? Python 3.0a1 (py3k, Aug 31 2007, 13:09:02) [GCC 4.0.1 (Apple Co

Re: How should I handle this test?

2007-09-02 Thread Malcolm Tredinnick
On Sun, 2007-09-02 at 10:42 +, SmileyChris wrote: > I wrote a patch [1] to fix counting distinct ValueQuerySets. My test > checks that it works > > >>> len(Article.objects.values('pub_date').distinct()) > 5 > >>> Article.objects.values('pub_date').distinct().count() > 5 > > The problem is, t

How should I handle this test?

2007-09-02 Thread SmileyChris
I wrote a patch [1] to fix counting distinct ValueQuerySets. My test checks that it works >>> len(Article.objects.values('pub_date').distinct()) 5 >>> Article.objects.values('pub_date').distinct().count() 5 The problem is, this unearthed a new bug: PostgreSQL chokes on the control test ("for SEL

Re: some trouble with an older bug

2007-09-02 Thread Malcolm Tredinnick
On Sun, 2007-09-02 at 02:49 -0700, Julian wrote: > hi there, > > until now i am very happy with django, but something made me spent > some hours of time with it, i've figured this out: > > http://code.djangoproject.com/ticket/5320 > > wich has an underlying issue: > > http://code.djangoproject

some trouble with an older bug

2007-09-02 Thread Julian
hi there, until now i am very happy with django, but something made me spent some hours of time with it, i've figured this out: http://code.djangoproject.com/ticket/5320 wich has an underlying issue: http://code.djangoproject.com/ticket/1516 wich is obviously not solved yet. it occurrs in a t