EditBug:10074 Pub Editing, New Authors

EditBug:10074 Pub Editing, New Authors OPEN I selected "New Novel", then realized that I was entering a Magazine instead and changed its type to MAGAZINE. I was a little concerned that it may not create the EDITOR Title correctly, but I could see EDITOR in the SQL statements, so I assumed everything was fine. I then pulled up the newly entered magazine issue via Edit Pub to enter its contents. After going through the motions and hitting Submit, I encountered 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.

/www/isfdb.tamu.edu/root/cgi-bin/edit/submitpub.cgi 74   75         new = pubs(db) 76        new.cgi2obj 77           78         old = pubs(db) new = , new.cgi2obj = > /www/isfdb.tamu.edu/root/cgi-bin/edit/pubClass.py in cgi2obj(self=) 909                                if self.form.has_key(key): 910                                        if author == 1: 911                                                authors += self.form[key].value 912                                        else: 913                                                authors += "+"+self.form[key].value authors = '', self = , self.form = FieldStorage(None, None, [MiniFieldStorage('pub_...103641'), MiniFieldStorage('editor', 'editpub')]), key = 'review_author1.1', ].value undefined

AttributeError: 'list' object has no attribute 'value' args = ("'list' object has no attribute 'value'",) Ahasuerus 22:45, 28 Dec 2006 (CST)


 * Update: The error seems to be recreatable when using this publication. Ahasuerus 23:17, 28 Dec 2006 (CST)


 * I'm doing something wrong in following the instructions. If we start with the example above, what steps do I take to reproduce? Alvonruff 10:09, 30 Dec 2006 (CST)


 * The other day I was getting the same Python error when trying to resubmit the same Publication with Title data added. After reading your response today, I tried entering the contents of the magazine one Title at a time. The first three Titles (2 Essays and a Novelette) went through fine. Then I entered a review of C. M. Kornbluth's and Frederik Pohl's The Space Merchants by "uncredited" and received the same Python error. I then entered the same review of the book as by Pohl alone and it was successful, which seems to suggest that the problem lies not with this Publication having been originally entered as a Novel but rather with entering reviews of books written by 2+ authors. Is this enough information to hunt the critter down? Ahasuerus 12:58, 30 Dec 2006 (CST)


 * P.S. After entering the review as by Pohl alone, I was able to go back to the Pub and add Kornbluth as a co-author, so there is a workaround. Still, a Python error after entering a magazine worth of data is fairly major. Ahasuerus 13:00, 30 Dec 2006 (CST)

Okay, the problem (restated after testing) is this: If one edits an existing publication (doesn't happen for new ones), AND one adds a title to a section (content, reviews, interviews) that currently has no entries, AND the FIRST title has more than one author, then the error will occur. Alvonruff 10:57, 1 Jan 2007 (CST)