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))
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()
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()
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()
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 []
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 [])
def get_extra_css_files(self): custom_url = get_css_url(self.event) return [custom_url] if custom_url else []
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 [])
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()