]> git.parisson.com Git - teleforma.git/commitdiff
upgrade item id
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 4 May 2014 20:57:15 +0000 (22:57 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 4 May 2014 20:57:15 +0000 (22:57 +0200)
teleforma/management/commands/teleforma-import-seminar-media.py

index aebb90e9b8ce5486286e01943c44a30788dc005f..2fcfed7ed278d67d2982f4ea579c2289dfe43d35 100644 (file)
@@ -164,7 +164,7 @@ class Command(BaseCommand):
                             break
                     
                     if not exist:
-                        print root + filename
+                        print root + os.sep + filename
                         logger.logger.info(seminar.public_url())
                         logger.logger.info(path)
                         if not seminar in seminars:
@@ -177,7 +177,7 @@ class Command(BaseCommand):
                         else:
                             collection = collections[0]
 
-                        id = '_'.join([period.name, '20', collection_id, ext, str(media_rank)])
+                        id = '_'.join([period.name, '30', collection_id, ext, str(media_rank)])
 
                         item = self.get_item(collection, id)
                         item.title = name