--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/lib/photologue/management/commands/plcreatesize.py Thu Jan 21 18:41:10 2010 +0100
@@ -0,0 +1,13 @@
+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)