コード例 #1
0
    def querytool_public_reports(self):
        '''
        Lists all available groups
        :return: base template
        '''
        context = _get_context()
        groups = helpers.get_groups()

        querytools = _get_action('querytool_list_other', {'groups': groups})

        return render('querytool/public/reports.html',
                      extra_vars={'data': querytools})
コード例 #2
0
    def list_other(self):
        '''

        :return: list querytools that don't belong to
         any of the existing groups
        '''
        context = _get_context()
        groups = helpers.get_groups()

        try:
            check_access('querytool_list', context)
            querytools = _get_action('querytool_list_other',
                                     {'groups': groups})
        except NotAuthorized:
            abort(403, _('Not authorized to see this page'))

        return render('querytool/admin/base_list.html',
                      extra_vars={'data': querytools})
コード例 #3
0
    def read_all_reports(self):
        groups = helpers.get_groups()
        reports = helpers._get_action('querytool_list_other', {'groups': groups})

        return self._render_template('group/report_index.html', {'reports': reports})