Revision e47b76a5 snf-astakos-app/astakos/im/management/commands/fix-superusers.py
b/snf-astakos-app/astakos/im/management/commands/fix-superusers.py | ||
---|---|---|
30 | 30 |
# documentation are those of the authors and should not be |
31 | 31 |
# interpreted as representing official policies, either expressed |
32 | 32 |
# or implied, of GRNET S.A. |
33 |
: |
|
33 |
|
|
34 | 34 |
from optparse import make_option |
35 | 35 |
from datetime import datetime |
36 | 36 |
|
... | ... | |
40 | 40 |
|
41 | 41 |
|
42 | 42 |
class Command(NoArgsCommand): |
43 |
help = "Turn superusers created by syncdb to AstakosUser"
|
|
43 |
help = "Transform superusers created by syncdb into AstakosUser instances"
|
|
44 | 44 |
|
45 | 45 |
def handle(self, **options): |
46 | 46 |
try: |
47 | 47 |
fix_superusers() |
48 | 48 |
except BaseException, e: |
49 |
raise CommandError(e |
|
49 |
raise CommandError(e) |
Also available in: Unified diff