def __call__(self):
        auth = current.auth
        s3_has_role = auth.s3_has_role
        system_roles = auth.get_system_roles()
        ADMIN = system_roles.ADMIN
        ORG_ADMIN = system_roles.ORG_ADMIN

        if s3_has_role(ADMIN) | s3_has_role(ORG_ADMIN):
            response = current.response
            request = current.request
            T = current.T

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

            response.title = T("Administration Panel")

            panel_list = [A(T("Verify Users"),
                            _href = URL(c="admin", f = "user")
                            ),
                          A(T("User List (Excel)"),
                            _href = URL(c="admin", f = "user.xls")
                            ),
                          A(T("Manage Administrators"),
                            _href = URL(c="admin", f = "role", args = [1,"users"])
                            ),
                          A(T("Manage Organization Contacts"),
                            _href = URL(c="admin", f = "role", args = [6,"users"])
                            ),
                          A(T("Manage Organizations"),
                            _href = URL(c="org", f = "organisation")
                            ),
                          A(T("Approve Projects"),
                            _href = URL(c="project", f = "project", args = "review")
                            ),
                          A(T("Approve Frameworks"),
                            _href = URL(c="project", f = "framework", args = "review")
                            ),
                          A(T("Approve Organisations"),
                            _href = URL(c="org", f = "organisation", args = "review")
                            ),
                          A(T("Edit Countries and Administrative Areas"),
                            _href = URL(c="gis", f = "location")
                            ),
                          A(T("Edit Hazards"),
                            _href = URL(c="project", f = "hazard")
                            ),
                          A(T("Edit Themes"),
                            _href = URL(c="project", f = "theme")
                            ),
                         ]

            return dict(item = UL(*panel_list,
                                  _id = "admin_panel_list") )
        else:
            redirect(URL(c="default", f="index"))

# =============================================================================
dataset/ETHPy150Open sahana/eden/modules/templates/DRRPP/controllers.py/admin.__call__/original