Beispiel #1
0
 def _create_home(self):
     if self.event.has_stylesheet:
         css, used_urls, used_images = rewrite_css_urls(self.event, self.event.stylesheet)
         g.used_url_for_assets |= used_urls
         self._zip_file.writestr(os.path.join(self._content_dir, 'custom.css'), css)
         for image_file in used_images:
             with image_file.open() as f:
                 self._zip_file.writestr(os.path.join(self._content_dir,
                                                      f'images/{image_file.id}-{image_file.filename}'),
                                         f.read())
     if self.event.has_logo:
         self._zip_file.writestr(os.path.join(self._content_dir, 'logo.png'), self.event.logo)
     return WPStaticConferenceDisplay(self._rh, self.event).display()
 def _create_home(self):
     p = WPStaticConferenceDisplay(self._rh, self.event)
     self._html = p.display()
Beispiel #3
0
 def _create_home(self):
     p = WPStaticConferenceDisplay(self._rh, self.event)
     self._html = p.display()