src/ldt/ldt/ldt_utils/models.py
changeset 1081 2e086097cb5d
parent 1074 36f657714851
parent 1043 34af1cdcf746
child 1117 3bab1e42acfa
--- a/src/ldt/ldt/ldt_utils/models.py	Tue Jan 22 13:07:37 2013 +0100
+++ b/src/ldt/ldt/ldt_utils/models.py	Wed Jan 23 17:19:56 2013 +0100
@@ -311,6 +311,10 @@
             if not url_utils.is_absolute(res_url):
                 res_url = unicode(web_url) + res_url
             return res_url 
+        
+    def relative_iri_url(self): #this function is called when we create a project 
+        res_url =  u"ldt/" + unicode(self.iriurl)
+        return res_url 
     
     def iri_file_path(self):
         return os.path.join(os.path.join(os.path.join(settings.MEDIA_ROOT, "ldt"), self.iri_id), os.path.basename(self.iriurl))