105
103
if rsp.stat == 'fail':
106
error_string = _("API call failed")+ " - %s (%s)"
107
raise RTMAPIError, error_string % (
104
raise RTMAPIError, 'API call failed - %s (%s)' % (
108
105
rsp.err.msg, rsp.err.code)
199
196
value = [dottedDict('%s_%d' % (key, i), item)
200
197
for i, item in indexed(value)]
201
198
setattr(self, key, value)
200
raise ValueError, 'not a dict: %s' % dictionary
203
202
def __repr__(self):
204
203
children = [c for c in dir(self) if not c.startswith('_')]
256
[('timeline', 'name',), ('filter')],
255
[('timeline', 'name',), ('filter',)],
258
[('timeline', 'list_id'),()],
257
[('timeline', 'list_id'), ()],
260
[('timeline', 'list_id'),()],
259
[('timeline', 'list_id'), ()],
263
262
'setDefaultList':
264
263
[('timeline'), ('list_id')],
266
[('timeline', 'list_id', 'name')],
265
[('timeline', 'list_id', 'name'), ()],
268
[('timeline'), ('list_id')]
267
[('timeline',), ('list_id',)]