oship-dev team mailing list archive
-
oship-dev team
-
Mailing list archive
-
Message #01254
Re: [Bug 608831] Re: some issues in class Event
Parent may be defined as an attribute or a method according to the specifications. In a previous talk with Diego, we decided that we would implement it as a method in OSHIP.
Then we can use the Zope machinery to return for method parent the value of the __parent__ attribute, and set in the class the __parent__ attribute to the correct value at or after the initialization of an object, depending on the context.
----- Mensagem original -----
De: "Wagner Mezaroba" <wagnerfrancisco@xxxxxxxxx>
Para: sergio@xxxxxxxxxxxxxxx
Enviadas: Quinta-feira, 29 de Julho de 2010 21:01:16
Assunto: [Bug 608831] Re: some issues in class Event
I have one question about this bug. How are we going to deal with the
parent attribute? We don't have a parent attribute in the pathable or
locatable classes, so it's not possible just to pass the attribute using
a constructor. Should we set this attribute in each class? Or should we
create this attribute in the Pathable class?
The Event Class Specification defines that we should redefine the parent
attribute to be of History type. So shouldn't we keep the parent
attribute in the Event interface? Just to ensure its type.
-- some issues in class Event
https://bugs.launchpad.net/bugs/608831 You received this bug
notification because you are a direct subscriber
of the bug.
Status in Open Source Health Information Platform (OSHIP): Opinion
Bug description:
Method offset is not implemented. It should return a DvDuration
corresponding to the difference between the value of attribute time and
the value of attribute origin (obtained from the parent History).
There are some arguments missing in its initializer (those inherited
from Locatable). It is also necessary to call the superclass
initializer.
The method parent should be defined in class Pathable, not here. The
same could be said about IEvent interface.
To unsubscribe from this bug, go to:
https://bugs.launchpad.net/oship/+bug/608831/+subscribe
--
some issues in class Event
https://bugs.launchpad.net/bugs/608831
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): Opinion
Bug description:
Method offset is not implemented. It should return a DvDuration corresponding to the difference between the value of attribute time and the value of attribute origin (obtained from the parent History).
There are some arguments missing in its initializer (those inherited from Locatable). It is also necessary to call the superclass initializer.
The method parent should be defined in class Pathable, not here. The same could be said about IEvent interface.
References