Estimados, disculpen las molestias, tengo un problema cuando solicito el cae de una factura, al momento de enviar al servidor de afip el diccionario de iva, tributos y comprobantes asociados me da ese error "Unhashable type dict", adjunto el codigo de la clase cliente del proyecto pysoap. si necesitan mas informacion pidanme que adjunto lo que hice yo y las demas clases que estoy utilizando. muchas gracias.
cuando hace el if key not in struct, me da el error.
print "1.struct:" + str(struct)
print "2.dict:" + str(dict)
print "2.1.value:" + str(value)
if struct and value:
for key in value:
if key not in struct:
valid = False
errors.append('Argument key %s not in parameter. parameter: %s, args: %s' % (key, struct, value))
else:
print " 3.Llamada struct[key]:" + str(struct[key])
print " 4.Llamada value[key]:" + str(value[key])
next_valid, next_errors, next_warnings = self.wsdl_validate_params(struct[key], value[key])
if not next_valid:
valid = False
errors.extend(next_errors)
warnings.extend(next_warnings)
for key in struct:
if key not in value:
warnings.append('Parameter key %s not in args. parameter: %s, value: %s' % (key, struct, value))
elif struct and not value:
warnings.append('parameter keys not in args. parameter: %s, args: %s' % (struct, value))
elif not struct and value:
valid = False
errors.append('Args keys not in parameter. parameter: %s, args: %s' % (struct, value))
else: