[Grok-dev] grokproject does not work with other name than app.py
Joachim Schmitz
js at aixtraware.de
Wed Apr 2 07:01:31 EDT 2008
hi,
I did:
grokproject Academics
Enter module (Name of a demo Python module placed into the package)
['app.py']: academics.py
Enter user (Name of an initial administrator user): admin
Enter passwd (Password for the initial administrator user): admin
Enter eggs_dir (Location where zc.buildout will look for and place
packages) ['/home/perry/buildout-eggs']:
Creating directory ./Academics
Downloading zc.buildout...
Invoking zc.buildout...
perry at leise:~/WAeUP_ng$ cd Academics/
perry at leise:~/WAeUP_ng/Academics$ ./bin/zopectl fg
....
and finally got:
Traceback (most recent call last):
File "/home/perry/WAeUP_ng/Academics/parts/app/runzope", line 112, in ?
zope.app.twisted.main.main()
File
"/home/perry/buildout-eggs/tmpAdU9_P/zope.app.twisted-3.4.0-py2.4.egg/zope/app/twisted/main.py",
line 74, in main
File
"/home/perry/buildout-eggs/tmpAdU9_P/zope.app.twisted-3.4.0-py2.4.egg/zope/app/twisted/main.py",
line 145, in setup
File
"/home/perry/buildout-eggs/zope.app.appsetup-3.4.1-py2.4.egg/zope/app/appsetup/appsetup.py",
line 111, in config
context = xmlconfig.file(file, context=context, execute=execute)
File
"/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
line 612, in file
File
"/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py",
line 610, in execute_actions
File
"/home/perry/buildout-eggs/tmpIZkrcF/grok-0.11.1-py2.4.egg/grok/templatereg.py",
line 81, in checkUnassociated
zope.configuration.config.ConfigurationExecutionError:
martian.error.GrokError: Found the following unassociated template(s)
when grokking 'academics': index. Define view classes inher
iting from grok.View to enable the template(s).
in:
File "/home/perry/WAeUP_ng/Academics/src/academics/configure.zcml",
line 4.2-4.27
<grok:grok package="." />
why asking for an module name, if one cannot use a different name than
suggested.
--
Gruß Joachim
More information about the Grok-dev
mailing list