def toProtocolElement(self): dataset = protocol.Dataset() dataset.id = self.getId() dataset.name = pb.string(self.getLocalId()) dataset.description = pb.string(self.getDescription()) for key in self.getInfo(): dataset.info[key].values.extend(_encodeValue(self._info[key])) return dataset
def toProtocolElement(self): dataset = protocol.Dataset() dataset.id = self.getId() dataset.name = pb.string(self.getLocalId()) dataset.description = pb.string(self.getDescription()) return dataset
def toProtocolElement(self): dataset = protocol.Dataset() dataset.id = self.getId() return dataset