linkedin / linkedin/pyexchange

TypeError: 'Exchange2010CalendarEventList' object is not iterable

Open
#54 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
154
Forks
91
PR merge metrics
No merged PRs in 30d

Description

I can retrieve all my events from calendar (like this [1]) but objet is not iterable :

``` python
events = cal.list_events(start, end, details=True)
print("Events: %s" % events)
for event in events:
print "{start} {stop} - {subject}".format(
start=event.start,
stop=event.end,
subject=event.subject
)
```

I've got this error :

``` python
TypeError: 'Exchange2010CalendarEventList' object is not iterable
```

I'm using v0.6

[1] : https://pyexchange.readthedocs.org/en/latest/#listing-events

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the listing-events example in the linked documentation and the cal.list_events(start, end, details=True) call shown here. Reproduce the TypeError with Python and inspect the returned Exchange2010CalendarEventList object. Done means calendar event results can be traversed as the issue's loop expects, with a regression test covering the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.