def request(request_id):
    session = db_session()
    request = session.query(Request).filter(Request.id == request_id).one()
    config = Config(session)

    return render_template('request.html',
                           request=request,
                           obsurl=config.get('obs-weburl',
                                             "https://build.opensuse.org/"))
示例#2
0
    def do_config(self, subcmd, opts, *args):
        """${cmd_name}: manage config file

        ${cmd_usage}
        ${cmd_option_list}
        """

        config = Config(self.session)
        if opts.set:
            config.set(args[0], args[1])
        elif opts.get:
            print config.get(args[0])
        elif opts.delete:
            config.delete(args[0])
        else:
            for entry in config.settings():
                print "%s=%s" % entry
    def do_config(self, subcmd, opts, *args):
        """${cmd_name}: manage config file

        ${cmd_usage}
        ${cmd_option_list}
        """

        config = Config(self.session)
        if opts.set:
            config.set(args[0], args[1])
        elif opts.get:
            print config.get(args[0])
        elif opts.delete:
            config.delete(args[0])
        else:
            for entry in config.settings():
                print "%s=%s"%entry
def request(request_id):
    session = db_session()
    request = session.query(Request).filter(Request.id == request_id).one()
    config = Config(session)

    return render_template('request.html', request = request, obsurl = config.get('obs-weburl', "https://build.opensuse.org/"))