]> git.parisson.com Git - telemeta.git/commitdiff
bugfix
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 19 Mar 2014 21:34:53 +0000 (22:34 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 19 Mar 2014 21:34:53 +0000 (22:34 +0100)
telemeta/views/collection.py

index 5f0b7cf92c40762e8cfcf2d0bb5660a4eb7f6702..d5e4c923d3981bc4f3931ae23b34d1cebd392c1e 100644 (file)
@@ -191,7 +191,7 @@ class CollectionPackageView(View):
         z.write(path, arcname=collection.public_id + os.sep + filename)
 
         for item in collection.items.all():
-            filename, ext = os.splitext(item.file.path.split(os.sep)[-1])
+            filename, ext = os.path.splitext(item.file.path.split(os.sep)[-1])
             z.write(item.file.path, arcname=collection.public_id + os.sep + item.code + ext)
             marker_view = MarkerView()
             markers = marker_view.get_markers(item.id)