X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ac2e9ceea7cf6a59810081d52b64d9c22861c62d..7a12b550f4a8366c8ace2f9c55706aba7c4b17f7:/apps/api/management/commands/doc_share.py?ds=sidebyside diff --git a/apps/api/management/commands/doc_share.py b/apps/api/management/commands/doc_share.py index cf454c53..08d61fe1 100644 --- a/apps/api/management/commands/doc_share.py +++ b/apps/api/management/commands/doc_share.py @@ -3,20 +3,12 @@ __author__="lreqc" __date__ ="$2009-09-08 14:31:26$" -from django.core.management.base import BaseCommand -from django.utils import simplejson as json -from django.test.client import Client -from django.core.urlresolvers import reverse - -from optparse import make_option - -class Command(BaseCommand): - - option_list = BaseCommand.option_list + ( - make_option('-u', '--user', action='store', dest='username'), - make_option('-p', '--password', action='store', dest='password'), - ) - +from django.core.management.base import NoArgsCommand + +# from optparse import make_option + +class Command(NoArgsCommand): + def handle(self, *args, **options): client = Client() if not options['username'] or not options['password']: