code: def upgradestep(upgrade_product, version):
      
      def wrap_func(fn):
          def wrap_func_args(context, *args):
              p = getToolByName(context, 'portal_quickinstaller').get(upgrade_product)
              setattr(p, 'installedversion', version)
              return fn(context, *args)
          return wrap_func_args
      return wrap_func
docs: Decorator for updating the QuickInstaller of a upgrade