maiiku/EWSWrapper_py — pull request #7 by yscumc (2013-08-29 16:35:54+00:00)
Title: Fixed consistency in using None for on_behalf

The `on_behalf` argument is optional in some methods, but not others. If passed as `None` to `listFolders`, it will fail. This PR fixes this problem.

Example request:
```xml

Default

```

Example response:
```xml

a:ErrorSchemaValidation
The request failed schema validation: The 'http://schemas.microsoft.com/exchange/services/2006/types:EmailAddress' element is invalid - The value '' is invalid according to its datatype 'http://schemas.microsoft.com/exchange/services/2006/types:NonEmptyStringType' - The actual length is less than the MinLength value.

ErrorSchemaValidation
The request failed schema validation.

1
548
The 'http://schemas.microsoft.com/exchange/services/2006/types:EmailAddress' element is invalid - The value '' is invalid according to its datatype 'http://schemas.microsoft.com/exchange/services/2006/types:NonEmptyStringType' - The actual length is less than the MinLength value.

```

Example Stacktrace:
```
File "C:\Python27\lib\site-packages\EWSWrapper_py\EWSWrapper.py", line 1395, in listFolders
raise e
WebFault: Server raised fault: 'The request failed schema validation: The 'http://schemas.microsoft.com/exchange/service
s/2006/types:EmailAddress' element is invalid - The value '' is invalid according to its datatype 'http://schemas.micros
oft.com/exchange/services/2006/types:NonEmptyStringType' - The actual length is less than the MinLength value.'
```