from django.core.management.base import BaseCommand
from optparse import make_option

class Command(BaseCommand):
    help = 'Fetch all registered imports'
    def handle(self, *test_labels, **options):
        from ella.imports.models import fetch_all
        fetch_all()

from django.core.management.base import NoArgsCommand
from optparse import make_option
import sys

class Command(NoArgsCommand):
    help = 'Fetch all registered imports'
    def handle(self, *test_labels, **options):
        from ella.imports.models import fetch_all
        errors = fetch_all()
        if errors:
            sys.exit(errors)

Return exit code (count of errors)
Return exit code (count of errors)


git-svn-id: 6ce22b13eace8fe533dbb322c2bb0986ea4cd3e6@520 2d143e24-0a30-0410-89d7-a2e95868dc81
