comparison mysite/photologue/management/commands/plcreatesize.py @ 1:0dcfcdf50c62

Initial import of Madeira project from the private repository.
author Brian Neal <bgneal@gmail.com>
date Mon, 06 Apr 2009 03:10:59 +0000
parents
children
comparison
equal deleted inserted replaced
0:df0370bfe3f0 1:0dcfcdf50c62
1 from django.core.management.base import BaseCommand, CommandError
2 from photologue.management.commands import create_photosize
3
4 class Command(BaseCommand):
5 help = ('Creates a new Photologue photo size interactively.')
6 requires_model_validation = True
7 can_import_settings = True
8
9 def handle(self, *args, **options):
10 create_size(args[0])
11
12 def create_size(size):
13 create_photosize(size)