Hi Will, I thought the module versionhandlers work like this:
- if the module is "new", the basic install tasks are executed - if the module is already installed, then any deltas applicable to the "version-increase" get executed So you would either get the basic install tasks or the deltas, but not both... As a consequence, I usually put whatever is in the deltas into the basic install tasks as well, since the current version needs these things in its setup, and the module might be installed "new" for some reason. Have I got that wrong? Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Will Scheidegger Gesendet: Donnerstag, 16. August 2012 20:32 An: Magnolia User-List Betreff: [magnolia-user] Boostrap / VersionHandler question Dear Magnolians Bootstrapping is giving me a hard time. and I was hoping that some of you knowledgeable people could show me what I'm doing wrong. I have two modules, A and B. - module A registeres a bunch of node types in getBasicInstallTasks() - module A then registers a few more node types in deltas which are created and registered in the modules constructor with the register(Delte d) method - module B has a (Magnolia) dependency on module A in its module descriptor - module B has some data in mgnl-bootstrap-samples that also contains node of the types registered by be in a delta. What I would expect: Because of the dependency on module A in Bs module descriptor A is fully bootstrapped first, then B is bootstrapped. What actually happens: The node types which are registered in getBasicInstallTasks() of module A version handler. Then the sample data of module b is bootstrapped. which of course leads to an exception because the other node types are not found. Why is it that the stuff in the delta of A is not executed before B is installed? Am I doing something wrong? Thanks! -will ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
