def decode(self, key):
        """
        Given a bucket key, compute the parameters used to compute
        that key.

        Note: Deprecated.  Use BucketKey.decode() instead.

        :param key: The bucket key.  Note that the UUID must match the
                    UUID of this limit; a ValueError will be raised if
                    this is not the case.
        """

        # Parse the bucket key
        key = BucketKey.decode(key)

        # Make sure the uuids match
        if key.uuid != self.uuid:
            raise ValueError("%s is not a bucket corresponding to this limit" %
                             key)

        return key.params
Given a bucket key, compute the parameters used to compute
        that key.

        Note: Deprecated.  Use BucketKey.decode() instead.

        :param key: The bucket key.  Note that the UUID must match the
                    UUID of this limit; a ValueError will be raised if
                    this is not the case.