Code

Changes between Initial Version and Version 2 of Ticket #5369


Ignore:
Timestamp:
09/09/07 13:32:28 (7 years ago)
Author:
adrian
Comment:

Fixed formatting in description.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5369

    • Property Needs documentation unset
    • Property Needs tests unset
    • Property Patch needs improvement unset
  • Ticket #5369 – Description

    initial v2  
    11After the refactoring of django.core.management, it was clear that having one universal set of options was less elegant than allowing each command to register just those options it allows. This refactoring keeps exactly the same functionality, but separates out the options. Any subclass of BaseCommand can provide its own option_list (with each option created using optparse.make_option). It inherits all the options in its class hierarchy. (One caveat: BaseCommand subclasses can only extend one superclass. I think handling multiple inheritance is possible, but I'm not sure how much harder it would be and can't think of a reasonable use case that would require it.) 
    22 
    3 There is a slight backwards incompatibility.{{{ 
    4 django-admin.py --option command 
    5 }}} must now be written as {{{ 
    6 django-admin.py command --option 
    7 }}} 
     3There is a slight backwards incompatibility. {{{django-admin.py --option command}}} must now be written as {{{django-admin.py command --option}}}.