- env = {}
- env['my_authorities'] = ctx_my_authorities
- env['sub_authorities'] = ctx_sub_authorities
- env['delegation_authorities'] = ctx_delegation_authorities
+# env = {}
+# env['my_authorities'] = ctx_my_authorities
+# env['sub_authorities'] = ctx_sub_authorities
+# env['delegation_authorities'] = ctx_delegation_authorities
+#
+# # XXX This is repeated in all pages
+# # more general variables expected in the template
+# # the menu items on the top
+# #env['topmenu_items'] = topmenu_items_live('Validation', page)
+# # so we can sho who is logged
+# env['username'] = request.user
+# env['pi'] = "is_pi"
+# env['theme'] = self.theme
+# env['section'] = "Requests"
+
+ context = super(ManagementRequestsView, self).get_context_data(**kwargs)
+
+
+ context['my_authorities'] = ctx_my_authorities
+ context['sub_authorities'] = ctx_sub_authorities
+ context['delegation_authorities'] = ctx_delegation_authorities