[Fedora-suds-list] Microsoft Exchange EWS module

Jared Eckersley jeckersley at gemini.edu
Thu Jul 22 00:01:34 UTC 2010


Hi Erik,

Thank you so much for the great example code!

This is what I get when I run it:

Traceback (most recent call last):
  File "demo.py", line 11, in <module>
    exchange = Exchange(domain=domain, username=user, password=pw,
datadir=datadir)
  File "/Users/jeckersley/Sites/geminiDigest/Exchange.py", line 76, in
__init__
    self.client = Client(url=localwsdl, transport=auth, cachingpolicy=1)
  File "build/bdist.macosx-10.6-universal/egg/suds/client.py", line 109, in
__init__
  File "build/bdist.macosx-10.6-universal/egg/suds/client.py", line 127, in
set_options
  File "build/bdist.macosx-10.6-universal/egg/suds/properties.py", line 259,
in update
  File "build/bdist.macosx-10.6-universal/egg/suds/properties.py", line 284,
in set
  File "build/bdist.macosx-10.6-universal/egg/suds/properties.py", line 423,
in __set
  File "build/bdist.macosx-10.6-universal/egg/suds/properties.py", line 245,
in definition
AttributeError: cachingpolicy

- Jared


On 7/21/10 1:41 AM, "Erik Cederstrand" <erik at cederstrand.dk> wrote:

> 
> Den 21/07/2010 kl. 13.28 skrev Erik Cederstrand:
> 
>> Hi all,
>> 
>> It seems some people are using, or trying to use, Suds to connect to Exchange
>> servers using EWS. As it's a bit convoluted, I'd like to share the working
>> code I have (attached), in the hopes of creating at least a minimal Python
>> EWS module in a joined effort. I have tested using Suds 0.4.
>> 
>> Currently, I have implemented functions to set up an Exchange object,
>> autodetect the server version and authentication type, download and patch the
>> Services.wsdl and xsd files. I also have functions to find, create and delete
>> calendar items, as that's what I need myself.
>> 
>> If anyone's interested in improving the code or if you get any error
>> messages, please contact me. demo.py shows how to use the module.
> 
> Sorry, last minute edit gone wrong. Here's an Exchange.py that will even
> compile.
> 
> Erik
> 
> 
> _______________________________________________
> suds mailing list
> suds at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/suds



More information about the suds mailing list