A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/home/stoecker/isfdb/install/cgi-bin/publisheryear.cgi in <module>() |
55 print ISFDBLinkNoName('publisher.cgi', publisher_id, 'Return to the publisher page')
|
56 print '<p>'
|
=> 57 PrintPubsTable(pubs, 'publisher')
|
58
|
59 PrintTrailer('publisheryear', publisher_id, publisher_id)
|
PrintPubsTable = <function PrintPubsTable>, pubs = [(378179, 'A Estrela-de-Batalha', 'STRLDBTLHD1979', '1979-00-00', 30343, '224', 'pb', 'NOVEL', None, 'http://www.isfdb.org/wiki/images/d/d6/STRLDBTLHD1979.jpg', None, 291043, 1411, '1', None), (378181, 'A Armadilha Mortal', 'RMDLHMRTLZ1983', '1979-00-00', 30343, '252', 'pb', 'NOVEL', None, 'http://www.isfdb.org/wiki/images/8/8a/RMDLHMRTLZ1983.jpg', None, 291046, 1411, '2', None), (928797, 'Os nossos filhos ser\xc3\xa3o mutantes', 'SNSSSFLHSS1979', '1979-00-00', 30343, '241', 'pb', 'NOVEL', None, None, None, 1081409, 1411, '3', None)] |
/home/stoecker/isfdb/install/cgi-bin/common.py in PrintPubsTable(pubs=[(378179, 'A Estrela-de-Batalha', 'STRLDBTLHD1979', '1979-00-00', 30343, '224', 'pb', 'NOVEL', None, 'http://www.isfdb.org/wiki/images/d/d6/STRLDBTLHD1979.jpg', None, 291043, 1411, '1', None), (378181, 'A Armadilha Mortal', 'RMDLHMRTLZ1983', '1979-00-00', 30343, '252', 'pb', 'NOVEL', None, 'http://www.isfdb.org/wiki/images/8/8a/RMDLHMRTLZ1983.jpg', None, 291046, 1411, '2', None), (928797, 'Os nossos filhos ser\xc3\xa3o mutantes', 'SNSSSFLHSS1979', '1979-00-00', 30343, '241', 'pb', 'NOVEL', None, None, None, 1081409, 1411, '3', None)], display_type='publisher', user=<login.User instance>, limit=100000) |
1080 index = 1
|
1081 for pub in pubs:
|
=> 1082 PrintOnePub(pub, pub_authors, pub_publishers, pub_series, cover_artists, bgcolor, display_type, user, index)
|
1083 bgcolor ^= 1
|
1084 index += 1
|
global PrintOnePub = <function PrintOnePub>, pub = (378179, 'A Estrela-de-Batalha', 'STRLDBTLHD1979', '1979-00-00', 30343, '224', 'pb', 'NOVEL', None, 'http://www.isfdb.org/wiki/images/d/d6/STRLDBTLHD1979.jpg', None, 291043, 1411, '1', None), pub_authors = {378179: [(2640, 'Glen A. Larson', 'Larson'), (1225, 'Robert Thurston', 'Thurston')], 378181: [(2640, 'Glen A. Larson', 'Larson'), (1225, 'Robert Thurston', 'Thurston')], 928797: [(74781, 'Mark Noble', 'Noble'), (6795, 'Bob Stickgold', 'Stickgold')]}, pub_publishers = {30343: 'Publica\xc3\xa7\xc3\xb5es Europa-Am\xc3\xa9rica'}, pub_series = {1411: 'Livros de Bolso, s\xc3\xa9rie Fic\xc3\xa7\xc3\xa3o Cient\xc3\xadfica'}, cover_artists = {}, bgcolor = 1, display_type = 'publisher', user = <login.User instance>, index = 1 |
/home/stoecker/isfdb/install/cgi-bin/common.py in PrintOnePub(pub=(378179, 'A Estrela-de-Batalha', 'STRLDBTLHD1979', '1979-00-00', 30343, '224', 'pb', 'NOVEL', None, 'http://www.isfdb.org/wiki/images/d/d6/STRLDBTLHD1979.jpg', None, 291043, 1411, '1', None), pub_authors={378179: [(2640, 'Glen A. Larson', 'Larson'), (1225, 'Robert Thurston', 'Thurston')], 378181: [(2640, 'Glen A. Larson', 'Larson'), (1225, 'Robert Thurston', 'Thurston')], 928797: [(74781, 'Mark Noble', 'Noble'), (6795, 'Bob Stickgold', 'Stickgold')]}, pub_publishers={30343: 'Publica\xc3\xa7\xc3\xb5es Europa-Am\xc3\xa9rica'}, pub_series={1411: 'Livros de Bolso, s\xc3\xa9rie Fic\xc3\xa7\xc3\xa3o Cient\xc3\xadfica'}, cover_artists={}, bgcolor=1, display_type='publisher', user=<login.User instance>, index=1) |
1105
|
1106 # Publication title
|
=> 1107 print '<td dir="ltr">%s</td>' % ISFDBLink('pl.cgi', pub[PUB_PUBID], pub[PUB_TITLE], argument=getStylePub(pub[PUB_PUBID]))
|
1108
|
1109 # Publication date unless this is a Publication Series, in which case we have already displayed the date
|
global ISFDBLink = <function ISFDBLink>, pub = (378179, 'A Estrela-de-Batalha', 'STRLDBTLHD1979', '1979-00-00', 30343, '224', 'pb', 'NOVEL', None, 'http://www.isfdb.org/wiki/images/d/d6/STRLDBTLHD1979.jpg', None, 291043, 1411, '1', None), global PUB_PUBID = 0, global PUB_TITLE = 1, argument undefined, global getStylePub = <function getStylePub> |
/home/stoecker/isfdb/install/cgi-bin/library.py in ISFDBLink(script='pl.cgi', record_id=378179, displayed_value='A Estrela-de-Batalha', brackets=False, argument='', transliterations=None) |
463 # use that function to retrieve transliterations
|
464 elif trans_function and str(record_id).isdigit():
|
=> 465 trans_values = trans_function(record_id)
|
466 # If transliterated values have been found, add them to the link
|
467 if trans_values:
|
trans_values = None, trans_function = <function SQLloadTransPubTitles>, record_id = 378179 |
/usr/lib64/python2.7/site-packages/MySQLdb/connections.py in query(self=<_mysql.connection open to '127.0.0.1'>, query='select trans_pub_title from trans_pubs where pub_id=378179') |
237 if isinstance(query, bytearray):
|
238 query = bytes(query)
|
=> 239 _mysql.connection.query(self, query)
|
240
|
241 def _bytes_literal(self, bs):
|
global _mysql = <module 'MySQLdb._mysql' from '/usr/lib64/python2.7/site-packages/MySQLdb/_mysql.so'>, _mysql.connection = <type '_mysql.connection'>, _mysql.connection.query = <method 'query' of '_mysql.connection' objects>, self = <_mysql.connection open to '127.0.0.1'>, query = 'select trans_pub_title from trans_pubs where pub_id=378179' |