openmicroscopy/webmobile — pull request #2 by will-moore (2012-10-03 08:13:53+00:00)
Title: Perms fixes 9663

This PR restores / reworks the group and user-switching functionality, to bring it in to line with the 4.4.4 webclient. It uses the webclient decorator, so that each view has omero.group: "-1" context by default.

NB: I have subclassed the webclient's @render_response() decorator to make the active user and active group available to the django templates. This could be pushed up to the webclient decorator itself, since it is generally useful for any template to have access to these.

To test (need to install webmobile as described https://github.com/openmicroscopy/webmobile/ ).

- webclient main pages should now have a 'Mobile' link in the header.
- webMoblie pages should have the active group and user at the top (same as webclient)
- Click on group to switch group & user to switch user.
- Ensure that Projects are filtered correctly for current group & user.