View Issue Details

IDProjectCategoryView StatusLast Update
0002814FreeCADGeneralpublic2016-12-21 14:24
Reporterdamian Assigned Toickby  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version0.17 
Fixed in Version0.17 
Summary0002814: getExtension() ?
Descriptionfrom 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 Reproduceadded an extension to an object, the method getExtension doesn't be available in the python console
TagsNo tags attached.
FreeCAD Information

Activities

ickby

2016-12-20 08:42

developer   ~0007534

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.

wmayer

2016-12-21 14:24

administrator   ~0007542

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.

Issue History

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