-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Charlie Clark wrote: > Am 22.06.2007 um 12:04 schrieb yuppie: > >> Did you register your factory as utility? Did you make sure >> 'product' is empty in your type info? > > I did register it as a utility but product wasn't empty! Seems to be > working now > > Does this mean that product initialisation in __init__.py can be > reduced to simple imports? ie. > > import Employee > > with no more calls to utils.ToolInit and utils.ContentInit?
Adding directives which *allow* moving all registration steps from Python code to ZCML was an explicit goal; I *think* we accomplished it, but may have overlooked something. Note that I would not favor doing imports at module scope in __init__.py; that just muddies the waters about how you expect the import to work. I would make an exception for a package which was *designed* to be a facade on which others could depend (like the 'zapi' module). Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGe9yv+gerLs4ltQ4RAo4JAKCJDUB++GJL7tB/rHEgrI2fvUZxkQCglV1k gBDWf3B1YiJRFoGGGGDuxrc= =Xid2 -----END PGP SIGNATURE----- _______________________________________________ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests