← Back to team overview

oship-dev team mailing list archive

[Bug 578967] Re: Interface IEvent doesn't have a right reference for the IHistory Interface due a circular reference/import problem.

 

** Changed in: oship
       Status: Fix Committed => Fix Released

-- 
Interface IEvent doesn't have a right reference for the IHistory Interface due a circular reference/import problem.
https://bugs.launchpad.net/bugs/578967
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:
The IEvent class doesn't have a right definition of it's attributes. It has a attribute called parent, intended to express it's relation with the IHistory interface, but the attribute is defined to provide a restriction with a IObjectRef instead. If this restriction is changed to the correct Interface (IHistory), the python interpreter don't find the correct interface, which is declared at the same file. If you put the IHistory interface definition before the IEvent class in order to the python interpreter find it, another error appears: The IHistory has a reference to the IEvent Interface, creating a circular problem.





References