-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get user ID for activity streams from revision
When creating Activity objects for activity streams, get the user_id from the revision, not from the pylons context. It's not good to access the global pylons context from the model module, e.g. because when unit tests do things through the logic module directly (instead of through API calls) then the pylons context will not be present. Also change activity_test.py, can now test for correct user IDs.
- Loading branch information
Sean Hammond
committed
Dec 12, 2011
1 parent
c41855f
commit 6cfb8b4
Showing
3 changed files
with
23 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters