← Back to team overview

oship-dev team mailing list archive

Parameters of constructors in datastructure.py

 

Hi all,

I am too a bit confused by parameters of constructors of some classes
in datastructure.py. Its related to the Wagner's question, but in a
different aspect.

Classes Item, ItemStructure, Cluster, Element, ItemTree have a whole
set of parameters that are not described in the specification

Example:

class ItemTree:
...
def __init__(self, uid, atnodeid, name, atdetails, fdraudit, links, parent):
        DataStructure.__init__(self, uid, atnodeid, name, atdetails,
                               fdraudit, links, parent)
...

Why do they have all of those parameters? I could not discern their
purpose in the way they were made.


Another question:

To implement to asHierarchy() method, present in many classes, I have
to use the Cluster class, so it have to go "up" in the file, before
some other classes. But by doing this, the code breaks, because the
ICluster class itself needs other, more "down" in the code class.

Diego, perhaps you can point to me a direction and some advice on how
you solved the "circular dependency" concerning the History class.



Follow ups