Comment 23 for bug 877318

Edmund Laugasson (ed-lau) wrote :

I cannot configure Nanny :( I cannot change nothing - I tried to set computer usage hours and other restrictions but cannot mark hours graphically as expected.

I use Ubuntu 12.04 LTS 64-bit with all updates to current date (10th February 2013).

Steps to reproduce:
1. sudo add-apt-repository ppa:boamaod/nanny-test
2. sudo apt-get install nanny
3. sudo nanny-admin-console
......
Reconnecting to new nanny server instance
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nanny/client/gnome/admin/AdminConsole.py", line 531, in __on_unlock_button_clicked
    self.__on_users_treeview_selection_changed(None)
  File "/usr/lib/python2.7/dist-packages/nanny/client/gnome/admin/AdminConsole.py", line 413, in __on_users_treeview_selection_changed
    self.__load_config ()
  File "/usr/lib/python2.7/dist-packages/nanny/client/gnome/admin/AdminConsole.py", line 273, in __load_config
    self.session_use_chores_indicator, self.session_max_contracted_chores = self.dbus_client.get_chore_settings (self.__selected_user_id)
  File "/usr/lib/python2.7/dist-packages/nanny/client/common/DBusClient.py", line 210, in get_chore_settings
    return self.nanny_admin.GetChoreSettings (user_id)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.7/dist-packages/nanny/daemon/NannyDBus.py", line 243, in GetChoreSettings
    return self.quarterback.get_chore_settings(str(uid))
  File "/usr/lib/python2.7/dist-packages/nanny/daemon/QuarterBack.py", line 472, in get_chore_settings
    return self.chore_settings[uid]
TypeError: list indices must be integers, not str

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nanny/client/gnome/admin/AdminConsole.py", line 413, in __on_users_treeview_selection_changed
    self.__load_config ()
  File "/usr/lib/python2.7/dist-packages/nanny/client/gnome/admin/AdminConsole.py", line 273, in __load_config
    self.session_use_chores_indicator, self.session_max_contracted_chores = self.dbus_client.get_chore_settings (self.__selected_user_id)
  File "/usr/lib/python2.7/dist-packages/nanny/client/common/DBusClient.py", line 210, in get_chore_settings
    return self.nanny_admin.GetChoreSettings (user_id)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.7/dist-packages/nanny/daemon/NannyDBus.py", line 243, in GetChoreSettings
    return self.quarterback.get_chore_settings(str(uid))
  File "/usr/lib/python2.7/dist-packages/nanny/daemon/QuarterBack.py", line 472, in get_chore_settings
    return self.chore_settings[uid]
TypeError: list indices must be integers, not str