Commit Graph

14 Commits

Author SHA1 Message Date
Jonas Bähr
34b176c1db Remove C++ escaping from *Py.xml templates
Now all escaping required for the C++ code generation is done when the
.cpp/.h files are generated. Previously, only newlines were escaped
automatically. This was a) inconsistent and b) leaked c++ details into
the xml data.
In addition, the escaping is now done in one central place, harmonizing
the three previous implementations.

Pre-existing c++ escape sequences in the XML files have been replaced by
their literal equivalent so that the resulting python doc sting remains
unchanged.
2023-08-16 13:17:25 +02:00
Paddle
8f8a799726 Add 'type' to MetadataPy, MetadataPyImp and addonmanager_metadata.py 2023-08-07 10:52:08 -06:00
Chris Hennes
766923a3da App: Add support for in-memory Metadata creation 2023-02-10 12:40:55 -07:00
Chris Hennes
0a95fbb258 App: Add support for <pythonmin> XML tag in metadata 2022-09-26 11:04:42 -05:00
wmayer
87708925e5 App: [skip ci] improve whitespaces 2022-09-24 17:02:23 +02:00
Chris Hennes
ef6aacc318 App: Add support for <date> metadata element 2022-09-22 10:27:47 -05:00
Chris Hennes
53a642db40 Addon Manager: Cleanup 2022-09-09 13:00:11 -05:00
Chris Hennes
9348486a1f Addon Manager: DevMode content implementation 2022-09-09 13:00:10 -05:00
marioalexis
178eaadfc8 App: Improve docstrings in MetadataPy.xml and fix memory leak 2022-06-09 17:48:45 -04: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
7d0e6aa1ac Core: Correct metadata docs 2022-02-27 23:33:07 -06:00
Chris Hennes
e8699b1c45 Core: Add additional Python bindings for Metadata 2022-02-10 15:25:07 -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