Commits

Grant Eagon committed 3c60cbe

Changes to customer templates now save.

Comments (0)

Files changed (1)

 class ShopifyPusher(threading.Thread):
     def __init__(self, relpath):
         self.relpath = relpath
-        self.store_name, theme_id, asset_type, asset_name = relpath.split(os.sep)
-        self.theme_id = int(theme_id)
-        self.key = "%s/%s" %(asset_type, asset_name)
+        keys = relpath.split(os.sep)
+        self.store_name = keys[0]
+        self.theme_id = int(keys[1])
+        self.key = "%s/%s" %(keys[2], keys[3])
+        if len(keys) == 5:
+            self.key = "%s/%s" % (self.key, keys[4])
         self.filename = os.path.join(cache_root(), relpath)
         self.result = None
         threading.Thread.__init__(self)