Revert 10874 changes to _Options.py and BookReport.py

svn: r10879
This commit is contained in:
Gerald Britton 2008-07-18 16:10:27 +00:00
parent 6b2b52552d
commit 777928e9a7
2 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ class OptionParser(handler.ContentHandler):
self.o = {} self.o = {}
elif tag == "option": elif tag == "option":
self.oname = attrs['name'] self.oname = attrs['name']
if 'length' in attrs: if attrs.has_key('length'):
self.an_o = [] self.an_o = []
else: else:
self.an_o = attrs['value'] self.an_o = attrs['value']

View File

@ -524,7 +524,7 @@ class BookParser(handler.ContentHandler):
self.o = {} self.o = {}
elif tag == "option": elif tag == "option":
self.an_o_name = attrs['name'] self.an_o_name = attrs['name']
if 'length' in attrs: if attrs.has_key('length'):
self.an_o_value = [] self.an_o_value = []
else: else:
converter = Utils.get_type_converter_by_name(attrs['type']) converter = Utils.get_type_converter_by_name(attrs['type'])