old_contents: from fanstatic import Library
  from fanstatic import Resource
  from kotti.resources import Image
  import kotti.static as ks
  
  
  lib_kotti_site_gallery = Library('kotti_site_gallery', 'static')
  view_css = Resource(lib_kotti_site_gallery,
                      "kotti_site_gallery.css",
                      minified="kotti_site_gallery.min.css",
                      depends=[ks.view_css])
  
  
  def kotti_configure(settings):
  
      settings['kotti.available_types'] += ' kotti_site_gallery.resources.Site'
      settings['kotti.available_types'] += ' kotti_site_gallery.resources.SiteGallery'
      settings['pyramid.includes'] += ' kotti_site_gallery.includeme'
      settings['pyramid.includes'] += ' kotti_site_gallery.views.includeme'
      Image.type_info.addable_to.append(u'Site')
  
  
  def includeme(config):
  
      ks.view_needed.add(view_css)
  
new_contents: from __future__ import absolute_import
  
  from fanstatic import Library
  from fanstatic import Resource
  from kotti.resources import Image
  from kotti.fanstatic import view_css
  from kotti.fanstatic import view_needed
  
  
  lib_kotti_site_gallery = Library('kotti_site_gallery', 'static')
  ksg_view_css = Resource(lib_kotti_site_gallery,
                      "kotti_site_gallery.css",
                      minified="kotti_site_gallery.min.css",
                      depends=[view_css])
  
  
  def kotti_configure(settings):
  
      settings['kotti.available_types'] += ' kotti_site_gallery.resources.Site'
      settings['kotti.available_types'] += ' kotti_site_gallery.resources.SiteGallery'
      settings['pyramid.includes'] += ' kotti_site_gallery.includeme'
      settings['pyramid.includes'] += ' kotti_site_gallery.views.includeme'
      Image.type_info.addable_to.append(u'Site')
  
  
  def includeme(config):
  
      view_needed.add(ksg_view_css)
  
subject: Fix import for Kotti > 0.8x.