Difference between revisions of "EditBug:10086 Crash on clonepub"

From ISFDB
Jump to navigation Jump to search
(Python error and notes)
 
m (Format)
 
Line 11: Line 11:
 
   110  
 
   110  
 
   111        update_string += "  </NewPub>\n"
 
   111        update_string += "  </NewPub>\n"
update_string = '<?xml version="1.0" encoding="iso-8859-1" ?>\n<Is...Author>Ursula K. Le Guin</Author>\n </Authors>\n', db = <_mysql.connection open to 'localhost' at 837480c>, db.escape_string = <built-in method escape_string of Connection object>, new = <pubClass.pubs instance>, new.xmlCloneContent = <bound method pubs.xmlCloneContent of <pubClass.pubs instance>>
+
update_string = '<?xml version="1.0" encoding="iso-8859-1" ?>\n<Is...Author>Ursula K. Le Guin</Author>\n </Authors>\n', db = <_mysql.connection open to 'localhost' at 837480c>, db.escape_string = <built-in method escape_string of Connection object>, new = <pubClass.pubs instance>, new.xmlCloneContent = <bound method pubs.xmlCloneContent of <pubClass.pubs instance>>
 
  /www/isfdb.tamu.edu/root/cgi-bin/edit/pubClass.py in xmlCloneContent(self=<pubClass.pubs instance>)
 
  /www/isfdb.tamu.edu/root/cgi-bin/edit/pubClass.py in xmlCloneContent(self=<pubClass.pubs instance>)
 
   523                tmp = self.reviews
 
   523                tmp = self.reviews
Line 18: Line 18:
 
   526                        tmp = tmp.next
 
   526                        tmp = tmp.next
 
   527                tmp = self.interviews
 
   527                tmp = self.interviews
retval = '<Content>\n<ContentTitle>\n <Record>123412</Recor...Y</cType>\n <cLength>-</cLength>\n</ContentTitle>\n', tmp = <pubClass.reviewEntry instance>, tmp.xmlCloneTitle undefined
+
retval = '<Content>\n<ContentTitle>\n <Record>123412</Recor...Y</cType>\n <cLength>-</cLength>\n</ContentTitle>\n', tmp = <pubClass.reviewEntry instance>, tmp.xmlCloneTitle undefined
 
+
AttributeError: reviewEntry instance has no attribute 'xmlCloneTitle'
+
AttributeError: reviewEntry instance has no attribute 'xmlCloneTitle'
 
       args = ("reviewEntry instance has no attribute 'xmlCloneTitle'",)
 
       args = ("reviewEntry instance has no attribute 'xmlCloneTitle'",)
  
 
I was trying to clone [http://www.isfdb.org/cgi-bin/pl.cgi?DNCGEW1990 this pub] to be the Grove first edition (from Locus1). [[User:Mike Christie|Mike Christie]] [[User_talk:Mike Christie|(talk)]] 06:16, 13 Jan 2007 (CST)
 
I was trying to clone [http://www.isfdb.org/cgi-bin/pl.cgi?DNCGEW1990 this pub] to be the Grove first edition (from Locus1). [[User:Mike Christie|Mike Christie]] [[User_talk:Mike Christie|(talk)]] 06:16, 13 Jan 2007 (CST)

Latest revision as of 08:17, 13 January 2007

I got this error:

AttributeError Python 2.4.2: /usr/local/bin/python Sat Jan 13 06:13:53 2007

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

/www/isfdb.tamu.edu/root/cgi-bin/edit/submitclone.cgi
 107 
 108 
 109         update_string += db.escape_string(new.xmlCloneContent())
 110 
 111         update_string += "  </NewPub>\n"
update_string = '<?xml version="1.0" encoding="iso-8859-1" ?>\n<Is...Author>Ursula K. Le Guin</Author>\n </Authors>\n', db = <_mysql.connection open to 'localhost' at 837480c>, db.escape_string = <built-in method escape_string of Connection object>, new = <pubClass.pubs instance>, new.xmlCloneContent = <bound method pubs.xmlCloneContent of <pubClass.pubs instance>>
/www/isfdb.tamu.edu/root/cgi-bin/edit/pubClass.py in xmlCloneContent(self=<pubClass.pubs instance>)
 523                 tmp = self.reviews
 524                 while tmp != :
 525                         retval += tmp.xmlCloneTitle()
 526                         tmp = tmp.next
 527                 tmp = self.interviews
retval = '<Content>\n<ContentTitle>\n <Record>123412</Recor...Y</cType>\n <cLength>-</cLength>\n</ContentTitle>\n', tmp = <pubClass.reviewEntry instance>, tmp.xmlCloneTitle undefined

AttributeError: reviewEntry instance has no attribute 'xmlCloneTitle'
     args = ("reviewEntry instance has no attribute 'xmlCloneTitle'",)

I was trying to clone this pub to be the Grove first edition (from Locus1). Mike Christie (talk) 06:16, 13 Jan 2007 (CST)