import csv
from optparse import make_option
import re
-import sys
import urllib
import urllib2
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
- make_option('-r', '--redakcja', dest='redakcja', metavar='URL',
+ make_option(
+ '-r', '--redakcja', dest='redakcja', metavar='URL',
help='Base URL of Redakcja documents',
default=REDAKCJA_URL),
- make_option('-q', '--quiet', action='store_false', dest='verbose', default=True,
+ make_option(
+ '-q', '--quiet', action='store_false', dest='verbose', default=True,
help='Less output'),
- make_option('-f', '--force', action='store_true', dest='force', default=False,
+ make_option(
+ '-f', '--force', action='store_true', dest='force', default=False,
help='Force assignment overwrite'),
)
help = 'Imports ticket assignments from Redmine.'
if ticket_done:
done_tickets += 1
-
# Print results
print
print "Results:"
print " %s (%d tickets)" % (name, unknown_users[name])
print
-
transaction.commit()
transaction.leave_transaction_management()
-