Latest revision |
Your text |
Line 6: |
Line 6: |
| | | |
| Project: [[User:Mandeeps708/gsoc_proposal|The FreeCAD Plugin Installer]] | | Project: [[User:Mandeeps708/gsoc_proposal|The FreeCAD Plugin Installer]] |
− |
| |
− | Commits: [http://brlcad.org/wiki/User:Mandeeps708/GSoC16/logs#Coding_Period mandeeps708/PluginManager] @GitHub
| |
| ------------------------------------------------------------------------ | | ------------------------------------------------------------------------ |
| | | |
Line 126: |
Line 124: |
| | | |
| '''26 July''' : Added some code for detecting the user-preferred Macro installation directory or the default one and setting up one. If it doesn't exist, it'll be created. | | '''26 July''' : Added some code for detecting the user-preferred Macro installation directory or the default one and setting up one. If it doesn't exist, it'll be created. |
− |
| |
− | '''27 July - 28 July''' : Modified code according to the PEP8 coding conventions and changed the creation of directories.
| |
− |
| |
− | '''29 July - 30 July''' : Automatic directory creation for workbenches (if it doesn't exist). Testing of all plugins! Better exceptions for Macro fetching. Added code for fetching the macro with the non-English characters (used encode function with utf8).
| |
− |
| |
− | '''31 July - 1 August''' : FreeCAD Wiki now has the new CSS class for the block of macro code if there are some other code chunks (that are not the actual macro code). So in that case, they are parsed instead of the original macro code because the syntax highlighting is having same CSS classes. If there are multiple chunks are present, then we'll add a new class "macro-code" to the actual macro code and if there is no element with macro-code on that page, then the default method is taken (for single code block).
| |
− |
| |
− | '''2 August''' : Worked on blacklisting some macros. Some macros do not contain any code. A few cases are there, that use some other method to store the macro code. So skipping them as of now. Other cases are like the macros are just a reference to the Workbenches (and info. related to them). So make that cases simpler for the future, created a list "blacklisted_plugins_list" that will contain the name of the macros that are to be blacklisted.
| |
− |
| |
− | '''3 August''' : Worked on implementing the isInstalled() method for both the Wiki and Workbenches Fetch classes. What it does is that it checks for the existing directory/file for the workbench/macro and see if it exists. Also added a check in the install() method to see if it isInstalled() returned False. Else it already exists.
| |
− |
| |
− | '''4 August - 5 August''' : The FreeCAD wiki now have a new element i.e. macro-version. It tells the current version of the macro. It'll help to check if the macro is
| |
− | up to date or not. PluginManager.info() now returns the plugin (with additional data).
| |
− | Also worked on the feature to retrieve the contents from the Web only once. If the info. has been fetched already, then no need to fetch it again. The method getInfo() fetches everytime we call it (even with the same plugin, twice). Added code to store the fetched info. in a dictionary and it's fetched when calling with the same plugin.
| |
− |
| |
− | '''6 August - 7 August''' : Added isInstalled() to the library interface. Now the FreeCAD wiki pages have a new element "Version" defaults to 1.0. It'll be helpful while checking for updates. Also added version to the macro name while storing. Some code cleanup. Added uninstall() method for macro plugins and also added the library interface for that. Further added the same for the GitHub Workbenches. Also, read about the lambda functions in Python.
| |
− |
| |
− | '''8 August''' : Associate macro-version with the Plugin instance.
| |
− |
| |
− | '''9 August - 10 August''' : Get the current version of the macro (installed). Removed the dictionary used to store the fetched info about plugins.
| |
− |
| |
− | '''11 August''' : Better way to make PluginManager fetch the plugin info only once.
| |
− |
| |
− | '''12 August''' : Implemented the isUpToDate() method for Macro Plugins.
| |
− |
| |
− | '''13 August - 14 August''' : Implemented isUpToDate() method for GitHub Plugins too. Implemented update() plugins method for both the fetch classes.
| |
− |
| |
− | '''15 August - 16 August''' : Adds return statements to methods and update the README for contributors.
| |
− |
| |
− | '''17 August - 20 August''' : Macro version handling in update() method working fine now. Used package "glob".
| |
− |
| |
− | '''21 August - 23 August''' : Adds example usage, adds some more documentation, README. Submitted the Final Evaluation.
| |