('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'),
]
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
#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