def do_sync(app_index): """ Get the app for the given index. For multiprocessing can't pass a complex object hence the call here...again """ #sanity check: try: app = get_apps()[app_index] couchdbkit_handler.sync(app, verbosity=2, temp='tmp') except Exception, ex: print "Exception running sync, but ignoring.\n\tapp=%s\n\t%s" % (app, ex) return "%s-error" % app_index
def handle(self, *args, **options): for app in apps.get_apps(): couchdbkit_handler.sync(app, verbosity=2)
def syncdb(app, created_models, verbosity=2, **kwargs): """ funtion used by syndb signal """ from couchdbkit.ext.django.loading import couchdbkit_handler couchdbkit_handler.sync(app, verbosity=2)
def syncdb(sender, **kwargs): """ function used by syncdb signal """ from couchdbkit.ext.django.loading import couchdbkit_handler couchdbkit_handler.sync(sender)
def handle_noargs(self, **options): for app in get_apps(): couchdbkit_handler.sync(app, verbosity=2)
def syncdb(app_config, verbosity=2, **kwargs): """ function used by syncdb signal """ from couchdbkit.ext.django.loading import couchdbkit_handler couchdbkit_handler.sync(app_config, verbosity=verbosity)
def handle(self, *args, **options): for app in apps.get_apps(): couchdbkit_handler.sync(app, verbosity=2, temp='tmp')