oship-dev team mailing list archive
-
oship-dev team
-
Mailing list archive
-
Message #01244
[Bug 603694] Re: Method hasExtension in UidBasedId seems to be not correctly implemented.
** Changed in: oship
Status: New => Fix Released
--
Method hasExtension in UidBasedId seems to be not correctly implemented.
https://bugs.launchpad.net/bugs/603694
You received this bug notification because you are a member of OSHIP
Development Team, which is subscribed to Open Source Health Information
Platform.
Status in Open Source Health Information Platform (OSHIP): Fix Released
Bug description:
As it is now, _hasExtension receives true in the initialization of org.openehr.rm.support.identification and eventually only changes its value if method extension is called. This way when _hasExtension is called without a call to extension before, it may return the wrong value.
My suggestion is to remove the line self._hasExtension = True in the initializer and implement the method hasExtension according to the suggestion in bug 603688.
References