Beispiel #1
0
 def _process(self):
     form = CSSSelectionForm(event=self.event,
                             formdata=request.args,
                             csrf_enabled=False)
     if not form.validate() or not form.theme.data:
         raise NotFound
     return redirect(get_css_url(self.event, force_theme=form.theme.data))
Beispiel #2
0
 def _process(self):
     form = CSSSelectionForm(event=self.event_new,
                             formdata=request.args,
                             csrf_enabled=False)
     css_url = None
     if form.validate():
         css_url = get_css_url(self.event_new,
                               force_theme=form.theme.data,
                               for_preview=True)
     return WPConferenceDisplay(self,
                                self._conf,
                                css_override_form=form,
                                css_url_override=css_url).display()
Beispiel #3
0
 def _process(self):
     form = CSSSelectionForm(event=self.event,
                             formdata=request.args,
                             csrf_enabled=False)
     css_url = None
     if form.validate():
         css_url = get_css_url(self.event,
                               force_theme=form.theme.data,
                               for_preview=True)
     return WPConfModifPreviewCSS(self,
                                  self._conf,
                                  form=form,
                                  css_url=css_url).display()
Beispiel #4
0
 def _process(self):
     form = CSSSelectionForm(event=self.event, formdata=request.args, csrf_enabled=False)
     css_url = None
     if form.validate():
         css_url = get_css_url(self.event, force_theme=form.theme.data, for_preview=True)
     return WPConferenceDisplay(self, self.event, css_override_form=form, css_url_override=css_url).display()
Beispiel #5
0
 def get_extra_css_files(self):
     theme_url = self._kwargs.get('css_url_override',
                                  get_css_url(self.event))
     return [theme_url] if theme_url else []
Beispiel #6
0
 def get_extra_css_files(self):
     theme_urls = self.theme['asset_env']['display_sass'].urls(
     ) if self.theme.get('asset_env') else []
     custom_url = get_css_url(self.event)
     return theme_urls + ([custom_url] if custom_url else [])
Beispiel #7
0
 def get_extra_css_files(self):
     custom_url = get_css_url(self.event)
     return [custom_url] if custom_url else []
Beispiel #8
0
 def get_extra_css_files(self):
     theme_url = self._kwargs.get('css_url_override', get_css_url(self.event))
     return [theme_url] if theme_url else []
Beispiel #9
0
 def get_extra_css_files(self):
     theme_urls = self.theme['asset_env']['display_sass'].urls() if self.theme.get('asset_env') else []
     custom_url = get_css_url(self.event)
     return theme_urls + ([custom_url] if custom_url else [])
Beispiel #10
0
 def get_extra_css_files(self):
     custom_url = get_css_url(self.event)
     return [custom_url] if custom_url else []
Beispiel #11
0
 def _process(self):
     form = CSSSelectionForm(event=self.event_new, formdata=request.args, csrf_enabled=False)
     css_url = None
     if form.validate():
         css_url = get_css_url(self.event_new, force_theme=form.theme.data, for_preview=True)
     return WPConfModifPreviewCSS(self, self._conf, form=form, css_url=css_url).display()