On 05 December 2011 18:14 Burak Arslan wrote:
> 
> Hi Frank,
> 
> I've also made a comment on github because it'd be easier to read than
> an email.
> 
> https://github.com/arskom/rpclib/issues/113#issuecomment-3018892
> 
[...]
> 
> using curl, you don't have to have suds installed.
> 

Ok, I have got a bit further.

It runs, then fails with an error. I fix the error and it fails with another
one. So far, the errors are all of the same type. There are many instances
of code that look like this -

  something = ''.join(something_else)

They all fail with TypeError: sequence item 0: expected str instance, bytes
found

I have been fixing them by replacing the line with 'something =
list(something)[0]', or whatever seems appropriate in the context, but I am
really just doing this blindly, so this seems like a good place to stop and
report back my findings.

These are the instances I have fixed so far -

protocol/soap/soap11.py, line 75 -
- xml_string = ''.join(xml_string)
+ xml_string = list(xml_string)[0]

server/wsgi.py, line 217 (it was trying to report an error - I had the
incorrect file name) -
- ctx.out_string = [''.join(ctx.out_string)]
+ ctx.out_string = list(ctx.out_string)

model/binary.py, line 65 -
- return [base64.b64decode(''.join(value))]
+ return [base64.b64decode(list(value)[0])]

Now it is failing on protocol/xml/model/binary.py, line 38 -
  element.text = ''.join(cls.to_base64(value))

This is where I have stopped for now.

Hopefully this is useful information. I will be happy to take this further
if you would like.

Frank

_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to