Commit Graph

64 Commits

Author SHA1 Message Date
wmayer
85bea885cc fixes 0003669: AddonManager should inform of the need to restart FreeCAD for changes to take effect 2019-01-16 14:47:28 +01:00
Yorik van Havre
84ad0c2f6f AddonManager: Show warning for obsolete addons 2019-01-09 19:57:19 -02:00
Yorik van Havre
abdd60e061 AddonManager: Don't overwrite displayed text after a module install/removal 2019-01-06 22:26:03 -02:00
Gaël Écorchard
15c37ccf06 [AddonManager] Fix bug to install macros' other files 2018-11-13 13:28:53 +01:00
wmayer
54561c5b6e extend FreeCAD.getUserMacroDir to accept boolean to either return actual or default macro directory 2018-10-28 17:10:10 +01:00
Gaël Écorchard
d5e150841d [AddonManager] Add support for __Files__
Read the metadata __Files__ for macros from git and install or remove
files listed there.
__Files__ must be a comma-separated list of files to be copied alongside
the macro.  Their path must be relative to the macro (*.FCMacro file)
and not to othe root of the repository. Each file can be prefixed with a
subdirectory.
2018-10-25 11:04:43 -03:00
Gaël Écorchard
58b5749163 [AddonManager] separate the Macro class
Separate the Macro class of the AddonManager into addonmanager_macro.py
to prepare for future support for dependent files for macros from the
git repository.
2018-10-25 11:04:43 -03:00
Yorik van Havre
b97b9f78e7 AddonManager: Added Mario's macro execute button 2018-10-02 10:25:38 -03:00
Yorik van Havre
6f0beaad47 AddonManager: Fixed macro copying and centre manager dialog over FC window 2018-10-01 19:19:52 -03:00
Mark Ganson TheMarkster
ce8ee78993 addon manager py3 fixes
Only decode / encode if on py2 except for the b'\xc2\xa0', replace, which must be decoded to create the unicode string.
2018-09-15 19:28:44 +02:00
Mark Ganson TheMarkster
68fb70ff3c fix python3 issues
* fix attempts to remove readonly temp folder in windows, which was preventing addon manager window from closing
* cleanup (unescape) macros manually if HTMLParser().unescape() fails
* replace tabs in macros with 4 spaces
2018-09-15 19:28:36 +02:00
wmayer
f9aff34415 restore old behaviour of AddonManager.get_macro_dir 2018-09-13 23:50:36 +02:00
wmayer
6b93f4ea91 issue #0003588: The path to the Addons does not allow special characters 2018-09-13 16:03:38 +02:00
Daniel Furtlehner
71528b8660 AddonManager: Fixes download of metadata.txt with Py3
urllib2 in Py3 gives us a bytearray instead of a string. We have to decode it first to get the metadata.txt. When decoding fails we assume that we are in Py2 and process as before.
2018-08-29 11:00:42 -03:00
luz.paz
27c6ebc347 AddonManager: expand dialog window
Closes https://github.com/FreeCAD/FreeCAD-addons/issues/74
2018-08-03 10:31:44 -03:00
Yorik van Havre
7519daaa2d AddonManager: Support for Mario's template for externally hosted macros 2018-08-02 11:47:29 -03:00
wandererfan
ae2c717923 Fix typo in AddonManager 2018-05-29 09:57:10 +02:00
Gaël Écorchard
a09be6f0ee [AddonManager] Add github support
- Add support for installing macros from https://github.com/FreeCAD/FreeCAD-addons.git.
- Macros which have the same name on git and on the wiki are not
  repeated.
2018-05-08 15:47:16 -03:00
Gaël Écorchard
e4f01ed99a [AddonManager] Save macros without 'Macro_' prefix
- Save macros without 'Macro_' prefix.
- Installed macros are recognized with or without this prefix.
- Prepare the ground for integration of the code fetching macros from
  github.
2018-05-08 15:47:16 -03:00
looooo
d4a48c186c py3: addon-manager 2018-04-14 10:40:31 +02:00
Yorik van Havre
07953d3e80 AddonManager: Fixed addon descriptions 2018-03-19 12:53:20 -03:00
triplus
5f65371444 Remove read only files
+ Method to remove read only file (needed for shutil.rmtree() on Windows).
+ Revert .clear_cache().
2018-03-11 16:50:38 +01:00
triplus
b38ee26de5 GitPython permission issue on Windows 2018-03-11 16:50:38 +01:00
Yorik van Havre
afb719dfbd AddonMAnager: Don't hide error message if some addon failed to install 2018-03-02 11:25:28 -03:00
wschildbach
7ce7dcc4e7 Fix error caused by insufficient rights to create symlink under Windows 10
On Windows 10, symlink creation is not allowed unless the process runs with elevated rights. 

As per https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10/#joC5tFKhdXs2gGml.97, starting with Windows 10 Insiders build 14972, symlinks can be created without needing to elevate the console as administrator.

To use this functionality, 0x2 needs to be set in the flags argument for the CreateSymbolicLinkW() call. See also e883847484
2018-03-02 10:50:52 -03:00
luz.paz
5d07c271ee Residual files left to remove \n from translate() 2018-02-12 21:59:37 +01:00
Yorik van Havre
3c679c13ca AddonManager: Download biggest code block from macro pages in case there is more than one code block 2018-01-20 22:34:53 -02:00
Yorik van Havre
48b45b6c47 AddonManager: Enable the use of submodules 2018-01-05 20:03:04 -02:00
Yorik van Havre
500ac97147 AddonManager: Check if thread is already running 2017-12-16 10:03:41 -02:00
Yorik van Havre
8da9887ec2 AddonManager: Disable Install button immediately 2017-12-15 16:16:37 -02:00
Yorik van Havre
4c528b70f6 AddonManager: set focus back on WB list after updating 2017-12-03 16:49:19 -02:00
Yorik van Havre
c72b9fa532 AddonManager: allow to update all updatable addons at once by pressing the update button again (git-python only) 2017-11-12 15:23:25 -02:00
PLChris
339dd6b6a1 Fixing security error on MacOS for AddonManager, see https://forum.freecadweb.org/viewtopic.php?f=3&t=24898 2017-10-30 14:01:02 -02:00
Yorik van Havre
2e32324354 AddonManager: Inform which addons have updates available 2017-09-02 14:10:33 -03:00
Yorik van Havre
ff7c0d7594 Addon manager - create Macro folder if not present 2017-09-01 16:20:17 -03:00
Yorik van Havre
8894065422 AddonManager: don't close if a thread is still running 2017-08-18 11:52:31 -03:00
Yorik van Havre
9717b4bc0d AddonManager: If using git, clicking an installed WB now says if an update is available 2017-08-12 12:08:56 -03:00
Yorik van Havre
456c61b58a AddonManager: Allow to specify dependencies in addons are either Part or PartWorkbench 2017-08-03 11:37:47 -03:00
Kurt Kremitzki
ede5eedea2 Revise GitPython warning to only fire once on mass upgrade 2017-07-05 15:08:32 +02:00
Kurt Kremitzki
c822924ea3 Fix GitPython capitalization consistency 2017-07-05 15:08:32 +02:00
Kurt Kremitzki
4b114854ed Remove Deb/Ubuntu-specific python-git package reference for pip-installable GitPython 2017-07-05 15:08:32 +02:00
Kurt Kremitzki
2e4e4e14cf AddonMgr: Catch GitPython < 2.x error and advise upgrade 2017-07-05 15:08:32 +02:00
Kurt Kremitzki
b193ff3885 AddonMgr: Use hard reset for addon git repair 2017-07-05 15:08:32 +02:00
Kurt Kremitzki
85e0031292 AddonMgr: Check and repair addon .git folders 2017-07-05 15:08:32 +02:00
Yorik van Havre
b97001ee1f AddonManager: Further older ssl/urllib2 version support 2017-06-09 11:05:17 -03:00
Yorik van Havre
8ba268c108 AddonManager: Support older versions of ssl module 2017-06-09 00:06:46 -03:00
Yorik van Havre
e09e99b022 Addon manager: Added a button to check for available updates (git mode only) 2017-06-01 18:47:16 -03:00
Yorik van Havre
515624261d Addon manager: Added check for optional py dependencies 2017-06-01 12:07:46 -03:00
Yorik van Havre
dd02729cf4 Addonmanager: Small fix 2017-05-31 22:53:50 -03:00
Yorik van Havre
cc4aae5823 Addon manager: strip possible whitespaces in dependencies checking 2017-05-31 19:23:28 -03:00