This is an automated notification sent by LCG Savannah.
It relates to:
task #9203, project CDS Invenio
==============================================================================
OVERVIEW of task #9203:
==============================================================================
URL:
<http://savannah.cern.ch/task/?9203>
Summary: Mail submitter about approval/reject action
Project: CDS Invenio
Submitted by: skaplun
Submitted on: 2009-03-05 16:37
Should Start On: 2009-03-05 00:00
Should be Finished on: 2009-03-05 00:00
Category: WebSubmit
Priority: 2
Status: None
Privacy: Public
Percent Complete: 0%
Assigned to: skaplun
Open/Closed: Open
Discussion Lock: Any
Effort: 0.00
_______________________________________________________
I just realised that in my tests, submitters don't get a confirmation
of the approval/rejection of their documents. Only the referee does.
(Up to now, the submitter and referee was the same person,
administrator, so everything SEEMED OK).
After looking at the Send_APP_Mail.py websubmit function I saw that
the record owner is taken from 8560_f (or 859__f for CERN) and my
records dodn't have the email there! (FYI, I'm using 'local' 990
fields that look like $aSubmitted by [email protected] on DD/MM/YYYY
$tTIMESTAMP)
What I'm suggesting is that IF the list of emails found in
8560_f/859__f, is EMPTY, one should also look for 'SuE' file and get
the email from there, as a last resort to get the message sent (it's
pretty much standard that this file should exist, since only logged in
users can submit files).
Here is the code (it worked for me):
[...]
else:
record_owners_list = []
record_owners = ",".join([owner for owner in record_owners_list])
> if record_owners == "":
> try:
> fp_sue = open("%s/SuE" % curdir, "r")
> record_owners = fp_sue.readline().lower()
> fp_sue.close()
> except IOError:
> record_owners = ""
if record_owners != "":
addresses += ",%s" % record_owners
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
2195 | -SUB-
[email protected] |
==============================================================================
This item URL is:
<http://savannah.cern.ch/task/?9203>
_______________________________________________
Message sent via/by LCG Savannah
http://savannah.cern.ch/