Commit eff300b5 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_officejs_appstore_base] configuration_latest_version is set when...

[erp5_officejs_appstore_base] configuration_latest_version is set when acception the Software Publication
parent c1872909
......@@ -30,7 +30,6 @@ web_section.setCriterionPropertyList([
web_section.setCriterion('version', version[:10])
web_section.setMembershipCriterionBaseCategoryList(['follow_up'])
web_section.setMembershipCriterionCategoryList(['follow_up/' + context.getRelativeUrl()])
web_site.edit(configuration_latest_version=web_section.getId())
if not default_page:
# Update default page for development version.
......
......@@ -5,26 +5,5 @@ software_product = context.getFollowUpValue(portal_type="Software Product")
web_site = software_product.SoftwareProduct_getRelatedWebSite()
web_site.edit(
configuration_latest_version=software_release.getReference(),
configuration_latest_version=software_release.getReference()
)
# Update appcache
web_manifest_reference = web_site.getId() + ".appcache"
web_manifest = portal.portal_catalog.getResultValue(
portal_type="Web Manifest",
reference=web_manifest_reference,
)
if not web_manifest:
web_manifest = portal.web_page_module.newContent(
portal_type="Web Manifest",
reference=web_manifest_reference,
title=web_site.getTitle() + " Manifest",
)
web_manifest.publishAlive()
web_manifest.setData("""CACHE MANIFEST
# generated on %s
CACHE:
NETWORK:
*""" % (DateTime().rfc822()))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment