Comment 1 for bug 717349

Revision history for this message
simpsus (bastian-kennel) wrote : Re: [Bug 717349] [NEW] config parser crashes when changing accounts

strangely enough it crashes when trying to parse the hpaned position....
maybe I overlooked a singleton thing, but am not sure
···········································
Bastian Kennel

<email address hidden>
···········································

On Fri, Feb 11, 2011 at 8:03 PM, wolfer <email address hidden> wrote:

> Public bug reported:
>
> to reproduce:
> a) select an account... everything is ok
> b) select another account.... config crashes, account is not shown
>
>
> Traceback (most recent call last):
> File "/home/wolfer/Dropbox/code/avernus/avernus/avernus/gui/left_pane.py",
> line 157, in on_cursor_changed
> pubsub.publish('maintree.select', obj)
> File "/home/wolfer/Dropbox/code/avernus/avernus/avernus/pubsub.py", line
> 19, in publish
> subscriber(*args, **kwargs)
> File
> "/home/wolfer/Dropbox/code/avernus/avernus/avernus/gui/mainwindow.py", line
> 198, in on_maintree_select
> self.notebook.append_page(tab(item), gtk.Label(name))
> File
> "/home/wolfer/Dropbox/code/avernus/avernus/avernus/gui/account_transactions_tab.py",
> line 97, in __init__
> pre = self.config.get_option('account hpaned position', 'Gui')
> File "/home/wolfer/Dropbox/code/avernus/avernus/avernus/config.py", line
> 75, in get_option
> return self.parser.get(section, name)
> File "/usr/lib/python2.6/ConfigParser.py", line 546, in get
> return self._interpolate(section, option, value, d)
> File "/usr/lib/python2.6/ConfigParser.py", line 586, in _interpolate
> if "%(" in value:
> TypeError: argument of type 'int' is not iterable
>
> ** Affects: avernus
> Importance: Critical
> Status: Confirmed
>
> --
> You received this bug notification because you are a member of avernus-
> heros, which is subscribed to avernus.
> https://bugs.launchpad.net/bugs/717349
>
> Title:
> config parser crashes when changing accounts
>
> Status in avernus:
> Confirmed
>
> Bug description:
> to reproduce:
> a) select an account... everything is ok
> b) select another account.... config crashes, account is not shown
>
>
> Traceback (most recent call last):
> File
> "/home/wolfer/Dropbox/code/avernus/avernus/avernus/gui/left_pane.py", line
> 157, in on_cursor_changed
> pubsub.publish('maintree.select', obj)
> File "/home/wolfer/Dropbox/code/avernus/avernus/avernus/pubsub.py", line
> 19, in publish
> subscriber(*args, **kwargs)
> File
> "/home/wolfer/Dropbox/code/avernus/avernus/avernus/gui/mainwindow.py", line
> 198, in on_maintree_select
> self.notebook.append_page(tab(item), gtk.Label(name))
> File
> "/home/wolfer/Dropbox/code/avernus/avernus/avernus/gui/account_transactions_tab.py",
> line 97, in __init__
> pre = self.config.get_option('account hpaned position', 'Gui')
> File "/home/wolfer/Dropbox/code/avernus/avernus/avernus/config.py", line
> 75, in get_option
> return self.parser.get(section, name)
> File "/usr/lib/python2.6/ConfigParser.py", line 546, in get
> return self._interpolate(section, option, value, d)
> File "/usr/lib/python2.6/ConfigParser.py", line 586, in _interpolate
> if "%(" in value:
> TypeError: argument of type 'int' is not iterable
>
>
>