def unserialize(self, data): b = broker.StorageBroker(None) b.setTub(self) d = storage.unserialize(data, banana=b) assert isinstance(d, defer.Deferred) return d
def serialize(self, obj): b = broker.StorageBroker(None) b.setTub(self) d = storage.serialize(obj, banana=b) return d