@easyw-fc is this methodology could be utilized in this possible next iteration of the addon manager (mentioned in my previous post) ?easyw-fc wrote:ping
what I do for my checking is:Kunda1 wrote: ↑Thu Mar 22, 2018 2:05 pmMaybe useful: updating check for external Workbenches https://forum.freecadweb.org/viewtopic.php?f=10&t=27621@easyw-fc is this methodology could be utilized in this possible next iteration of the addon manager (mentioned in my previous post) ?easyw-fc wrote:ping
Anyone open to mentoring me attaching the FC backend code to this QGIS frontend template ?Kunda1 wrote: ↑Wed Mar 21, 2018 10:45 pmHow about we re-use the QGIS .ui for the addon manager ?
https://github.com/qgis/QGIS/blob/maste ... gerbase.ui
yorik wrote: ↑Mon Apr 02, 2018 5:02 pmI think most of the addon manager script code would need to be redone... Are you sure this is the best way? Personally I would find more efficient to extend the existing one to add the missing features you need from the QGis one.
Plus there are other points to solve first: How will you detect new workbenches? And invalid ones? How would the vote system work? You would need a server somewhere with some server-side code running on it, to register the votes. How will you make sure a person doesn't vote a hundred times? Also, what would be the use of a vote system?
There is also the problem that for people without python-git we currently don't have a system to detect if an update is available...
I'd probably forego the voting system.
I wouldn't add that functionality yet. I'd leave it de-activated till we figure that out.
Fair enough. I'm just not sure how to extend our current addon. Qt Designer isn't as intuitive as I would like it to be.
what I do with my update checker for my WBs is using urllib2 or urllib (for py3) to fetch the GH page and get the commits number. Then I compare this value with the one written in the WB itself.