There is no upgrade procedure defined for this add-on

2 messages Options
Embed this post
Permalink
francoise () There is no upgrade procedure defined for this add-on
Reply Threaded More More options
Print post
Permalink
Hi all,

I installed a new version of Plone-3.3.1 with UnifiedInstaller on a Debian Lenny.

I made my changes to buildout.cfg, copied my Plone-3.2.3 Data.fs in var/filestorage and did a migration with portal_migration

Looking in "site setup" - "Add-on Product" control panel, I saw the following message for my developments Products :

MyProduct 1.0dev-r165
      "This product has been upgraded.   Old profile version was unknown. New profile version is 1.0.   There is no upgrade procedure defined for this add-on. Please consult the product documentation for upgrade information, or contact the product author."

It's true I did not write any upgrade procedure because (didn't think I need one).

The version is taken from PKG-INFO, because the default setup.cfg generated by paster has the following lines that I didn't notice :

     [zopeskel]
     template = plone

     [egg_info]
     tag_build = dev
     tag_svn_revision = true

version is "1.0" in my setup.py file (that's what I answered to paster), in version.txt file and in metadata.xml

What do you think I should correct in my Product to avoid this "no upgrade procedure"  ?

Regards

_______________________________________________
Setup mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/setup
francoise () Re: There is no upgrade procedure defined for this add-on
Reply Threaded More More options
Print post
Permalink
The complete message is the following :

    MyTheme 1.0dev-r165

    Extension profile for the "MyTheme" Plone theme. ... This product
has been upgraded. Old profile version was unknown. New profile
version is 1.0. There is no upgrade procedure defined for this add-on.
Please consult the product documentation for upgrade information, or
contact the product author.

"1.0" is the version in my.theme/my/theme/version.txt,
my.theme/my/theme/setup.py and
my.theme/my/theme/profiles/default/metadata.xml
1.0dev-r165 is build with SVN info

If I understand the message, my product "has been upgraded", so I have
nothing to do.

I think I do not do anything special in my product that would need to
be upgraded, but I can be wrong.

What should I do to avoid this disturbing message :
  - add a <genericsetup:upgradeStep> to my configure.zcml with an
empty handler ?
  - what version number should I use as source and destination ?

Here is what I imagine I could add :

  <genericsetup:upgradeStep
      title="MyTheme upgrade"
      description="Fake upgrade step."
      source="unknown"
      destination="1.0"
      handler="my.theme.migrations.fake_upgrade"
      profile="my.theme:MyTheme" />

I did not found clear instructions for my level of Plone knowlodge, I
found some interesting pointers in documentation, blogs and forums,
but I do not a clear vision of what I should do.

Did I miss something ?

some pointers:
http://plone.org/documentation/how-to/version-numbers-in-cmfquickinstaller/
http://plone.org/support/forums/core#nabble-td2393544|a2478376

Regards

_______________________________________________
Setup mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/setup