argument of type ‘bool’ is not iterable – GData Python Client

PythonのGData clientを使っていて、CalendarEventQueryでカレンダーイベントを取得している。繰り返しイベントを展開して取得しようと考え、

http://d.hatena.ne.jp/shingotada/20070529/1180449643

を参考に

query.singleevents=True

とセットしたところ、

argument of type ‘bool’ is not iterable

というエラーが出た。なぜ?と思い調べたところ、このパラメータの型は文字列だったので、

query.singleevents=’true’

としたところ正しくクエリーが処理された。

Leave a Reply

Your email address will not be published. Required fields are marked *