diff options
author | Leif Johansson <leifj@sunet.se> | 2011-11-08 14:10:17 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-11-08 14:10:42 +0100 |
commit | baf5f96d25c5f378169ac910f9535d29a9546e3e (patch) | |
tree | 7c16bc8a98d8a244a78577be8a625001757af89b /coip/apps/opensocial/activitystreams/managers.py | |
parent | 9ba73ae91642d07aa78789e6e0cedf6ed6250300 (diff) |
produce a basic group-oriented activity stream
Diffstat (limited to 'coip/apps/opensocial/activitystreams/managers.py')
-rw-r--r-- | coip/apps/opensocial/activitystreams/managers.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/coip/apps/opensocial/activitystreams/managers.py b/coip/apps/opensocial/activitystreams/managers.py new file mode 100644 index 0000000..aaa73f9 --- /dev/null +++ b/coip/apps/opensocial/activitystreams/managers.py @@ -0,0 +1,17 @@ +''' +Created on Nov 8, 2011 + +@author: leifj +''' +from actstream.models import ActionManager +from actstream.views import stream +from datetime import datetime + + +class NameActionManager(ActionManager): + + @stream + def name_activities(self, name, time=None): + if time is None: + time = datetime.now() + return name.actor_actions.filter(timestamp__lte = time)
\ No newline at end of file |