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 = {}
elif tag == "option":
self.oname = attrs['name']
if 'length' in attrs:
if attrs.has_key('length'):
self.an_o = []
else:
self.an_o = attrs['value']

View File

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