[Grok-dev] The Mammoth-Herd Example

Sebastian Ware sebastian at urbantalk.se
Thu Sep 6 03:26:48 EDT 2007


You need a page template with the same name as the class. You can  
find the page template bellow the code on the same page:

"The HTML of the default view for herds is rendered by the  
herdindex.pt template. By putting it in the herd_templates directory,  
it will be picked up automatically and associated with the view class  
in herd.py according to the name of the template file and the name of  
the view class:"


Mvh Sebastian

p.s. As you progress, it will be well worth your while to check out  
posts during the past six months. Many questions have been asked, and  
more importantly, many great answers have been posted. :)

Best of luck!!!

6 sep 2007 kl. 09.08 skrev Claudia Liersch:

> Hi!
> I just started to work with Zope3 an Grok. I found Philipp's  
> Mammuth Example on http://www.z3lab.org/sections/blogs/philipp- 
> weitershausen/2007_01_09_you-thought-zope-3-wasn but unfortunately  
> I'm not able to run it and I don't konw why.
> I copied the Example Code, I have the herd.py an the folder  
> herd_templates with the herdindex.pt but ther ist an Error:
>    *GrokError: Found the following unassociated template(s) when  
> grokking 'herd': herdindex.  Define view classes inheriting from  
> grok.View to enable the template(s).
> *
> Ich really don't know what happend. Is somebody able to help me  
> with the Mammoths?
> thanx, Claudia
> -- 
> Claudia Liersch           | IT-Consultant (Dipl.-Ökonomin)
>                            cl at adiwidjaja.com
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev

More information about the Grok-dev mailing list