Is there a get_transitive() method like get_transitive_prop()

"John P. Rouillard" <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
Hi all:

As part of https://issues.roundup-tracker.org/issue2551160? I have a
need to to a transitive get operation. For example:

If klass points to the issue class, I can do a:

   klass.get('1', 'creator')

to `get the link to the creator for issue. However If I call:

   klass.get('1', 'creator.address')

I get a KeyError. Is there a:

   klass.get_transitive('1', 'creator.address')

that will get the creator id (let's say 5) from issue1, then walk down
to call:

   klass_user.get('5', 'address')

and return the value?

There is a klass.get_transitive_prop('creator.address)) method that
returns the properly object for the address on the user object.  Also
search supports transitive props.  It seems that there should be code
to do a transitive get somewhere in the code base, but searching for
transitive hasn't turned up any hits.

Thanks.

--
				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.