It fails with this traceback:
jarek:~/projekty/jpawrk/trunk$ ./jpa.py
Traceback (most recent call last):
File
"/home/jarek/projekty/jpawrk/trunk/lib/jt_mainwindow.py",
line 328, in OnMessageEdit
self.cfg)
File
"/home/jarek/projekty/jpawrk/trunk/lib/jt_msgeditwindow.py",
line 35, in editMessage
dlg = MsgEditDlg(tmp, config)
File
"/home/jarek/projekty/jpawrk/trunk/lib/jt_msgeditwindow.py",
line 69, in __init__
self.__setProperties(config)
File
"/home/jarek/projekty/jpawrk/trunk/lib/jt_msgeditwindow.py",
line 76, in __setProperties
winSize = cfg.getWindowSize('msgedit')
File
"/home/jarek/projekty/jpawrk/trunk/lib/jt_cfg.py", line
66, in getWindowSize
return (self.cp.getint(windowName, 'width'),
File "/usr/lib/python2.3/ConfigParser.py", line 315,
in getint
return self._get(section, int, option)
File "/usr/lib/python2.3/ConfigParser.py", line 312,
in _get
return conv(self.get(section, option))
File "/usr/lib/python2.3/ConfigParser.py", line 518,
in get
return self._interpolate(section, option, value, d)
File "/usr/lib/python2.3/ConfigParser.py", line 557,
in _interpolate
if value.find("%(") != -1:
AttributeError: 'int' object has no attribute 'find'
The offending line in ConfigParser.py is line 553 which
reads:
value = rawval
In case of non-string values this will fail later,
since find() is a string method. Changing this line to:
value = str(rawval)
helps in case of numeric values (didn't check with
booleans, though).
|