Coder Social home page Coder Social logo

py-fossology's People

Contributors

kalsi-avneet avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

py-fossology's Issues

Update object's properties as well after a resource is modified on the server

When a property of a resource is modified on the server via an object, the object's properties do not contain the updated values
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)
>>> top_folder.description
'Top Folder'
>>> top_folder.edit_description('Modified description')
True
>>> top_folder.description
'Top Folder'                      # <-----This should be 'Modified description'
>>> top_folder_2=fossology.folder(folder_id=1)
>>> top_folder_2.description
'Modified description'      #  <----- A new object pointing to the same resource has the expected properties
>>> 

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

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
>>> 

PyPi ready codebase

Investigate and structure the codebase to be able to be distributed via pip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.