Mercurial > public > madeira
annotate mysite/photologue/management/commands/plcreatesize.py @ 25:186c30a29be4 django1.3
Updating the madeira.wsgi file; added a robots.txt.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 30 Mar 2011 00:00:58 +0000 |
parents | 0dcfcdf50c62 |
children |
rev | line source |
---|---|
bgneal@1 | 1 from django.core.management.base import BaseCommand, CommandError |
bgneal@1 | 2 from photologue.management.commands import create_photosize |
bgneal@1 | 3 |
bgneal@1 | 4 class Command(BaseCommand): |
bgneal@1 | 5 help = ('Creates a new Photologue photo size interactively.') |
bgneal@1 | 6 requires_model_validation = True |
bgneal@1 | 7 can_import_settings = True |
bgneal@1 | 8 |
bgneal@1 | 9 def handle(self, *args, **options): |
bgneal@1 | 10 create_size(args[0]) |
bgneal@1 | 11 |
bgneal@1 | 12 def create_size(size): |
bgneal@1 | 13 create_photosize(size) |