View Issue Details

IDProjectCategoryView StatusLast Update
0002785FreeCAD[All Projects] Generalpublic2016-11-29 16:18
ReporterdamianAssigned Toickby 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSUbuntuOS Version16.04
Product Version0.17 
Target VersionFixed 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.

Activities

ickby

2016-11-29 14:19

developer   ~0007499

fixed with https://github.com/FreeCAD/FreeCAD/commit/ddc9d9cf5d2f3399903733cdefbdff41636c2628

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