示例#1
0
 def process_request(self, request):
     """
     fetch Site Theme for the current site and add it to the request object.
     """
     default_theme = None
     if settings.DEFAULT_SITE_THEME:
         default_theme = SiteTheme(
             site=request.site, theme_dir_name=settings.DEFAULT_SITE_THEME)
     request.site_theme = SiteTheme.get_theme(request.site,
                                              default=default_theme)
示例#2
0
 def process_request(self, request):
     """
     fetch Site Theme for the current site and add it to the request object.
     """
     default_theme = None
     if settings.DEFAULT_SITE_THEME:
         default_theme = SiteTheme(site=request.site, theme_dir_name=settings.DEFAULT_SITE_THEME)
     request.site_theme = SiteTheme.get_theme(request.site, default=default_theme)
示例#3
0
 def process_request(self, request):
     """
     fetch Site Theme for the current site and add it to the request object.
     """
     request.site_theme = SiteTheme.get_theme(request.site)
示例#4
0
 def process_request(self, request):
     """
     fetch Site Theme for the current site and add it to the request object.
     """
     request.site_theme = SiteTheme.get_theme(request.site)