lorenz
ab1f4c442d
py3: AddonManager-macro: use unicode
...
proposal from here: https://forum.freecadweb.org/viewtopic.php?f=3&t=33172&start=10#p278156
2019-01-05 14:50:25 +01:00
Gaël Écorchard
735b0a18b9
[AddonManager] Fix bug to install macros' other files
2018-11-13 13:28:53 +01:00
wmayer
17c783051b
extend FreeCAD.getUserMacroDir to accept boolean to either return actual or default macro directory
2018-10-28 17:10:10 +01:00
Yorik van Havre
57726db47f
AddonManager: minor bugfix
2018-10-27 16:15:55 -03:00
Yorik van Havre
f1e3ec88c6
AddonManager: Fixed missing files in cmake
2018-10-25 12:02:46 -03:00
Gaël Écorchard
968ce141d0
[AddonManager] Fix Python 2 bug with list comprehension
2018-10-25 11:04:43 -03:00
Gaël Écorchard
2506f5b207
[AddonManager] Strip whitespace from other_files
...
Strip whitespace from the file name in the macro metadata __Files__
field.
2018-10-25 11:04:43 -03:00
Gaël Écorchard
37b738f86f
[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
bac786a8ea
[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
4cab61c54a
AddonManager: Added Mario's macro execute button
2018-10-02 10:25:38 -03:00
Yorik van Havre
1d3f3ab7ec
AddonManager: Fixed macro copying and centre manager dialog over FC window
2018-10-01 19:19:52 -03:00
Mark Ganson TheMarkster
625ef4548b
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
fa00718c23
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
70cf68ab3d
restore old behaviour of AddonManager.get_macro_dir
2018-09-13 23:50:36 +02:00
wmayer
02eb4a6fa3
issue #0003588 : The path to the Addons does not allow special characters
2018-09-13 16:03:38 +02:00
Daniel Furtlehner
998b72324d
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
1d81fd66b8
AddonManager: expand dialog window
...
Closes https://github.com/FreeCAD/FreeCAD-addons/issues/74
2018-08-03 10:31:44 -03:00
Yorik van Havre
53c2058e0c
AddonManager: Support for Mario's template for externally hosted macros
2018-08-02 11:47:29 -03:00
wandererfan
3b02ff2a94
Fix typo in AddonManager
2018-05-29 09:57:10 +02:00
Gaël Écorchard
176eb8c66e
[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
6597b446cb
[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
cab320be4b
py3: addon-manager
2018-04-14 10:40:31 +02:00
Yorik van Havre
296fcd3553
AddonManager: Fixed addon descriptions
2018-03-19 12:53:20 -03:00
triplus
c78a02e782
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
85b30bdd5a
GitPython permission issue on Windows
2018-03-11 16:50:38 +01:00
Yorik van Havre
e124b05bff
AddonMAnager: Don't hide error message if some addon failed to install
2018-03-02 11:25:28 -03:00
wschildbach
b5741a4a97
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
7703bc7897
Residual files left to remove \n from translate()
2018-02-12 21:59:37 +01:00
Yorik van Havre
acb3a34d99
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
ade72a81bb
AddonManager: Enable the use of submodules
2018-01-05 20:03:04 -02:00
Yorik van Havre
873bd0b20f
AddonManager: Check if thread is already running
2017-12-16 10:03:41 -02:00
Yorik van Havre
ebede3e4d7
AddonManager: Disable Install button immediately
2017-12-15 16:16:37 -02:00
Yorik van Havre
95cc7a900b
AddonManager: set focus back on WB list after updating
2017-12-03 16:49:19 -02:00
Yorik van Havre
03f439caf7
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
2bc75bd946
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
7af5b78bfd
AddonManager: Inform which addons have updates available
2017-09-02 14:10:33 -03:00
Yorik van Havre
cc87706776
Addon manager - create Macro folder if not present
2017-09-01 16:20:17 -03:00
Yorik van Havre
b61ba45a3e
AddonManager: don't close if a thread is still running
2017-08-18 11:52:31 -03:00
Yorik van Havre
42b39b59f9
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
b7110d0dfe
AddonManager: Allow to specify dependencies in addons are either Part or PartWorkbench
2017-08-03 11:37:47 -03:00
Kurt Kremitzki
a390d01cc8
Revise GitPython warning to only fire once on mass upgrade
2017-07-05 15:08:32 +02:00
Kurt Kremitzki
42f20fbbd8
Fix GitPython capitalization consistency
2017-07-05 15:08:32 +02:00
Kurt Kremitzki
843da68025
Remove Deb/Ubuntu-specific python-git package reference for pip-installable GitPython
2017-07-05 15:08:32 +02:00
Kurt Kremitzki
e14110114f
AddonMgr: Catch GitPython < 2.x error and advise upgrade
2017-07-05 15:08:32 +02:00
Kurt Kremitzki
b1c96163ab
AddonMgr: Use hard reset for addon git repair
2017-07-05 15:08:32 +02:00
Kurt Kremitzki
e76b77fab2
AddonMgr: Check and repair addon .git folders
2017-07-05 15:08:32 +02:00
Yorik van Havre
ab1b344410
AddonManager: Further older ssl/urllib2 version support
2017-06-09 11:05:17 -03:00
Yorik van Havre
5c5292cf4f
AddonManager: Support older versions of ssl module
2017-06-09 00:06:46 -03:00
Yorik van Havre
a0901f57f0
Addon manager: Added a button to check for available updates (git mode only)
2017-06-01 18:47:16 -03:00
Yorik van Havre
99e400e87a
Addon manager: Added check for optional py dependencies
2017-06-01 12:07:46 -03:00