# Path: common/pywikibot_utils.py
# def site_matrix():
# def proofread_info(lang):
# def get_all_lang(family):
# def safe_put(page, text, comment):


import os
import sys
from common import pywikibot_utils
        for level in levels:
            cat = level['category'].replace(u' ', u'_')
            if level['id'] == 0:
                format_dict['Without_text'] = cat
            elif level['id'] == 1:
                format_dict['Not_proofread'] = cat
            elif level['id'] == 2:
                format_dict['Problematic'] = cat
            elif level['id'] == 3:
                format_dict['Proofread'] = cat
            elif level['id'] == 4:
                format_dict['Validated'] = cat

        text += u"""\
    '%(code)s': (
        %(page_ns)d,
        "%(Proofread)s",
        "%(Validated)s",
        "%(Without_text)s",
        "%(Problematic)s",
        ),
""" % format_dict


    text += u"}\n"

    return text


if __name__ == "__main__":

# Path: common/pywikibot_utils.py
# def site_matrix():
# def proofread_info(lang):
# def get_all_lang(family):
# def safe_put(page, text, comment):


# Path: utils/gen_ws_cat.py
import os
import sys
from common import pywikibot_utils

        for level in levels:
            cat = level['category'].replace(u' ', u'_')
            if level['id'] == 0:
                format_dict['Without_text'] = cat
            elif level['id'] == 1:
                format_dict['Not_proofread'] = cat
            elif level['id'] == 2:
                format_dict['Problematic'] = cat
            elif level['id'] == 3:
                format_dict['Proofread'] = cat
            elif level['id'] == 4:
                format_dict['Validated'] = cat

        text += u"""\
    '%(code)s': (
        %(page_ns)d,
        "%(Proofread)s",
        "%(Validated)s",
        "%(Without_text)s",
        "%(Problematic)s",
        ),
""" % format_dict


    text += u"}\n"

    return text


if __name__ == "__main__":

    langs = pywikibot_utils.get_all_lang('wikisource')