Make request object available to JSExtension instances
Review Request #8595 — Created Jan. 5, 2017 and submitted — Latest diff uploaded
By making the request object available, the extension subclass can e.g. get hold of the current user which can be useful.
Tested that getting a user's groups as discussed in this mail thread works.
Unit tests pass.
Diff Revision 4
This is not the most recent revision of the diff. The latest diff is revision 5. See what's changed.
orig
1
2
3
4
5
djblets/extensions/extension.py |
---|
djblets/extensions/templates/extensions/init_js_extensions.html |
---|
djblets/extensions/templatetags/djblets_extensions.py |
---|
djblets/extensions/templatetags/tests.py |
---|