home: inherit from pcf home view
This commit is contained in:
parent
395dcca1fd
commit
2a8868e7ba
|
@ -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()
|
||||
|
|
Reference in New Issue