[Product-Developers] GenericSetup: Upgrade dependencies?

Jean-Michel FRANCOIS toutpt at gmail.com
Tue Jan 17 11:55:14 UTC 2012


An example of test which call an upgrade step:


    def test_upgrade(self):
        from Products.GenericSetup.upgrade import listUpgradeSteps
        setup = self.portal.portal_setup
        steps = listUpgradeSteps(setup, PROFILE, None)
        step_id = steps[0]['id']
        request = self.portal.REQUEST
        request.form['upgrades'] = [step_id]
        request.form['profile_id'] = PROFILE
        setup.manage_doUpgrades()


Regards / Cordialement,

JeanMichel FRANCOIS
Find me on Google + <https://profiles.google.com/toutpt>




2012/1/16 Noe Nieto <nnieto at noenieto.com>

> I have a policy product which defines some dependencies. One of them is
> dexterity.
>
> How do I fire up dexterity's upgrade steps from my own policy upgrade
> steps?
>
> --
> ---
> Noe Nieto
> NNieto Consulting Services
> M: nnieto at noenieto.com
> W: http://noenieto.com
> T:  @tzicatl <https://twitter.com/#%21/tzicatl>
> Li: Perfil en LinkedIn <http://www.linkedin.com/profile/view?id=84300665>
>
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20120117/f42e55a1/attachment-0001.html>


More information about the Product-Developers mailing list