#7784: Command.__handle__ instead of Command.handle ---------------------------+------------------------------------------------ Reporter: hvendelbo | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ I can see why the Command class convention is highly desirable. But wouldn't it make more sense to run a command using a __call__ function rather than a handle function?
The current pattern for writing Django Commands has a Javaesque base library dependency. Given how popular commands already are today, it would be desirable to make it easy to write commands that are independent of Django modules. A command is a callable object with option_list, help, args attributes is a convention that would be useful in Python in general. -- Ticket URL: <http://code.djangoproject.com/ticket/7784> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
