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