wmayer
1a20b7f119
App: modernize C++11
...
* use nullptr
2022-03-23 17:29:23 +01:00
wmayer
e4d1ed8366
Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError
2022-03-17 14:45:48 +01:00
wmayer
6e5feb5ccc
App: change base types of some exceptions and raise XML exceptions in MetadataPy::PyInit
2022-03-17 11:43:59 +01:00
Chris Hennes
46cd740269
App: Improve Metadata error handling
...
Report XML parse exception details.
2022-03-13 21:01:47 -05:00
Chris Hennes
4fc8ee56a6
App: Fix Metadata Py constructors
...
Also adds unit tests for the corrected Copy and Default constructors.
2022-03-13 21:01:47 -05:00
wmayer
5fd93b7d3b
Fix several coverity issues:
...
* CID 350617: Dereference after null check
* CID 350585: Out-of-bounds read
* CID 350624: Resource leak
* CID 332701: Uncaught exception
* CID 350642: Uninitialized scalar field
* CID 350590: Uninitialized scalar field
* CID 350629: Uninitialized scalar variable
* CID 350602: Uninitialized scalar variable
* CID 350564: Uninitialized scalar variable
* CID 350548: Uninitialized scalar variable
2022-03-13 12:12:49 +01:00
Chris Hennes
0c85c16932
Core: Support disabling Addon by FreeCAD version
...
If package.xml metadata file exists, it is scanned for FreeCAD version
compatibility before the Addon is loaded. If the Addon specifies that it is
explicitly not compatible with the current version of FreeCAD, the Addon is
not loaded.
2022-03-08 23:19:04 -06:00
Chris Hennes
5c622291c8
Core: Eliminate compiler warnings on Metadata
2022-02-14 12:32:47 -06:00
Chris Hennes
04bff76f1c
Core: Fix metadata compiler warning
2022-02-11 11:15:33 -06:00
Chris Hennes
e8699b1c45
Core: Add additional Python bindings for Metadata
2022-02-10 15:25:07 -06:00
Chris Hennes
2ac7052236
Addon Manager: Add search and display of tags
2022-01-31 15:24:40 -06:00
Chris Hennes
aab7cb408c
Core: Modify metadata Python handling to use dict
...
Rather than trying to use a generic Py::Object and assigning properties
to it, use a Py::Dict object for simple data structures like Url,
Maintainer, and Author.
Update metadata standard to include subdirectory
2021-12-18 20:29:42 -06:00
Chris Hennes
810a1b23a5
[App] Add metadata handling class
2021-05-13 09:08:28 -05:00