コード例 #1
0
    def get(self, app_name, unique_hash):
        import cgi

        app, app_name = self._global(app_name)

        exception_group = LoggingService.get_exception_group(unique_hash)

        lh_memberships = LighthouseService.get_project_memberships(
                                    app['lighthouse_project_id']
                         )

        members = []
        for member in lh_memberships:
            members.append(
                    {
                        'name': member['membership']['user']['name'],
                        'id': member['membership']['user']['id']
                    }
            )

        self._data['exception_group'] = exception_group
        self._data['unique_hash'] = unique_hash
        self._data['htmlTitle'] = 'OnErrorLog - Create Lighthouse Ticket'
        self._data['section_title'] = '%s : %s' % (app['application'], self._data['exception_group']['message'][0:60])
        self._data['cgi'] = cgi
        self._data['members'] = members

        self.write(self.render_view('../Views/lighthouse.html', self._data))
コード例 #2
0
ファイル: DashboardHandler.py プロジェクト: vpetro/OnErrorLog
    def get(self, app_name, unique_hash):
        import cgi

        app, app_name = self._global(app_name)

        exception_group = LoggingService.get_exception_group(unique_hash)

        lh_memberships = LighthouseService.get_project_memberships(app["lighthouse_project_id"])

        members = []
        for member in lh_memberships:
            members.append({"name": member["membership"]["user"]["name"], "id": member["membership"]["user"]["id"]})

        self._data["exception_group"] = exception_group
        self._data["unique_hash"] = unique_hash
        self._data["htmlTitle"] = "OnErrorLog - Create Lighthouse Ticket"
        self._data["section_title"] = "%s : %s" % (app["application"], self._data["exception_group"]["message"][0:60])
        self._data["cgi"] = cgi
        self._data["members"] = members

        self.write(self.render_view("../Views/lighthouse.html", self._data))