or specify InstitutionRecord as
{
      1: string REC_ID;
      2: i32 NumROFields;
      3: msgInstitution Institution;
      4: msgCSA CSA;
      5: list<msgROField> ROFields;
}

Thanks, Micheal. The problem I'm running into, is this. Assuming I have the above noted structure... the ROFields list is not set to any object type after I first instantiate the InstitutionRecord. For the 1-cardinality sub-structures (msgInstitution), I I just set the field to an instance of the sub-structure, eg

tObj.Institution = msgInstitution()

However, if I do this:

tObj = InstitutionRecord()
tObj.ROFields.append(msgROField())
tObj.ROFields[0].Name = 'Value 1'
tObj.ROFields[0].Value = 3.14

...Python says that the NoneType does not have an append method on the second line.

Any ideas?  This is Python 2.4.

Thanks!
-Josh

Reply via email to