kalsi-avneet / py-fossology

Python wrapper around FOSSology's REST API
MIT License
3 stars 0 forks source link

When a new folder is created, the returned object does not contain all properties, like the folder name or description #7

Closed kalsi-avneet closed 5 years ago

kalsi-avneet commented 5 years ago

eg:

>>> from fossology import Fossology
>>> fossology = Fossology(server='http://localhost:8085/repo/',  auth={'username':'fossy', 'password':'fossy', 'token_expire':'2019-09-07', 'token_scope':'write'})
>>> top_folder=fossology.folder(folder_id=1)
>>>
>>>
>>> new_folder=fossology.new_folder(folder_name='untitled', parent_folder=top_folder)
>>> type(new_folder.folder_name)
<class 'NoneType'>        #  <----- This should be a string with value 'untitled', as passed
>>> 
kalsi-avneet commented 5 years ago

Fixed by 3364d3b