[Grok-dev] Re: The Mammoth-Herd Example
Andy Adiwidjaja
adiwidjaja at gmail.com
Fri Sep 7 06:25:53 EDT 2007
Hey all,
we got it to work (Claudia works with me). As we found no complete
working code of this example, I checked it in here:
http://tools.assembla.com/atw/browser/experiments/herd/trunk
If you want to check it out, use:
$ svn co http://tools.assembla.com/svn/atw/experiments/herd/trunk/
The solution was to rename the main herd.py to app.py. I think the use
of differing names for the main application module is currently broken
in grok.
If I try this (grok 0.10, cygwin, python 2.4.4):
$ grokproject herd
Enter module (Name of a demo Python module placed into the package)
['app.py']: herdtest.py
Enter user (Name of an initial administrator user): andy
Enter passwd (Password for the initial administrator user): andy
Enter eggs_dir (Location where zc.buildout will look for and place
packages) ['/home/Andy Adiwidjaja/buildout-eggs']:
Creating directory ./herdtest
Invoking zc.buildout...
$ herdtest/bin/zopectl fg
I get:
GrokError: Found the following unassociated template(s) when
grokking 'herdtest': index. Define view classes inheriting from
grok.View to enable the template(s).
I think this should work. I will take a look at the grok code.
Cheers,
Andy
More information about the Grok-dev
mailing list