Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix activity streams when no user logged in
Still get the user's ID from the revision, but fall back on 'not logged in' if there is no user object in the revision. Put this logic in lib.activity. Add user_id param to lib.activity.activity_stream_item() and model.package.Package.activity_stream_item(). Add a debug message when we skip an SQLAlchemy commit because it has no _object_cache or no revision. Add test cases for adding and updating packages and resources when not logged in.
- Loading branch information
Sean Hammond
committed
Dec 13, 2011
1 parent
6cfb8b4
commit de89c9e
Showing
3 changed files
with
130 additions
and
53 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