← Back to team overview

oship-dev team mailing list archive

[Bug 608831] Re: some issues in class Event

 

Please note that Pathable inherits from grok.Model.  Which inherits from
Contained.

class Contained(object):
    """Stupid mix-in that defines `__parent__` and `__name__` attributes"""
    zope.interface.implements(IContained)

    __parent__ = __name__ = None


This gives us the hook into the zope traversal machinery.

So parent in Pathable used to be assigned to __parent__  and name to
__name__

But I see that someone has remove them.

?????

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