Re: new syntax for management commands

2012-08-13 Thread Russell Keith-Magee
On Mon, Aug 13, 2012 at 8:33 PM, Melvyn Sopacua wrote: > On 13-8-2012 1:54, Alex Gaynor wrote: > >> In my view, the current largest source of boilerplate with management >> commands is where they have to be, you have to stick them 3 directories >> deep. Writing a command itself is pretty boilerpl

Re: new syntax for management commands

2012-08-13 Thread Melvyn Sopacua
On 13-8-2012 1:54, Alex Gaynor wrote: > In my view, the current largest source of boilerplate with management > commands is where they have to be, you have to stick them 3 directories > deep. Writing a command itself is pretty boilerplate free. Ironically, this is easily fixed with a createcomma

Re: new syntax for management commands

2012-08-12 Thread Florian Apolloner
Hi, On Monday, August 13, 2012 1:54:36 AM UTC+2, Alex_Gaynor wrote: > > In my view, the current largest source of boilerplate with management > commands is where they have to be, you have to stick them 3 directories > deep. Writing a command itself is pretty boilerplate free. > Agreed, a saner

Re: new syntax for management commands

2012-08-12 Thread Alex Gaynor
On Sun, Aug 12, 2012 at 4:51 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > On Sun, Aug 12, 2012 at 6:32 PM, Florian Apolloner > wrote: > > Hi, > > > > > > On Sunday, August 12, 2012 2:22:58 AM UTC+2, Russell Keith-Magee wrote: > >> > >> I'll agree that it looks appealing. However, a

Re: new syntax for management commands

2012-08-12 Thread Russell Keith-Magee
On Sun, Aug 12, 2012 at 6:32 PM, Florian Apolloner wrote: > Hi, > > > On Sunday, August 12, 2012 2:22:58 AM UTC+2, Russell Keith-Magee wrote: >> >> I'll agree that it looks appealing. However, as always, my question is >> about backwards compatibility. > > > Seriously? In my eyes it's ugly, especi

Re: new syntax for management commands

2012-08-12 Thread Mikhail Korobov
Some people prefer argparse, some people prefer decorator-based syntax (like django-boss or argh), there are people prefer other methods (e.g. docopt). I think it is better not to invent yet another command-line framework. Maybe delegate option parsing to user favorive library and provide some

Re: new syntax for management commands

2012-08-12 Thread Florian Apolloner
Hi, On Sunday, August 12, 2012 2:22:58 AM UTC+2, Russell Keith-Magee wrote: > > I'll agree that it looks appealing. However, as always, my question is > about backwards compatibility. > Seriously? In my eyes it's ugly, especially if you have more than one options. Eg imagine you have decorated

Re: new syntax for management commands

2012-08-11 Thread Russell Keith-Magee
On Sun, Aug 12, 2012 at 5:26 AM, dffdgsdfgsdfhjhtre wrote: > https://github.com/zacharyvoase/django-boss > http://blog.zacharyvoase.com/2009/12/09/django-boss/ > > What is the outlook of something like this replacing the current way > management commands are handled by django? I'm no the author of

new syntax for management commands

2012-08-11 Thread dffdgsdfgsdfhjhtre
https://github.com/zacharyvoase/django-boss http://blog.zacharyvoase.com/2009/12/09/django-boss/ What is the outlook of something like this replacing the current way management commands are handled by django? I'm no the author of django-boss, but I think this syntax is much better and more pytho