ubuntu-research team mailing list archive
-
ubuntu-research team
-
Mailing list archive
-
Message #00001
[Bug 295702] Re: Multiple files with the same name cause errors
** Changed in: coisas
Importance: Undecided => Critical
** Changed in: coisas
Status: New => Confirmed
** Changed in: coisas
Assignee: (unassigned) => Martin Owens (doctormo)
--
Multiple files with the same name cause errors
https://bugs.launchpad.net/bugs/295702
You received this bug notification because you are a member of Ubuntu
Research, which is the registrant for Coisas.
Status in User Data Services (Coisas): Confirmed
Bug description:
Files which have the same name, but different extensions will be added with the same keys in UDS. this causes a dbus error.
Adding By Signal /Data/Galleries/Graphics/Default/terrainformat
Traceback (most recent call last):
File "/home/doctormo/Projects/python/coisas/examples/gtktreeview.py", line 83, in item_selected_signal
return self.itemSelected( self._model[iter][0] )
File "./galleries.py", line 101, in itemSelected
self._display_gallery( item )
File "/home/doctormo/Projects/python/coisas/examples/gtktreeview.py", line 61, in replace
self.add(object)
File "./galleries.py", line 108, in add
for image in target.children():
File "/home/doctormo/Projects/python/coisas/examples/wrappers.py", line 65, in children
for address in self._dbus.list():
File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__
**keywords)
File "/var/lib/python-support/python2.5/dbus/connection.py", line 607, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.KeyError: Traceback (most recent call last):
File "/var/lib/python-support/python2.5/dbus/service.py", line 696, in _message_cb
retval = candidate_method(self, *args, **keywords)
File "/home/doctormo/Projects/python/coisas/Coisas/base.py", line 122, in list
self.generate_list()
File "/home/doctormo/Projects/python/coisas/Coisas/plugins/galleries/local.py", line 77, in generate_list
FileImage(id, path, parent=self)
File "/home/doctormo/Projects/python/coisas/Coisas/plugins/galleries/local.py", line 84, in __init__
super(FileImage, self).__init__(id, **args)
File "/home/doctormo/Projects/python/coisas/Coisas/base.py", line 47, in __init__
return super(BusObjectBase, self).__init__( session_bus, self.address )
File "/var/lib/python-support/python2.5/dbus/service.py", line 477, in __init__
self.add_to_connection(conn, object_path)
File "/var/lib/python-support/python2.5/dbus/service.py", line 568, in add_to_connection
self._fallback)
KeyError: "Can't register the object-path handler for '/Data/Galleries/Graphics/MetaFormat/showlove': there is already a handler"