Comment 15 for bug 1341954

Revision history for this message
Grant Murphy (gmurphy) wrote :

I think the documentation does not actually represent what is happening in the code.

[gm@lappy suds_test]$ virtualenv venv
New python executable in venv/bin/python
Installing setuptools, pip...done.
[gm@lappy suds_test]$ source venv/bin/activate
(venv)[gm@lappy suds_test]$ pip install suds==0.4
Downloading/unpacking suds==0.4
  Downloading suds-0.4.tar.gz (104kB): 104kB downloaded
  Running setup.py (path:/home/gm/suds_test/venv/build/suds/setup.py) egg_info for package suds

Installing collected packages: suds
  Running setup.py install for suds
    /home/gm/suds_test/venv/bin/python -O /tmp/tmpqRpfM4.py
    removing /tmp/tmpqRpfM4.py

Successfully installed suds
Cleaning up...
(venv)[gm@lappy suds_test]$ python
Python 2.7.5 (default, Jun 25 2014, 10:19:55)
[GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import suds
>>> wsdl = "http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL"
>>> c = suds.client.Client(wsdl)
>>> c.options.cache.location
'/tmp/suds'
>>> c.options.cache.__class__
<class suds.cache.ObjectCache at 0x7fe90c9aba78>

See also -
https://github.com/infirmary/suds/blob/master/suds/client.py#L109
https://github.com/infirmary/suds/blob/master/suds/cache.py#L314