Django Library Mycreole
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011
  1. from users.context import menubar as user_menubar
  2. import themes
  3. def context_adaption(context, request, title, **kwargs):
  4. context.set_additional_title(title)
  5. user_menubar(context[context.MENUBAR], request)
  6. context[context.NAVIGATIONBAR].append_entry(*themes.empty_entry_parameters(request))
  7. context[context.ACTIONBAR].append_entry(*themes.empty_entry_parameters(request))
  8. for key in kwargs:
  9. context[key] = kwargs[key]