GithubHelp home page GithubHelp logo

Comments (7)

mcordes avatar mcordes commented on August 17, 2024

Scratch that. I'm pretty sure the issue is that I'm storing both python2 and python3 data in the same cache.

Please ignore.

from python-zeep.

mvantellingen avatar mvantellingen commented on August 17, 2024

Yeah it is actually an issue I've run into myself a couple of times. Need to mark the cache entries with the python and zeep version.

I'll re-open this as a reminder

from python-zeep.

mcordes avatar mcordes commented on August 17, 2024

That works too. Thanks!

from python-zeep.

nicoe avatar nicoe commented on August 17, 2024

I must say that I don't understand the need to mark cache entries with the python version. IIUC zeep is caching the content of the wsdl thus for me this data is unrelated to a python version.

That being said, I have taken a look and notice that if the database is created from python2 then unicode are retrieved afterwards in python2 and str in python3.

If the database is created from python3 then bytes are retrived by python3 and buffer in case of python2.

In both case the _decode_data() call will fail. I think that what should be stored should be consistent and thus since it is base64 data I would always use bytes (encoding to ascii and wrapping it in a buffer when in python2 should do the trick I think).

What do you think about this?

from python-zeep.

mvantellingen avatar mvantellingen commented on August 17, 2024

Hi @nicoe, that sounds like the better solution indeed. Do you want to create a PR for this?

from python-zeep.

nicoe avatar nicoe commented on August 17, 2024
  • Michael van Tellingen [2016-06-02 21:01 +0200]:

    Hi @nicoe, that sounds like the better solution indeed. Do you want to create a PR for this?

Yep, I'll try to work on it this weekend.

from python-zeep.

mvantellingen avatar mvantellingen commented on August 17, 2024

merged 👍

from python-zeep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.