View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002814 | FreeCAD | General | public | 2016-12-06 10:31 | 2016-12-21 14:24 |
| Reporter | damian | Assigned To | ickby | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 0.17 | ||||
| Fixed in Version | 0.17 | ||||
| Summary | 0002814: getExtension() ? | ||||
| Description | from ExtensionContainer.h "The default workflow is to query if an extension exists and then get the extension obejct." is the method getExtension forgotten in ExtensionContainerPyImp.cpp ??? Thank you | ||||
| Steps To Reproduce | added an extension to an object, the method getExtension doesn't be available in the python console | ||||
| Tags | No tags attached. | ||||
| FreeCAD Information | |||||
|
|
This was done intentionally. In python, all properties and methods are added to the class itself. Hence there is no need to get the extension object, as the extended one has everything the extension has. I intended the workflow in python to be 1. check with hasExtension, if a certain interface exists 2. simply use the interface on the extended object If this is too unintuitive we could change that, but I don't really see any benefits. |
|
|
I think this was more a question and should have better been discussed in the forum first. So, I will close the ticket for now. If for any reason things need to be change this ticket can be reopened. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2016-12-06 10:31 | damian | New Issue | |
| 2016-12-18 21:14 | wmayer | Assigned To | => ickby |
| 2016-12-18 21:14 | wmayer | Status | new => assigned |
| 2016-12-20 08:42 | ickby | Note Added: 0007534 | |
| 2016-12-21 14:24 | wmayer | Note Added: 0007542 | |
| 2016-12-21 14:24 | wmayer | Status | assigned => closed |
| 2016-12-21 14:24 | wmayer | Resolution | open => no change required |
| 2016-12-21 14:24 | wmayer | Fixed in Version | => 0.17 |
FreeCAD