--> -->
<type 'exceptions.ValueError'> | Python 2.6.6: /usr/bin/python Sun May 26 05:58:04 2013 |
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
| /data/vhost/www.undemocracy.com/docs/trunk.py in () |
194 if __name__ == "__main__":
|
195 pathpart = os.getenv("PATH_INFO")
|
196 maintrunk(pathpart)
|
197
|
198
|
| maintrunk = <function maintrunk>, pathpart = '/generalassembly_49/meeting_13' |
| /data/vhost/www.undemocracy.com/docs/trunk.py in maintrunk(pathpart='/generalassembly_49/meeting_13') |
131 elif pagefunc == "gameeting":
|
132 LogIncomingDB(hmap["docid"], hmap["gadice"] or "0", referrer, ipaddress, useragent, remadeurl)
|
133 WriteHTML(hmap["htmlfile"], hmap["pdfinfo"], hmap["gadice"], hmap["highlightdoclink"])
|
134 elif pagefunc == "agendanumexpanded":
|
135 LogIncomingDB(pagefunc, hmap["agendanum"], referrer, ipaddress, useragent, remadeurl)
|
| global WriteHTML = <function WriteHTML>, hmap = {'docid': 'A-49-PV.13', 'gadice': '', 'gameeting': 13, 'gasession': 49, 'highlightdoclink': None, 'htmlfile': '/home/undemocracy/undata/html/A-49-PV.13.html', 'pagefunc': 'gameeting', 'pdfinfo': <pdfinfo.PdfInfo instance>} |
| /home/undemocracy/unparse-live/web2/unpvmeeting.py in WriteHTML(fhtml='/home/undemocracy/undata/html/A-49-PV.13.html', pdfinfo=<pdfinfo.PdfInfo instance>, gadice='', highlightth=None) |
275 agnums = gadice and pdfinfo.GetAgnum(gadice) or ""
|
276
|
277 resurl, reswref = GenWDocLink(pdfinfo, None, None)
|
278 print '<div id="upperdoclinks">'
|
279 print '</div>'
|
| resurl undefined, reswref undefined, global GenWDocLink = <function GenWDocLink>, pdfinfo = <pdfinfo.PdfInfo instance>, builtin None = None |
| /home/undemocracy/unparse-live/web2/basicbits.py in GenWDocLink(pdfinfo=<pdfinfo.PdfInfo instance>, npage=None, highlightrects=None) |
599 wklk.append(" |docid=%s" % pdfinfo.pdfc)
|
600 if pdfinfo.sdate:
|
601 wklk.append(" |date=[[%d %s]] [[%s]]" % (int(pdfinfo.sdate[8:10]), monthnames[int(pdfinfo.sdate[5:7]) - 1], pdfinfo.sdate[:4]))
|
602 wklk.append(' |type=%s' % pdfinfo.dtype)
|
603 if pdfinfo.bSC:
|
| wklk = ['<ref name="', 'UN_A49PV13', '_unkn', '">', '{{UN document', ' |docid=A-49-PV.13'], wklk.append = <built-in method append of list object>, builtin int = <type 'int'>, pdfinfo = <pdfinfo.PdfInfo instance>, pdfinfo.sdate = 'unknown', global monthnames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] |
<type 'exceptions.ValueError'>: invalid literal for int() with base 10: ''
args =
("invalid literal for int() with base 10: ''",)
message =
"invalid literal for int() with base 10: ''"