Revert 10874 changes to _Options.py and BookReport.py
svn: r10879
This commit is contained in:
parent
6b2b52552d
commit
777928e9a7
@ -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']
|
||||||
|
@ -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'])
|
||||||
|
Loading…
Reference in New Issue
Block a user