def deploy_index():
    """
        Custom module homepage for deploy (=RIT) to display online
        documentation for the module
    """

    response = current.response

    def prep(r):
        default_url = URL(f="mission", args="summary", vars={})
        return current.s3db.cms_documentation(r, "RIT", default_url)
    response.s3.prep = prep
    output = current.rest_controller("cms", "post")

    # Custom view
    view = path.join(current.request.folder,
                     "modules",
                     "templates",
                     THEME,
                     "views",
                     "deploy",
                     "index.html",
                     )
    try:
        # Pass view as file not str to work in compiled mode
        response.view = open(view, "rb")
    except __HOLE__:
        from gluon.http import HTTP
        raise HTTP(404, "Unable to open Custom View: %s" % view)

    return output

# END =========================================================================
dataset/ETHPy150Open sahana/eden/modules/templates/RMSAmericas/controllers.py/deploy_index