← 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.

 

** Project changed: oship => oshippy

-- 
You received this bug notification because you are a member of OSHIP
Development Team, which is subscribed to Open Source Health Information
Platform.
https://bugs.launchpad.net/bugs/578967

Title:
  Interface IEvent doesn't have a right reference for the IHistory
  Interface due a circular reference/import problem.

Status in Open Source Health Information Platform - Python:
  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