Comment 0 for bug 595407

Revision history for this message
Roman Yepishev (rye) wrote : remove_phone() got an unexpected keyword argument 'number'' - ubuntuone-preferences does /remove/phone/$token

Latest OOPS-ID with such issue: 13424-1629appserverZeaJdHbIGAAIBEeBEbBaeJIGDdAGIfEHH23675.oops.bz2

Caused by:
api/urls.py: url(r'^1.0/devices/remove/phone/(?P<number>\w+)$', 'remove_phone'),

Which goes to:
api/views.py:def remove_phone(request):
----------------------------------^ missing number parameter

Which is invoked by ubuntuone-preferences:
def remove(self, button, kind, token):
        """
        Callback for the Remove button.

        Starts an async request to remove a device.
        """
        make_rest_request(url=('%sremove/%s/%s' % (self.base_url,
                                                   kind.lower(), token)),