[Grok-dev] Dolmen: won't override FolderListing view

Souheil CHELFOUH trollfot at gmail.com
Wed Dec 29 04:56:56 EST 2010


you need to name it, simply
grok.name('folderlisting')

2010/12/29 Noe Nieto [http://percepcionunitaria.org]] <tzicatl at gmail.com>:
> Hi grok,
>
> While working on a dolmen app, I wanted to override the folderlisting for a
> Dolmen Site.
> from dolmen.app.site import Dolmen
> class Locaciones(Dolmen):
>     content.nofactory()
>     title= _(u"Cinezune")
>
> from dolmen.app.container import listing
> class LocacionesFolderListing(listing.FolderListing):
>     #it just doesn't take it : why?
>     grok.context(Locaciones)
>     content.require(CanListContent)
>     label = _("Listado de locaciones")
>
> When visiting http://localhost:8080/Locaciones/folderlisting I only get the
> default dolmen layout, a <h1>Content of the folder</h1> title and an empty
> <div/> element. And no matter what I put on my app's
> app_templates/locacionesfolderlisting.pt file, it does not get displayed.
> What I'm doing wrong?
>
>
> --
> ---
> Noe Nieto
>
> --------------------------------------------
> El experto que trabaja por cambios políticos, sociales y económicos SIN
> PERCEPCIÓN UNITARIA, solo crea más dolor y divisiones sobre la tierra.
> http://percepcionunitaria.org
> The expert who works for political, social and economical changes WITHOUT
> UNITARY PERCEPTION, will only create more pain and divisions on the earth.
> http://www.unitaryperception.org/cph/en
>
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev
>
>


More information about the Grok-dev mailing list