summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author <bdauvergne@entrouvert.com>2009-09-21 12:34:51 (GMT)
committer <bdauvergne@entrouvert.com>2009-09-21 12:34:51 (GMT)
commit3b811607485e88ab980d86a3f0761bcf28a903ba (patch)
treed572cbefb4a01de3dc439cebc1450f61adc30ff5
parentba3cd5286390e555397e940fffd4ba3860ae3f58 (diff)
downloadpratic-3b811607485e88ab980d86a3f0761bcf28a903ba.zip
pratic-3b811607485e88ab980d86a3f0761bcf28a903ba.tar.gz
pratic-3b811607485e88ab980d86a3f0761bcf28a903ba.tar.bz2
Roll forward modification to service instances
* for service instances of global services missing cdg59metadataURL and cdg59URL attribute, copy the attribute from the service definition, and save the new service instance.
-rw-r--r--idp/extra/modules/directory.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/idp/extra/modules/directory.py b/idp/extra/modules/directory.py
index d3fd103..b044b7e 100644
--- a/idp/extra/modules/directory.py
+++ b/idp/extra/modules/directory.py
@@ -479,6 +479,7 @@ def get_service_instances(collectivity):
if s and s.cdg59isGlobal:
si.cdg59metadataURL = s.cdg59metadataURL
si.cdg59URL = s.cdg59URL
+ si.save('cdg59URL','cdg59metadataURL')
return service_instances
@@ -496,6 +497,7 @@ def get_service_instance(collectivity, siid):
if s and s.cdg59isGlobal:
si.cdg59metadataURL = s.cdg59metadataURL
si.cdg59URL = s.cdg59URL
+ si.save('cdg59URL','cdg59metadataURL')
return si