Commit Graph

21 Commits

Author SHA1 Message Date
Michal Ulianko
2e2b8cba6a py3.7 fix
PyUnicode_AsUTF8() returns const char* in py3.7 instead of char*. Making
changes to reflect that which should also be safe in
other Python versions.
2018-09-01 22:44:39 +02:00
wmayer
bf162ebde9 py3: partially revert of getattr -> getattro because getattro is only needed for the static callback function
issue 0000995
2017-06-03 10:51:05 +02:00
looooo
6ad7dc1217 py3: change of getattr -> getattro
issue 0000995
2017-06-03 10:51:05 +02:00
wmayer
b09ea956fc fix possible crash in destructor of FeaturePythonPyT template 2017-01-21 13:25:26 +01:00
wmayer
8edd8cb599 do not allow to delete properties in FeaturePythonPyT 2016-11-10 23:57:41 +01:00
wmayer
bcbff88802 fix regression in FeaturePythonPyT 2016-11-10 21:43:01 +01:00
wmayer
2d20bdecdd use only Python API for FeaturePythonPyT 2016-11-10 13:37:30 +01:00
wmayer
2f16afc641 make FeaturePythonPyT more flexible 2016-11-09 22:02:42 +01:00
wmayer
b5cbaae73a move handling of dynamic properties from FeaturePythonPyT to DocumentObjectPy 2016-11-09 16:09:21 +01:00
wmayer
8ef85c51fa dynamic properties:
+ move addProperty, removeProperty and supportedProperties from FeaturePythonPyT to DocumentObjectPy
2016-11-09 10:35:49 +01:00
wmayer
c636974ec8 fix -Wextra in FreeCADApp 2016-09-21 16:05:36 +02:00
wmayer
3f6b2f18ed fix regression with unicode support 2016-09-08 16:08:01 +02:00
wmayer
23eeb634e5 support of unicode for doc string, fix memory leak 2016-09-07 12:18:57 +02:00
Yorik van Havre
423af68e5a Allow to use an encoded doc string in FeaturePython::addProperty 2016-02-12 20:47:11 -02:00
wmayer
35edaa7e5a + support of Python feature classes without an execute() method
+ if execute() method of Python feature is missing or if it returns false call the execute() method of the C++ feature
+ fix SketchObjectPython
2015-10-21 00:22:40 +02:00
wmayer
922ea13b54 + register python type if its dict doesn't exist 2015-09-25 00:51:38 +02:00
Sebastian Hoogen
d49528b27e issue #1700 replace PyExc_Exception 2014-09-17 11:15:57 +02:00
Sebastian Hoogen
af50cbf964 fixes #0001422: Subclass Exception
inherit Base.FreeCADError form RuntimeError
inherit Part.OCCError from Base.FreeCADError
inherit OCCDomainError from Part.OCCError
inherit OCCRangeError from Part.OCCError
inherit OCCConstructionError from OCCDomainError
inherit OCCDimensionError from OCCDomainError
Added PY_CATCH_OCC macro
replace PyExc_Exception
use FreeCADError in makeWireString
catch exception in BSplineCurve.increasedegree
2014-09-17 11:15:56 +02:00
wmayer
e5c210ab99 Show dynamically added methods in calltips list 2013-03-24 13:29:13 +01:00
wmayer
a27eed1357 Allow to add methods at runtime to FeaturePython objects 2013-03-23 22:09:33 +01:00
wmayer
605e85b952 Make FeaturePython Python binding a template class to avoid code duplication 2013-03-22 00:34:18 +01:00