def GetPrimitive(self, attr):
    entry = self._data.get(attr)
    # We dont have this field, try the defaults.
    if entry is None:
      return ""

    python_format, wire_format, type_descriptor = entry
    if wire_format is None:
      wire_format = type_descriptor.ConvertToWireFormat(python_format)

    return type_descriptor.primitive_desc.ConvertFromWireFormat(
        wire_format)
Generates a one-use only link for resetting password and sends to the
dataset/ETHPy150Open google/grr/grr/lib/rdfvalues/structs.py/RDFStruct.GetPrimitive--crossover with--dataset/ETHPy150Open mozilla/addons-server/src/olympia/users/forms.py/PasswordResetForm.base_save