wmayer
729cfd8155
py3: fox compiler warnings
...
issue 0000995
2017-06-04 00:17:57 +02:00
wmayer
34db2e4c55
Py3: in Py2 use string instead of unicode for identifier
2017-06-03 10:51:05 +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
looooo
2f467da92a
py3: base: repair compile-fail
2017-05-21 12:35:41 +02:00
Yorik van Havre
d4b7100bb2
py3: Base: files R-Z ported to python3
...
issue 0000995
2017-05-21 12:35:41 +02:00
wmayer
1902adf710
fix crash caused by PR761
2017-05-18 19:44:10 +02:00
Yorik van Havre
0bc16d353b
py3: Base: files I-R ported to python3
...
PyObjectBase.cpp and PyObjectBase.h not included
issue 0000995
2017-05-18 16:00:05 +02:00
looooo
1355495f07
vs 2013 has already version info grater 18
2017-05-17 16:39:28 +02:00
Yorik van Havre
ccebc7d16b
py3: Base: files A-I ported to python3
...
issue 0000995
2017-05-17 16:39:28 +02:00
wmayer
64d7cab373
fix build failure and make Py2/Py3 specific change
2017-05-15 22:36:21 +02:00
wmayer
1d8206acbf
Fix various issues:
...
+ fix dangling pointers when fetching Python error text
+ initialize members in overloaded constructors of Exception class
+ implement assignment operator in sub-class
+ move to PyCXX API to simplify handling with reference counting and reading values from the dict
2017-05-15 18:49:09 +02:00
Zheng, Lei
f14ef7058d
Console: added tag based log support
2017-05-13 17:46:38 +02:00
wmayer
f46e89a1ae
fix -Woverloaded-virtual
2017-05-13 16:46:49 +02:00
wmayer
55173f6b15
remove commented code
2017-05-13 16:09:30 +02:00
wmayer
dc03118b4b
improve whitespaces and reduce code duplication
2017-05-13 16:00:32 +02:00
wmayer
edbc56f48a
remove export macro from template class to fix linker errors on Windows
2017-05-13 15:48:17 +02:00
Abdullah Tahiri
f4c0f0acae
Renaming getPyDict to getPyObject for consistency with BaseClass
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
3a27e2d8ff
Enable exceptions to save/restore information in a python dictionary and enable throwing exception from dictionary information
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
085acfac5e
Exception Factory pre-compiled header
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
053300cfa1
Enable PyException to reconstruct the original exception
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
ea2b6ee945
pytools fix
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
94a22e34de
Extend PyTools to export exception dictionary if present
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
1d6ebb0e40
Exception Factory and producers
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
8884a73b07
Provide default constructors for all exception types
2017-05-13 15:27:57 +02:00
Abdullah Tahiri
82b9eba525
Exception: Extension to access debug information and change of line to int type
2017-05-13 15:27:57 +02:00
wmayer
5d0ce221a3
fix implementation of Module attribute
2017-05-10 11:23:34 +02:00
Abdullah Tahiri
f54d00ce60
Base::Type extension to get Type by key
2017-05-07 16:06:39 +02:00
wmayer
305c63290f
Add addObjects to add multiple objects in one step
2017-05-07 16:06:39 +02:00
Abdullah Tahiri
12d9140e60
Exception: FUNCSIG instead of PRETTY_FUNCTION for Microsoft compiler
2017-05-05 15:15:49 +02:00
Abdullah Tahiri
5cbeb1002e
Base::Exception extension
...
=========================
1. Enable automatic storing of information (function, file, line) when throwing the exception via macro:
Examples:
THROWM(Exception, "BSpline GeoId is out of bounds.")
THROWM(ValueError, "BSpline GeoId is out of bounds.")
THROW(AbortException)
Output:
a) Python Console (what()):
App.ActiveDocument.Sketch004.modifyBSplineKnotMultiplicity(16,3,0)
Traceback (most recent call last):
File "<input>", line 1, in <module>
Base.FreeCADError: FreeCAD exception thrown (BSpline GeoId is out of bounds.)
b) ReportException (report()):
Exception (Thu Apr 27 19:15:24 2017): BSpline GeoId is out of bounds. in bool Sketcher::SketchObject::modifyBSplineKnotMultiplicity(int, int, int) in src/Mod/Sketcher/App/SketchObject.cpp:4102
2. Extend the basic framework so as to allow more control over the mangling of the message introduced by the user, setting the basis to allow, where needed,
to preserve the original message while allowing full legacy behaviour.
3. Supporting FileDialog reporting as legacy
2017-05-03 22:08:10 +02:00
Abdullah Tahiri
c2eea67893
Exception: Add CADKernelError exception for specialized OCC exception propagation to App::DocumentObject
2017-05-03 22:08:10 +02:00
wmayer
fb7094bf31
use specialized exception classes
2017-04-28 18:49:11 +02:00
wmayer
7150e9ab23
replacement for PR 698
2017-04-27 23:05:40 +02:00
wmayer
7f42c31627
fix reference leak
2017-04-27 15:26:46 +02:00
wmayer
8c1aca1fb8
issue #0002996 : PyObjectBase notification chain can lead to unexpected changes to document
2017-04-27 15:09:28 +02:00
wmayer
c526c18b94
fix scan coverity issues: uncaught exception
2017-04-11 14:03:08 +02:00
Ian Rees
8c40bb0ca2
Send console Log/Warning/Error to stderr vs stdout
2017-04-08 14:29:02 +02:00
Ian Rees
c30ce1a62d
Linux/MacOS - only write colour codes to TTYs
...
This prevents the colour codes from showing up in piped output, file
redirects, etc.
2017-04-08 14:29:02 +02:00
Ian Rees
a8eb80ea49
Use colour output from main executable on MacOS
2017-04-08 14:29:02 +02:00
AjinkyaDahale
65342e53e7
Fixed Typos
2017-03-19 18:09:15 -03:00
Bernd Hahnebach
12fd4827d5
Base: add unit for kinematic viscosity
2017-03-18 22:07:24 +01:00
Kunda
de2392eb18
source typo fixes pt5
...
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
Ian Rees
4303384667
Clean up clang inconsistent override warnings.
2017-03-01 22:00:41 +01:00
hgutsche
201c9d89b0
Some fixes for doygen syntax errors and some configuration to make it run smoother under Windows
2017-02-28 18:52:04 +01:00
wmayer
cced2698f9
fix crash due to GIL
2017-02-18 08:19:25 +01:00
wmayer
cdbfee565a
issue #2902 : track attribute objects in parent structure to notify about changes
2017-02-14 16:38:38 +01:00
wmayer
f95587fc7a
issue #0002902 : replace members of PyObjectBase with a PyDictObject
2017-02-14 13:09:09 +01:00
wmayer
d0e6253041
issue #0002902 : PyObjectBase notification chain can lead to unexpected changes to document
2017-02-14 00:32:30 +01:00
wmayer
a7539e2c97
fix various warnings
2017-02-02 20:42:56 +01:00