Mercurial > public > madeira
view mysite/photologue/management/commands/plcreatesize.py @ 20:7aa63299adf6
Adding a work around for IE path problem in the .css file, as per http://groups.google.com/group/fancybox/browse_frm/thread/8530478044b9f586
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 08 Sep 2010 23:15:57 +0000 |
parents | 0dcfcdf50c62 |
children |
line wrap: on
line source
from django.core.management.base import BaseCommand, CommandError from photologue.management.commands import create_photosize class Command(BaseCommand): help = ('Creates a new Photologue photo size interactively.') requires_model_validation = True can_import_settings = True def handle(self, *args, **options): create_size(args[0]) def create_size(size): create_photosize(size)