How to use the mirage.miragefile.utils.MiragefileDataCategory function in mirage

To help you get started, we’ve selected a few mirage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shotastage / mirage-django-lts / mirage / scaffold / controllers / config / manager.py View on Github external
def make_view(req):
        if req.method == "GET":
            return render_template('config.html',
                project_name    = mfile.get_project(Category.project_name),
                app_list        = project.get_app_list(),
                proj_name       = mfile.get_project(Category.project_name),
                proj_ver        = mfile.get_project(Category.project_version),
                proj_author     = mfile.get_project(Category.project_author),
                proj_git        = mfile.get_project(Category.project_git),
                proj_license    = mfile.get_project(Category.project_license),
                proj_msg        = mfile.get_project(Category.project_description)
            )
        
        if req.method == "POST":
            return render_template('config.html',
                project_name    = project.get_project_name(),
                app_list        = project.get_app_list(),
                proj_name       = mfile.get_project(Category.project_name),
                proj_ver        = mfile.get_project(Category.project_version),
                proj_author     = mfile.get_project(Category.project_author),
github shotastage / mirage-django-lts / mirage / scaffold / controllers / config / manager.py View on Github external
def make_view(req):
        if req.method == "GET":
            return render_template('config.html',
                project_name    = mfile.get_project(Category.project_name),
                app_list        = project.get_app_list(),
                proj_name       = mfile.get_project(Category.project_name),
                proj_ver        = mfile.get_project(Category.project_version),
                proj_author     = mfile.get_project(Category.project_author),
                proj_git        = mfile.get_project(Category.project_git),
                proj_license    = mfile.get_project(Category.project_license),
                proj_msg        = mfile.get_project(Category.project_description)
            )
        
        if req.method == "POST":
            return render_template('config.html',
                project_name    = project.get_project_name(),
                app_list        = project.get_app_list(),
                proj_name       = mfile.get_project(Category.project_name),
                proj_ver        = mfile.get_project(Category.project_version),
                proj_author     = mfile.get_project(Category.project_author),
                proj_git        = mfile.get_project(Category.project_git),
                proj_license    = mfile.get_project(Category.project_license),
                proj_msg        = mfile.get_project(Category.project_description)
github shotastage / mirage-django-lts / mirage / scaffold / controllers / config / manager.py View on Github external
def make_view():
        return render_template('config_django.html',
            project_name    = project.get_project_name(),
            app_list        = project.get_app_list(),
            proj_name       = mfile.get_project(Category.project_name),
            proj_ver        = mfile.get_project(Category.project_version),
            proj_author     = mfile.get_project(Category.project_author),
            proj_git        = mfile.get_project(Category.project_git),
            proj_license    = mfile.get_project(Category.project_license),
            proj_msg        = mfile.get_project(Category.project_description),
        )
github shotastage / mirage-django-lts / mirage / scaffold / controllers / config / manager.py View on Github external
def make_view():
        return render_template('config_nodejs.html',
            project_name    = project.get_project_name(),
            app_list        = project.get_app_list(),
            proj_name       = mfile.get_project(Category.project_name),
            proj_ver        = mfile.get_project(Category.project_version),
            proj_author     = mfile.get_project(Category.project_author),
            proj_git        = mfile.get_project(Category.project_git),
            proj_license    = mfile.get_project(Category.project_license),
            proj_msg        = mfile.get_project(Category.project_description),
        )
github shotastage / mirage-django-lts / mirage / scaffold / controllers / config / manager.py View on Github external
def make_view():
        return render_template('config_nodejs.html',
            project_name    = project.get_project_name(),
            app_list        = project.get_app_list(),
            proj_name       = mfile.get_project(Category.project_name),
            proj_ver        = mfile.get_project(Category.project_version),
            proj_author     = mfile.get_project(Category.project_author),
            proj_git        = mfile.get_project(Category.project_git),
            proj_license    = mfile.get_project(Category.project_license),
            proj_msg        = mfile.get_project(Category.project_description),
        )
github shotastage / mirage-django-lts / mirage / scaffold / controllers / config / manager.py View on Github external
def make_view():
        return render_template('config_django.html',
            project_name    = project.get_project_name(),
            app_list        = project.get_app_list(),
            proj_name       = mfile.get_project(Category.project_name),
            proj_ver        = mfile.get_project(Category.project_version),
            proj_author     = mfile.get_project(Category.project_author),
            proj_git        = mfile.get_project(Category.project_git),
            proj_license    = mfile.get_project(Category.project_license),
            proj_msg        = mfile.get_project(Category.project_description),
        )
github shotastage / mirage-django-lts / mirage / miragefile / utils.py View on Github external
def get_project(item):
    
    data = load_miragefile()

    if item == MiragefileDataCategory.project_name:
        return data["project"]["name"]
    elif item == MiragefileDataCategory.project_version:
        return data["project"]["version"]
    elif item == MiragefileDataCategory.project_author:
        return data["project"]["author"]
    elif item == MiragefileDataCategory.project_git:
        return data["project"]["git"]
    elif item == MiragefileDataCategory.project_license:
        return data["project"]["license"]
    elif item == MiragefileDataCategory.project_description:
        return data["project"]["description"]
    else:
        log("The config information named " + item + " does not exist!", withError = True) 
        return load_failed()
github shotastage / mirage-django-lts / mirage / miragefile / utils.py View on Github external
def get_project(item):
    
    data = load_miragefile()

    if item == MiragefileDataCategory.project_name:
        return data["project"]["name"]
    elif item == MiragefileDataCategory.project_version:
        return data["project"]["version"]
    elif item == MiragefileDataCategory.project_author:
        return data["project"]["author"]
    elif item == MiragefileDataCategory.project_git:
        return data["project"]["git"]
    elif item == MiragefileDataCategory.project_license:
        return data["project"]["license"]
    elif item == MiragefileDataCategory.project_description:
        return data["project"]["description"]
    else:
        log("The config information named " + item + " does not exist!", withError = True) 
        return load_failed()
github shotastage / mirage-django-lts / mirage / miragefile / utils.py View on Github external
def get_project(item):
    
    data = load_miragefile()

    if item == MiragefileDataCategory.project_name:
        return data["project"]["name"]
    elif item == MiragefileDataCategory.project_version:
        return data["project"]["version"]
    elif item == MiragefileDataCategory.project_author:
        return data["project"]["author"]
    elif item == MiragefileDataCategory.project_git:
        return data["project"]["git"]
    elif item == MiragefileDataCategory.project_license:
        return data["project"]["license"]
    elif item == MiragefileDataCategory.project_description:
        return data["project"]["description"]
    else:
        log("The config information named " + item + " does not exist!", withError = True) 
        return load_failed()
github shotastage / mirage-django-lts / mirage / scaffold / controllers / config / manager.py View on Github external
def make_view():
        return render_template('config_nodejs.html',
            project_name    = project.get_project_name(),
            app_list        = project.get_app_list(),
            proj_name       = mfile.get_project(Category.project_name),
            proj_ver        = mfile.get_project(Category.project_version),
            proj_author     = mfile.get_project(Category.project_author),
            proj_git        = mfile.get_project(Category.project_git),
            proj_license    = mfile.get_project(Category.project_license),
            proj_msg        = mfile.get_project(Category.project_description),
        )