chiark / gitweb /
Update youmagine api to fix compatibility with new youmagine release.
[cura.git] / Cura / util / youmagine.py
index 935aae1a0e9a7cd95d5f816aa632ccb6774235ff..f8ed8e68ba6d342c2c759a9396c759113346a619 100644 (file)
@@ -54,11 +54,15 @@ class Youmagine(object):
                        ('Jewelry', 7),
                        ('Maker/DIY', 8),
                        ('Miniatures', 9),
+                       ('Toys', 10),
+                       ('3D printer parts and enhancements', 11),
                        ('Other', 1),
                ]
                self._licenses = [
-                       ('Creative Commons - Share Alike', 'cc'),
-                       ('Creative Commons - Attribution-NonCommercial-ShareAlike', 'ccnc'),
+                       ('Creative Commons - Attribution Share Alike', 'ccbysa'),
+                       ('Creative Commons - Attribution Non-Commercial ShareAlike', 'ccbyncsa'),
+                       ('Creative Commons - Attribution No Derivatives', 'ccbynd'),
+                       ('Creative Commons - Attribution Non-Commercial No Derivatives', 'ccbyncsa'),
                        ('GPLv3', 'gplv3'),
                ]
 
@@ -192,7 +196,7 @@ class Youmagine(object):
 
 #Fake Youmagine class to test without internet
 class FakeYoumagine(Youmagine):
-       def __init__(self, authToken):
+       def __init__(self, authToken, callback):
                super(FakeYoumagine, self).__init__(authToken)
                self._authUrl = 'file:///C:/Models/output.html'
                self._authToken = None