limit display of elements filed in a folder to the IFolder

This commit is contained in:
Frédéric Péters 2013-07-16 22:42:04 +02:00
parent bf7b2bce31
commit fb702529ee
1 changed files with 2 additions and 0 deletions

View File

@ -27,8 +27,10 @@ grok.templatedir('templates')
grok.context(IDexterityContainer)
from plone.app.layout.viewlets.interfaces import IBelowContentBody
import plone.app.contenttypes.interfaces
class FolderViewlet(grok.Viewlet):
grok.context(plone.app.contenttypes.interfaces.IFolder)
grok.template('foldersviewlet')
grok.viewletmanager(IBelowContentBody)
grok.order(15)