EditBug:10089 Python error adding essay with two authors
EditBug:10089 Python error adding essay with two authors OPEN There was an existing anthology that has two editors and was listed in ISFDB with no contents. I got a copy today and entered the contents into ISFDB. On hitting [Submit Data] I got the attached Python error. As I had quite a bit of contents data I switched to another window and first edited/saved the pub-metadata, no problem, and then added the introduction, and replicated the python error. I then backed up, removed the second author from the introduction, was able to submit/approve and did a second edit cycle to add the second author. After that I went back to the first window, deleted the introduction, and was able to save/approve the remainder of the contents. I did not do any further testing to see if it’s related to that the parent publication has two authors or anything similar. Marc Kupper 00:07, 18 Jan 2007 (CST)
The highlighted in pink lines are
- 76 new.cgi2obj()
- 863 authors = self.form[key].value
Publication Change Submission AttributeError Python 2.4.2: /usr/local/bin/python Wed Jan 17 23:47:51 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/submitpub.cgi 74 75 new = pubs(db) 76 new.cgi2obj() 77 78 old = pubs(db) new = <pubClass.pubs instance>, new.cgi2obj = <bound method pubs.cgi2obj of <pubClass.pubs instance>> /www/isfdb.tamu.edu/root/cgi-bin/edit/pubClass.py in cgi2obj(self=<pubClass.pubs instance>) 861 if self.form.has_key(key): 862 if authors == '': 863 authors = self.form[key].value 864 else: 865 authors += "+"+self.form[key].value authors = '', self = <pubClass.pubs instance>, self.form = FieldStorage(None, None, [MiniFieldStorage('pub_...'63151'), MiniFieldStorage('editor', 'editpub')]), key = 'title_author1.1', ].value undefined AttributeError: 'list' object has no attribute 'value' args = ("'list' object has no attribute 'value'",)