Skip to content

Releases: jssimporter/python-jss

v0.3.5: Hot Dog Sundae

02 Sep 14:02
Compare
Choose a tag to compare

CHANGES:

  • Implemented FileUpload. They are kind of unique in the way they operate...

    """Prepare a new FileUpload.
    
    j:                  A JSS object to POST the upload to.
    
    resource_type:      String. Acceptable Values:
                        Attachments:
                            computers
                            mobiledevices
                            enrollmentprofiles
                            peripherals
                        Icons:
                            policies
                            ebooks
                            mobiledeviceapplicationsicon
                        Mobile Device Application:
                            mobiledeviceapplicationsipa
                        Disk Encryption
                            diskencryptionconfigurations
    id_type:            String of desired ID type:
                            id
                            name
    
    _id                 Int or String referencing the identity value of
                        the resource to add the FileUpload to.
    
    resource            String path to the file to upload.
    
    """
    

0.3.4

19 Aug 16:29
Compare
Choose a tag to compare

NOTES:

  • The interface will stay the same now. Only new features and fixes from here on out.

CHANGES:

  • Add __version__ property to module. Use for version checking if needed.

v.0.3.3

31 Jul 20:16
Compare
Choose a tag to compare

CHANGES:

  • Reorganized JSSObject.save() logic to try to update first. Trying to create a new object first with existing objects results in a name conflict exception, which you then have to catch. But when you DO have a name conflict, you really would like to know. This saves the need to wrap save calls in a try/except for updating existing objects. E.g. batch_scope verb of jss_helper.

v.0.3.2

31 Jul 15:58
Compare
Choose a tag to compare

FIXES:

  • Fixed error where pypi packages did not include the cacert.pem file included with requests.

v.0.3.1

31 Jul 15:59
Compare
Choose a tag to compare

CHANGES:

  • JSS._error_handler() now adds a status_code attribute to exceptions.

FIXES:

  • JSSObject.save() was confusing. If you created a new object with JSSObject() that conflicted with an existing object on the JSS, the save would fail with a JSSPutError. Now we check for conflicts and instead return a - JSSPostError with a more helpful error message.
  • I mistakenly listed the preference key as jss_password in the README. Now the code and README agree: jss_pass is the correct key.

Anti-Multi-Inheritence

02 Jul 19:35
Compare
Choose a tag to compare

Post-UML horror, I thought about how to fix the multiple-inheritence hole I had dug myself into.

This should be the last major refactoring and changing of the interface. At this point it's all just gravy.