[Grok-dev] Custom traverse method for application not working

Achim Domma domma at procoders.net
Sat Jul 19 18:56:27 EDT 2008


Am 20.07.2008 um 00:51 schrieb Brandon Craig Rhodes:

> You have neglected to provide a "grok.View" that can turn an SvnFolder
> into HTML.  Try:
>
> class SvnFolderIndex(grok.View):
>     grok.name('index')
>     grok.context(SvnFolder)
>
> ... and create a template "app_templates/svnfolderindex.pt" to go  
> with it.

Thanks a lot! I created the view, but I missed the grok.name 
('index'). Stupid error!

Achim


More information about the Grok-dev mailing list