Esempio n. 1
0
def update_squash_addon(apps, schema_editor):
    """Update events setup for weblate.git.squash addon."""
    adjust_addon_events(
        apps,
        schema_editor,
        ["weblate.git.squash"],
        [EVENT_POST_COMMIT],
        [EVENT_PRE_PUSH],
    )
def update_cleanup_addon(apps, schema_editor):
    """Update events setup for weblate.git.squash addon."""
    adjust_addon_events(
        apps,
        schema_editor,
        ["weblate.cleanup.generic"],
        [EVENT_PRE_COMMIT],
        [],
    )
Esempio n. 3
0
def update_addon(apps, schema_editor):
    """Update the repo_scope flag."""
    adjust_addon_events(
        apps,
        schema_editor,
        ("weblate.autotranslate.autotranslate", "weblate.flags.bulk"),
        [EVENT_COMPONENT_UPDATE],
        [EVENT_POST_UPDATE],
    )
Esempio n. 4
0
def update_addon(apps, schema_editor):
    """Update the repo_scope flag."""
    adjust_addon_events(
        apps,
        schema_editor,
        ("weblate.gettext.linguas", "weblate.gettext.configure"),
        [EVENT_DAILY],
        [],
    )
def update_addon(apps, schema_editor):
    """Update the repo_scope flag."""
    adjust_addon_events(
        apps,
        schema_editor,
        ["weblate.consistency.languages"],
        [EVENT_DAILY],
        [EVENT_POST_UPDATE],
    )