diff -r 06e691528710 -r 73753ea1dcef web/ldt/ldt_utils/models.py --- a/web/ldt/ldt_utils/models.py Mon Jun 14 15:23:07 2010 +0200 +++ b/web/ldt/ldt_utils/models.py Tue Jun 15 00:25:30 2010 +0200 @@ -2,8 +2,7 @@ from django.conf import settings from ldt.core.models import Document, Owner from django.utils.translation import ugettext_lazy as _ -from utils import create_ldt, copy_ldt, create_empty_iri -import os +from utils import create_ldt, copy_ldt, create_empty_iri, update_iri import os.path import uuid import xml @@ -58,6 +57,9 @@ os.makedirs(dir) file = open(iri_file_path,"w") create_empty_iri(file, self, "IRI") + else: + update_iri(iri_file_path, self, "IRI") + except Exception, e: if os.path.exists(iri_file_path): os.remove(iri_file_path)