# HG changeset patch # User ymh # Date 1276558354 -7200 # Node ID 8dbd741e3da69623d10858668a708cb5c64fc610 # Parent 50ad1c57838eb1847b9cfa7a25ce927f241c51ec correct css path and error handling + increase version diff -r 50ad1c57838e -r 8dbd741e3da6 web/eulalie/__init__.py --- a/web/eulalie/__init__.py Tue Jun 15 01:01:28 2010 +0200 +++ b/web/eulalie/__init__.py Tue Jun 15 01:32:34 2010 +0200 @@ -1,4 +1,4 @@ -VERSION = (0,7) +VERSION = (0,8) VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION))) diff -r 50ad1c57838e -r 8dbd741e3da6 web/ldt/ldt_utils/models.py --- a/web/ldt/ldt_utils/models.py Tue Jun 15 01:01:28 2010 +0200 +++ b/web/ldt/ldt_utils/models.py Tue Jun 15 01:32:34 2010 +0200 @@ -50,21 +50,25 @@ #TODO: better manage the change in .iri name and error scenario (save in temp file + rename def save(self): # create iri file if needed + created = False try: iri_file_path = self.iri_file_path() if not os.path.exists(iri_file_path): dir = os.path.dirname(iri_file_path) if not os.path.exists(dir): os.makedirs(dir) + created = True file = open(iri_file_path,"w") create_empty_iri(file, self, "IRI") else: + created = False update_iri(iri_file_path, self, "IRI") except Exception, e: - if os.path.exists(iri_file_path): - os.remove(iri_file_path) - raise e + if created: + if os.path.exists(iri_file_path): + os.remove(iri_file_path) + raise e # update it super(Content, self).save() diff -r 50ad1c57838e -r 8dbd741e3da6 web/static/css/LdtPlayer.css --- a/web/static/css/LdtPlayer.css Tue Jun 15 01:01:28 2010 +0200 +++ b/web/static/css/LdtPlayer.css Tue Jun 15 01:32:34 2010 +0200 @@ -8,7 +8,7 @@ .tooltip { display:none; - background:transparent url(css/jq-css/tooltip/white_arrow.png); + background:transparent url(jq-css/tooltip/white_arrow.png); font-size:12px; height:100px; width:180px;