Skip to content
Snippets Groups Projects
Commit f484c407 authored by Branson Stephens's avatar Branson Stephens
Browse files

Merge branch 'master' of ligo-vcs.phys.uwm.edu:/usr/local/git/gracedb

parents 95ceeb09 4c9418ec
No related branches found
No related tags found
No related merge requests found
......@@ -30,9 +30,9 @@ def prepareSummary(event):
return "GPS Time: %s" % event.gpstime
def issueAlertForUpdate(event, description, doxmpp):
def issueAlertForUpdate(event, description, doxmpp, filename=""):
if doxmpp:
issueXMPPAlert(event, "", "", "update", description)
issueXMPPAlert(event, filename, "", "update", description)
# XXX No emails for this. Argh.
def issueAlertForLabel(event, label, doxmpp):
......
......@@ -803,7 +803,7 @@ class Files(APIView):
try:
description = "UPLOAD: {0}".format(filename)
issueAlertForUpdate(event, description, doxmpp=True)
issueAlertForUpdate(event, description, doxmpp=True, filename=filename)
except:
# XXX something should be done here.
pass
......
......@@ -62,6 +62,7 @@ gpsQ = gpsQ.setParseAction(maybeRange("gpstime"))
# run ids
runmap = {
"ER3" : (1044136816, 1100000000), # Feb 5 16:00:00 CST 2013 - ??
#"ER2" : (1026061216, 1028480416),
#"ER2" : (1026069984, 1028480416), # soft start
"ER2" : (1026666016, 1028480416), # Jul 18 17:00:00 GMT 2012 - Aug 8 17:00:00 GMT 2012
......
......@@ -304,7 +304,7 @@ def _createLog(request, graceid, comment, uploadedFile=None):
description = "LOG: "
if uploadedFile:
description = "UPLOAD: '%s' " % uploadedFile.name
issueAlertForUpdate(event, description+comment, doxmpp=True)
issueAlertForUpdate(event, description+comment, doxmpp=True, filename=uploadedFile.name)
# XXX should be json
rval = str(rdict)
......
......@@ -166,6 +166,11 @@ AUTHENTICATION_BACKENDS = (
SHIB_AUTHENTICATION_SESSION_INITIATOR = 'https://moe.phys.uwm.edu/Shibboleth.sso/Login'
# If these are left at default, when the Shibboleth middleware
# creates a new auth_user, they will get admin privs.
ADMIN_GROUP_HEADER = None
ADMIN_GROUP = None
MIDDLEWARE_CLASSES = [
'middleware.accept.AcceptMiddleware',
'middleware.cli.CliExceptionMiddleware',
......
......@@ -66,5 +66,5 @@ def isoToGps(t):
fracSec = float('0.' + sec_substr)
else:
fracSec = 0
posixTime = mktime(ISOTime.utctimetuple()) + fracSec
posixTime = calendar.timegm(ISOTime.utctimetuple()) + fracSec
return int(round(posixToGpsTime(posixTime)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment