If a YYYY (rather than YYYY-MM-DD) date is entered in the New Pub field for an interview, an attempt to approve the submission errors out with the following Python error:
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\cgi-bin\mod\pa_new.cgi in ()
555 print "<hr>"
556
557 Record = DoSubmission(db, submission)
558
559 print "<hr>"
Record undefined, DoSubmission = <function DoSubmission at 0x02E966F0>, db = <_mysql.connection open to 'localhost' at 2a9ad28>, submission = 2050585
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\cgi-bin\mod\pa_new.cgi in DoSubmission(db=<_mysql.connection open to 'localhost' at 2a9ad28>, submission=2050585)
527 date = GetChildValue(child, 'cDate')
528 page = GetChildValue(child, 'cPage')
529 integrateInterview(title, interviewees, interviewers, date, page, Record, lang_id)
530
531 submitter = GetElementValue(merge, 'Submitter')
global integrateInterview = <function integrateInterview at 0x02E966B0>, title = 'tytytty', interviewees = 'ttytytytytyt', interviewers = 'dgdgdgdgd', date = '0000', page = '', Record = 406409L, lang_id = 17L
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\cgi-bin\mod\pa_new.cgi in integrateInterview(title='tytytty', interviewees='ttytytytytyt', interviewers='dgdgdgdgd', date='0000', page='', pub_id=406409L, lang_id=17L)
291 print "<li> ", query
292 if debug == 0:
293 db.query(query)
294 TitleRecord = db.insert_id()
295 # Copy the language ID from the main Title record to this Interview record
global db = <_mysql.connection open to 'localhost' at 2a9ad28>, db.query = <built-in method query of Connection object at 0x02A9AD28>, query = "insert into titles(title_title, title_copyright,...le_ttype) values('tytytty', '0000', 'INTERVIEW');"
<class '_mysql_exceptions.OperationalError'>: (1292, "Incorrect date value: '0000' for column 'title_copyright' at row 1")
args = (1292, "Incorrect date value: '0000' for column 'title_copyright' at row 1")
message = ''
Anonymous
Added "and review" to the title.
Fixed in common\pubClass.py 1.17, installed in r2013-01 on 2013-01-03.