CouchAppsPreindexPlugin.register( 'couchapps', __file__, { 'form_question_schema': 'meta', 'schemas_by_xmlns_or_case_type': 'meta', 'export_instances_by_domain': 'meta', 'export_instances_by_is_daily_saved': 'meta', 'receiverwrapper': 'receiverwrapper', 'users_extra': (settings.USERS_GROUPS_DB, settings.NEW_USERS_GROUPS_DB), 'deleted_users_by_username': settings.USERS_GROUPS_DB, 'all_docs': (None, settings.NEW_USERS_GROUPS_DB, settings.NEW_FIXTURES_DB, 'meta', settings.NEW_DOMAINS_DB, settings.NEW_APPS_DB), 'by_domain_doc_type_date': (None, settings.NEW_USERS_GROUPS_DB, settings.NEW_FIXTURES_DB, 'meta', settings.NEW_DOMAINS_DB, settings.NEW_APPS_DB), 'last_modified': (settings.USERS_GROUPS_DB, settings.DOMAINS_DB, settings.NEW_APPS_DB), # register these views to both the main db AND the apps db. 'app_translations_by_popularity': (None, settings.NEW_APPS_DB), 'exports_forms_by_app': (None, settings.NEW_APPS_DB), 'forms_by_app_info': (None, settings.NEW_APPS_DB), # register just to the new apps db 'apps_with_submissions': settings.NEW_APPS_DB, 'saved_apps_auto_generated': settings.NEW_APPS_DB, 'global_app_config_by_app_id': settings.NEW_APPS_DB, })
CouchAppsPreindexPlugin.register( "couchapps", __file__, { "form_question_schema": "meta", "schemas_by_xmlns_or_case_type": "meta", "inferred_schemas_by_case_type": "meta", "export_instances_by_domain": "meta", "export_instances_by_is_daily_saved": "meta", "receiverwrapper": "receiverwrapper", "users_extra": (settings.USERS_GROUPS_DB, settings.NEW_USERS_GROUPS_DB), "deleted_users_by_username": settings.USERS_GROUPS_DB, "all_docs": ( None, settings.NEW_USERS_GROUPS_DB, settings.NEW_FIXTURES_DB, "meta", settings.NEW_DOMAINS_DB, settings.NEW_APPS_DB, ), "by_domain_doc_type_date": ( None, settings.NEW_USERS_GROUPS_DB, settings.NEW_FIXTURES_DB, "meta", settings.NEW_DOMAINS_DB, settings.NEW_APPS_DB, settings.SYNCLOGS_DB, ), # register these views to both the main db AND the apps db. "app_translations_by_popularity": (None, settings.NEW_APPS_DB), "apps_with_submissions": settings.NEW_APPS_DB, "exports_forms_by_app": (None, settings.NEW_APPS_DB), "forms_by_app_info": (None, settings.NEW_APPS_DB), "sync_logs_by_date": settings.SYNCLOGS_DB, }, )
from corehq.preindex import CouchAppsPreindexPlugin from django.conf import settings CouchAppsPreindexPlugin.register('couchapps', __file__, { 'form_question_schema': 'meta', 'schemas_by_xmlns_or_case_type': 'meta', 'export_instances_by_domain': 'meta', 'receiverwrapper': 'receiverwrapper', 'users_extra': (settings.USERS_GROUPS_DB, settings.NEW_USERS_GROUPS_DB), 'all_docs': ( None, settings.NEW_USERS_GROUPS_DB, settings.NEW_FIXTURES_DB, 'meta', settings.NEW_DOMAINS_DB, settings.NEW_APPS_DB), 'by_domain_doc_type_date': ( None, settings.NEW_USERS_GROUPS_DB, settings.NEW_FIXTURES_DB, 'meta', settings.NEW_DOMAINS_DB, settings.NEW_APPS_DB, settings.SYNCLOGS_DB), # register these views to both the main db AND the apps db. 'app_translations_by_popularity': (None, settings.NEW_APPS_DB), 'exports_forms_by_app': (None, settings.NEW_APPS_DB), 'forms_by_app_info': (None, settings.NEW_APPS_DB), })
from corehq.preindex import CouchAppsPreindexPlugin from django.conf import settings CouchAppsPreindexPlugin.register('mvp_indicators', __file__, { 'mvp_births_indicators': settings.MVP_INDICATOR_DB, 'mvp_child_health_indicators': settings.MVP_INDICATOR_DB, 'mvp_chw_referrals_indicators': settings.MVP_INDICATOR_DB, 'mvp_chw_visits_indicators': settings.MVP_INDICATOR_DB, 'mvp_deaths_indicators': settings.MVP_INDICATOR_DB, 'mvp_maternal_health_indicators': settings.MVP_INDICATOR_DB, 'mvp_over5_indicators': settings.MVP_INDICATOR_DB, 'mvp_verbal_autopsy_indicators': settings.MVP_INDICATOR_DB, })
CouchAppsPreindexPlugin.register( 'couchapps', __file__, { 'schemas_by_xmlns_or_case_type': settings.META_DB, 'export_instances_by_domain': settings.META_DB, 'export_instances_by_is_daily_saved': settings.META_DB, 'receiverwrapper': 'receiverwrapper', 'users_extra': settings.USERS_GROUPS_DB, 'deleted_users_by_username': settings.USERS_GROUPS_DB, 'all_docs': (None, settings.USERS_GROUPS_DB, settings.FIXTURES_DB, settings.META_DB, settings.DOMAINS_DB, settings.APPS_DB), 'by_domain_doc_type_date': (None, settings.USERS_GROUPS_DB, settings.FIXTURES_DB, settings.META_DB, settings.DOMAINS_DB, settings.APPS_DB), 'last_modified': (settings.USERS_GROUPS_DB, settings.DOMAINS_DB, settings.APPS_DB), 'app_translations_by_popularity': settings.APPS_DB, 'exports_forms_by_app': settings.APPS_DB, 'forms_by_app_info': settings.APPS_DB, 'apps_with_submissions': settings.APPS_DB, 'saved_apps_auto_generated': settings.APPS_DB, })
from __future__ import absolute_import from corehq.preindex import CouchAppsPreindexPlugin from django.conf import settings CouchAppsPreindexPlugin.register( 'mvp_indicators', __file__, { 'mvp_births_indicators': settings.MVP_INDICATOR_DB, 'mvp_child_health_indicators': settings.MVP_INDICATOR_DB, 'mvp_chw_referrals_indicators': settings.MVP_INDICATOR_DB, 'mvp_chw_visits_indicators': settings.MVP_INDICATOR_DB, 'mvp_deaths_indicators': settings.MVP_INDICATOR_DB, 'mvp_maternal_health_indicators': settings.MVP_INDICATOR_DB, 'mvp_over5_indicators': settings.MVP_INDICATOR_DB, 'mvp_verbal_autopsy_indicators': settings.MVP_INDICATOR_DB, })
from __future__ import unicode_literals from corehq.preindex import CouchAppsPreindexPlugin from django.conf import settings CouchAppsPreindexPlugin.register('couchapps', __file__, { 'form_question_schema': 'meta', 'schemas_by_xmlns_or_case_type': 'meta', 'export_instances_by_domain': 'meta', 'export_instances_by_is_daily_saved': 'meta', 'receiverwrapper': 'receiverwrapper', 'users_extra': (settings.USERS_GROUPS_DB, settings.NEW_USERS_GROUPS_DB), 'deleted_users_by_username': settings.USERS_GROUPS_DB, 'all_docs': ( None, settings.NEW_USERS_GROUPS_DB, settings.NEW_FIXTURES_DB, 'meta', settings.NEW_DOMAINS_DB, settings.NEW_APPS_DB), 'by_domain_doc_type_date': ( None, settings.NEW_USERS_GROUPS_DB, settings.NEW_FIXTURES_DB, 'meta', settings.NEW_DOMAINS_DB, settings.NEW_APPS_DB), 'last_modified': (settings.USERS_GROUPS_DB, settings.DOMAINS_DB, settings.NEW_APPS_DB), # register these views to both the main db AND the apps db. 'app_translations_by_popularity': (None, settings.NEW_APPS_DB), 'exports_forms_by_app': (None, settings.NEW_APPS_DB), 'forms_by_app_info': (None, settings.NEW_APPS_DB), # register just to the new apps db 'apps_with_submissions': settings.NEW_APPS_DB, 'saved_apps_auto_generated': settings.NEW_APPS_DB, 'global_app_config_by_app_id': settings.NEW_APPS_DB, })
from corehq.preindex import CouchAppsPreindexPlugin CouchAppsPreindexPlugin.register('couchapps', __file__)
from corehq.preindex import CouchAppsPreindexPlugin CouchAppsPreindexPlugin.register('couchapps', __file__, { 'form_question_schema': 'meta' })
from corehq.preindex import CouchAppsPreindexPlugin CouchAppsPreindexPlugin.register('couchapps', __file__, {'form_question_schema': 'meta'})