Chris Hennes
fa8cac06f4
Addon Manager: Add support for salsa.debian.org
...
The pyrate has moved to salsa.debian.org, so this commit adds the
beginnings of support for those repos.The Markdown library is required
for nice rendering of repos that don't have a package.xml metadata file.
2021-12-18 20:29:42 -06:00
Chris Hennes
a225695dd8
Addon Manager: Rework backend to use package.xml
...
This shifts to use the model-view-controller pattern for the list of addons,
and moves to using a full model class rather than an indexed array for the
data storage and management. This enables much more information to be stored
as part of the new AddonManagerRepo data type. It now wraps the Macro class
for macros, supports Preference Packs, and provides access to the Metadata
object.
2021-12-18 20:29:42 -06:00
Syres916
842abfcee4
[AddonManager] stderr remove translate
2021-09-18 13:05:36 +01:00
Syres916
de3e44a117
[AddonManager] Handle stderr from git status
...
See discussion https://forum.freecadweb.org/viewtopic.php?f=10&t=62265
2021-09-18 11:19:42 +01:00
Yorik van Havre
88744fcf52
AddonManager: Handles git module with no Repo attribute - Fixes #4072
2021-08-18 11:32:19 +02:00
M G Berberich
b95852c8a9
AddonManager: parse addonflags.json with json module
...
Parses addonflags.json with the python json-module instead of using
regular expressions.
2021-06-21 12:52:31 +02:00
Roy-043
9639cdff45
AddonManager: Fix Macros URL
2021-05-12 14:53:16 +02:00
Ondrej Flidr
7d0f808b9c
tabs to spaces
2021-04-21 15:31:40 +02:00
Ondrej Flidr
b457dc4062
revert dynamic char limit
2021-04-21 13:38:51 +02:00
Ondrej Flidr
87e6dddd37
fix path lenght for ecryptfs
2021-04-21 13:37:10 +02:00
Oliver Oxtoby
428868fb09
AddonManager: Fix logic for fallback to displaying raw markdown
...
The logic was inverted in commit 1caf62c6375d9eb82245d1c977dbc799fbf4ed89
2021-03-24 22:38:30 +02:00
Alex Young
ffba26229b
AddonManager: removes unused imports
...
This patch removes all the unused imports in the AddonManager module as flagged by LGTM.
2021-02-14 21:08:23 +01:00
Bernd Hahnebach
837cfa8f75
AddOn: manager, clone repos default branch instead of the master
2020-11-12 13:33:00 +01:00
Matsievskiy S.V
f544688137
AddonManager: Fix python imports
...
Move misplaced imports from addonmanager_macro to addonmanager_workers
2020-10-06 08:21:04 +02:00
Yorik van Havre
76896eae88
AddonManager: Fixed missing import
2020-10-05 17:03:16 +02:00
Matsievskiy S.V
ba69518c36
AddonManager: update python source formatting
...
Update formatting in compliance with pep8 with the following exceptions:
* truncate to 120 characters in line
* prefer double quotes `"` to single quotes `'` in strings
2020-10-01 09:53:34 +02:00
Matsievskiy S.V
07db27d0dd
Addon Manager: change lookup mechanism
...
Switch addon lookup mechanism from parsing html page to extracting info
from .gitmodules file.
This simplifies logic and allows using non-Github repos.
Readme for Github repos are extracted from HTML pages using regex.
Gitlab pages are converted to HTML using Python Markdown lib if present,
falling back to displaying raw markdown.
In this case image links are converted from relative to absolute paths.
2020-10-01 09:53:34 +02:00
Syres916
07516c1670
Remove duplicate code
2020-09-09 14:55:52 +02:00
Syres916
5349fdee14
[AddonManager] Handle Wiki Bad Gateway issue...
...
...when retrieving Macro list
See https://forum.freecadweb.org/viewtopic.php?f=3&t=50062
2020-09-09 14:55:52 +02:00
mwganson
6431d558cd
[AddonManager] fix bug in CheckSingleWorker
2020-09-03 12:23:14 +02:00
Syres916
f40abe153a
[AddonManager] Fix bug when Multiple Wbs updated
...
See discussion https://forum.freecadweb.org/viewtopic.php?f=3&t=46322
2020-05-18 12:35:34 +02:00
Syres916
d9825cb8f9
[AddonManager] Backout of Git Binary Version Lookup
2020-05-08 11:35:59 +02:00
luz.paz
dcdf96d8b9
Fix various typos
...
Found via codespell v1.17.0.dev0
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-05-05 09:49:08 +02:00
Syres916
d572a3934b
[AddonManager] Added reconstruction Wb to PY2ONLY
2020-05-04 11:54:55 +02:00
Syres916
0603310fa9
[AddonManager] Added flamingo Wb to PY2ONLY
2020-05-04 11:54:55 +02:00
Syres916
4ed00a1464
[AddonManager] Removed two unnecessary import re..
...
..statementts
2020-05-04 11:54:55 +02:00
Syres916
a05ae30a2a
[AddonManager] Add Python 2 Awareness..
...
...and improve Git binary version handling.
2020-05-04 11:54:55 +02:00
luz.paz
65f6347953
[skip ci] Fix typos
...
Found via
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-03-24 11:14:24 +01:00
Syres916
aeccba2e18
[AddonManager] Improve Non GitPython Error..
...
...Handling. Previous output when clicking Macros tab caused errors in Report View with no Macros loaded at all.
2019-12-17 15:12:41 -03:00
luz.paz
6c0483647b
...small comment clarification [skip ci]
2019-10-28 10:23:59 -03:00
Yorik van Havre
c53986ff94
AddonManager: Fixed missing 'update available' header
2019-10-25 11:36:09 -03:00
luz.paz
6c5bf999c2
add comment
2019-10-21 15:59:40 -03:00
luz.paz
044b2643fa
Fix regression found in obsolete addon function
...
Variable `message` was used instead of `desc`
2019-10-21 15:59:40 -03:00
luz.paz
b7024c7695
AddonManager: Tweak UI to return friendlier HTML formatted responses
...
Make the Addon Manager GUI friendlier by adding more color and uniformity to the UI for Addons that have a: pending-update, no-update, or are obsolete.
2019-10-21 15:59:40 -03:00
Yorik van Havre
d83f8bc2da
AddonManager: Fixed bug in non-git update
2019-10-16 16:52:06 -03:00
luz.paz
fbae2b3db9
AddonManager: tooltips and minor code formatting
2019-10-14 16:36:07 -03:00
Yorik van Havre
8e86d3ad09
AddonManager: Show installed path in addon description
2019-10-10 15:34:07 -03:00
Yorik van Havre
f946cfaaa4
AddonManager: Fixed crash when quickly clicking through addons
2019-10-10 14:56:28 -03:00
Yorik van Havre
089a36f726
AddonManager: Better error catching in HTML parsing
2019-10-09 15:50:17 -03:00
Yorik van Havre
c6670c7431
AddonManager: Added function to check for updates for a specific addon
2019-08-22 16:44:00 -03:00
Yorik van Havre
e53d3bbea2
AddonManager: Check that the addon folder actually contains files before declaring it installed
2019-08-12 19:36:15 -03:00
Yorik van Havre
febbb16bb1
AddonManager: Don't check addons for updates if they have already been checked for updates
2019-07-26 22:21:51 -03:00
Yorik van Havre
a6334a4bfd
Cleanup in doxygen stuff
2019-07-15 23:20:52 -03:00
Yorik van Havre
c4d43eab4c
AddonManager: Better support of non-github addons
2019-07-12 16:45:31 -03:00
Yorik van Havre
09bfdb02bf
AddonManager: Provisions to support different git hosting platforms than github
2019-07-10 18:29:02 -03:00
Yorik van Havre
3dc7df22cf
AddonManager: Handled exception when unable to download from url
2019-07-10 11:29:32 -03:00
luz.paz
b2d6167366
Fix for ac2eb3 + general unifromity fix
...
Previous commit (ac2eb3) was incomplete. This commit fixes it. The commit also includes an general uniformity fix.
2019-06-27 15:36:12 -03:00
Yorik van Havre
ff395ffc05
AddonManager: Fixed image links
2019-06-27 14:53:02 -03:00
Syres916
cc6209d909
[AddonManager] Improve handling of Wb Readme images
...
...with particular regard to Windows character limit.
2019-06-27 11:49:44 -03:00
Yorik van Havre
3a2eb6e556
AddonManager: cosmetic fixes + prevision formacro icons
2019-06-17 17:17:46 -03:00