>(2) Not sure I totally understand the question. The key of PeakContrib is
>"serial" (a number automatically generated when you create a PeakContrib).
>This is the key relative to the parent. So you can do something like:
>
> peakContrib = peak.findFirstPeakContrib(serial=...)
>
>The full key of an object is found by walking up the tree. So for
>peakContrib it is
>
> (peakContrib.serial,
> peakContrib.peak.serial,
> peakContrib.peak.peakList.serial,
> peakContrib.peak.peakList.dataSource.serial,
> peakContrib.peak.peakList.dataSource.experiment.serial)
>
>(At each level in this example the key is serial, but that's a bit of an
>accident, because there are no "natural" keys for these classes so we use
>"serial" as a substitute.)
>
>
so the conclusion is that the key is a list of serial numbers starting
from the root uniquely identifiying an object? Which can presumabley be
saved as a 'handle' for a future operation where you want to lookup that
object again
regards
gary
--
-------------------------------------------------------------------
Dr Gary Thompson
Astbury Centre for Structural Molecular Biology,
University of Leeds, Astbury Building,
Leeds, LS2 9JT, West-Yorkshire, UK Tel. +44-113-3433024
email: [log in to unmask] Fax +44-113-2331407
-------------------------------------------------------------------
|