from bqueue import B_Queue
from config import config, init_conf
from mailer import Message
-#import messagebus
def check_double_id(id):
id_nl = id + "\n"
status.push("request from %s" % user.login)
r = request.parse_request(body)
if r.kind == 'group':
-# messagebus.notify(topic="request.group", user=user.login, **r.dump_json())
handle_group(r, user)
elif r.kind == 'notification':
-# messagebus.notify(topic="request.notify", user=user.login, **r.dump_json())
handle_notification(r, user)
else:
msg = "%s: don't know how to handle requests of this kind '%s'" \
import status
import build
import report
-#import messagebus
from lock import lock
from bqueue import B_Queue
return "FAIL"
status.push("building %s" % b.spec)
-# messagebus.notify(topic="build_srpm.start", spec=b.spec, flags=r.flags, batch=b, request=r)
b.src_rpm = ""
builder_opts = "-nu -nm --nodeps --http --define \'_tld_builder 1\'"
if res:
res = "FAIL"
-# messagebus.notify(topic="build_srpm.finish", spec=b.spec)
return res
def handle_request(r):