View Issue Details

IDProjectCategoryView StatusLast Update
0002785FreeCADGeneralpublic2016-11-29 16:18
Reporterdamian Assigned Toickby  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSUbuntuOS Version16.04
Product Version0.17 
Fixed in Version0.17 
Summary0002785: hasExtension() always false
DescriptionAfter applying an Extension to a Document Object, the request hasExtension() always return false.
Steps To Reproduceclass MyExtension():
    def __init__(self,obj):
    obj.addExtension("App::GroupExtensionPython",self)
doc=App.newDocument()
obj=doc.addObject("App::DocumentObject","myObj")
MyExtension(obj)
obj.hasExtension("App::GroupExtensionPython")
Additional InformationApp/ExtensionContainerPyImp.cpp line 156 to 158

if (getExtensionContainerPtr()->hasExtension(extension)) {
        val = true;
    }

App/ExtensionContainer.cpp line 74

 bool found = _extensions.find(t) != _extensions.end();

always return false
TagsNo tags attached.
FreeCAD Information

Issue History

Date Modified Username Field Change
2016-11-19 13:43 damian New Issue
2016-11-19 15:41 wmayer Assigned To => ickby
2016-11-19 15:41 wmayer Status new => assigned
2016-11-29 14:19 ickby Note Added: 0007499
2016-11-29 14:19 ickby Status assigned => resolved
2016-11-29 14:19 ickby Resolution open => fixed
2016-11-29 16:18 wmayer Status resolved => closed
2016-11-29 16:18 wmayer Fixed in Version => 0.17