From 278febce89bf175f8f6f9fc7197b06d441b28f56 Mon Sep 17 00:00:00 2001 From: Marek Marecki Date: Mon, 20 May 2013 21:41:45 +0200 Subject: [PATCH] Last commit before merging into master: `diaspy.streams.Activity` now inherits from `Stream` and not `Generic` `diaspy.streams.Aspects` got some refactoring, new tests added, testconf file must be updated in order for new tests to run (documented in `testconf.md`), --- diaspy/streams.py | 35 +++++++++++++++-------------------- testconf.md | 8 ++++++++ tests.py | 18 ++++++++---------- 3 files changed, 31 insertions(+), 30 deletions(-) diff --git a/diaspy/streams.py b/diaspy/streams.py index 39080e3..50d7b6f 100644 --- a/diaspy/streams.py +++ b/diaspy/streams.py @@ -192,7 +192,7 @@ class Stream(Generic): return request.json()['data']['photo']['id'] -class Activity(Generic): +class Activity(Stream): """Stream representing user's activity. """ _location = 'activity.json' @@ -232,38 +232,31 @@ class Aspects(Generic): An example call would be `aspects.json?aspect_ids=23,5,42` """ _location = 'aspects.json' - _id_regexp = re.compile(r'