Hi Daria & Norbert,
For the refactoring of pages we need to know the (direct) parent of
each SW2WikiObject (especially SW2DocumentItem subclasses).
SW2WikiObject has the instance variable owner, but it is not always
I don't see any i-var called owner in my code. I think you are
talking about the empty accessors in SW2WikiObject? These accessors
are implemented in SW2InternalLink, since internal links need to know
their page to do the lookup of the path. So, in this case the owner
is not the parent, but the containing structure.
We thought it would may be of general interest to always have this
attribute. Would it be possible to get this feature?
In my opinion, back-links are generally a bad thing and therefor I
try to avoid them whenever possible. Have a look at the i-var parent
in SW2Structure and SW2Decoration and all the hassle around this.
Back-links duplicate information and it makes several things, such as
copying, more difficlut.
Actually, while traversing a composite with a visitor you have given
all the parent nodes implicilty in the context-stack. I don't suggest
that you are using the context, but to keep the last node in an i-var
or build up a stack of the current path to your visited nodes.