chiark / gitweb /
Update youmagine api to fix compatibility with new youmagine release.
[cura.git] / Cura / util / youmagine.py
index ba1c2ca4dfad2bda72bc75d95648f310a70680f7..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'),
                ]
 
@@ -112,7 +116,6 @@ class Youmagine(object):
        def publishDesign(self, id):
                res = self._request('PUT', '/designs/%d/mark_as/publish.json' % (id), {'ignore': 'me'})
                if res is not None:
-                       print res
                        return False
                return True
 
@@ -193,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