Grok root-level views
by
Michael Haubenwallner
—
last modified
Jun 26, 2010 10:53 PM
Sometimes you just want to have something sit at http://localhost:8080/ -- and not get automatically redirected to the applications form / admin interface.
Register your module in the context of 'IRootFolder' and provide the 'defaultView' name 'index.html' on any of its view classes.
=== rootlevelviews.py ===import grok from zope.app.folder.interfaces import IRootFolder
grok.context(IRootFolder)
class Index(grok.View): grok.name('index.html')
=========================
That's one method of doing it, there might be others too.
Comment
Posted by d2m at 2008-05-25 16:47:03
Philipp, thanks for pointing that out. Example updated.


Comment