Carl Karsten wrote:
> Russell Keith-Magee wrote:
>> On Wed, May 14, 2008 at 1:20 PM, Carl Karsten <[EMAIL PROTECTED]> wrote:
>>> Russell Keith-Magee wrote:
>>>> On Wed, May 14, 2008 at 1:09 AM, Carl Karsten <[EMAIL PROTECTED]> wrote:
>>> What are the chances of getting a dumpdata hack to exclude certain apps?
>>>
>>> I know it isn't too hard to figure out what apps I want to backup, but it 
>>> sounds
>>> like the 'exclude' feature might be useful even once this issue is resolved.
>> It's a reasonable idea - one well worth suggesting as a feature
>> enhancement (I have a nagging feeling that there is something in there
>> already, but I could be getting confused).
>>
>> What are the chances such a fix will automagically materialize out of
>> the ether? Not high. What are the chances that a patch implementing
>> this feature would be added to trunk? Fairly good, conditional on the
>> quality of the patch.
> 
> I am not submitting here, I just want to discuss it first.
> 
> 1. what do you think of this syntax I invented:
>   --option "list of items"
> 
> I don't like it, but not sure how else to do it.

I think I like this better:

make_option('-e', '--exclude', dest='exclude', action='append',
  help='App to exclude (use mutiple --exclude to exclude mutiple apps).'),

./manage.py dumpdata -e core -e countries -e sessions -e sites

previous way:
./manage.py dumpdata --exclude "core countries sessions sites"

Carl K

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to