[Grok-dev] skip grokking certain files

Wichert Akkerman wichert at wiggy.net
Wed Apr 29 11:18:43 EDT 2009


Is there a way to prevent grokcore from grokking certain files? Files
which may have side effects on import or are not intended to be loaded
during Zope startup currently break the grokking process.

I have a project where this currently breaks: I have a dbsetup.py file
which creates the initial database structure. This is a simple script
which is intended to be run using "bin/instance run
src/package/dbsetup.py", and which relies on all zcml to have been
laoded. This breaks when grok tries to grok that file: importing
dbsetup.py has side-effects and breaks because it can't find some
utilities which have not been registered yet.

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.


More information about the Grok-dev mailing list