home: inherit from pcf home view

This commit is contained in:
Frédéric Péters 2015-12-22 10:07:30 +01:00
parent 395dcca1fd
commit 2a8868e7ba
1 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@ try:
except ImportError:
setCacheHeaders = None
from tabellio.webviews.misc import PcfHomeFolder, IPcfHomeFolder
class Cached:
def cache(self, duration=30):
@ -14,10 +15,10 @@ class Cached:
setCacheHeaders(self, self.request, self.request.response,
maxage=duration, smaxage=duration)
class IPfbHomeFolder(Interface):
class IPfbHomeFolder(IPcfHomeFolder):
pass
class PfbHomeFolder(BrowserView, Cached):
class PfbHomeFolder(PcfHomeFolder):
def slides_js(self):
portal = getToolByName(self.context, 'portal_url').getPortalObject()
images = getattr(portal, 'images-accueil').objectIds()