def copy_from(self, other_state):
    for prop in self.properties().values():
      setattr(self, prop.name, getattr(other_state, prop.name))
Copy data from another shard state entity to self.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/mapreduce/model.py/ShardState.copy_from