[Zope-CMF] dev question on CMFDefault.__init__.py
Florent Guillaume
fg@nuxeo.com
Sat, 19 Oct 2002 19:36:39 +0000 (UTC)
As one datapoint, the main body of __init__ is called at module
initialization, which is very early. initialize() is called by Product
initialization, which is done later by Zope.
But I don't know the precise details of ZClasses initialization (and
frankly the less I hear about ZClasses, the happier I am).
Florent
Mark McEahern <mark@mceahern.com> wrote:
> In CMFDefault/__init__.py (CMF 1.3 final) there's no apparent rationale for
> why some stuff is done outside of the initialize() method and some stuff is
> done inside it; e.g., z_bases is assigned on line 107, outside of
> initialize(), then it's used inside initialize().
>
> I'm trying to understand __init__.py so that I can capture my customizations
> of CMFDefault without having to manually perform them each time I create the
> Portal in the ZMI.
>
> Any insights anyone can offer would be greatly appreciated.
>
> I'd be happy to refactor __init__.py, if that's what it needs, once I
> understand it. <wink>
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com