denverfoundation / storybase

The code behind Floodlight
http://floodlightproject.org
MIT License
11 stars 7 forks source link

Badges #998

Closed wilbertom closed 9 years ago

wilbertom commented 9 years ago

Changes

There's a few things that have to be looked into from this.

  1. User.badges - Users have a badges field that represent the badges they can edit. We do this instead of Django's permissions because we need per instance permissions. Research if there is a better way to do this.
  2. The unittests for the Badges resource are failing because I can't get the user sessions to work correctly with the testing client.
  3. The way we do pop ups for adding and removing badges is really hacky. This will be refactored once I read the source code for the Story viewer router.
  4. storybase.API_ROOT is now defined in the story viewer too. Before it was only defined in the story builder. Does this break any invariants?