- SO = None
- try:
- SO = myStudy.FindObjectID(entry)
- except:
- print "invalid entry: ",entry
- SO = None
- if SO != None:
- boo,iorso = myBuilder.FindAttribute(SO,"AttributeIOR")
- if boo == 0:
- print "no IOR attribute on study object: ", entry
- else:
- iorString = iorso.Value()
- print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>iorString =",iorString
- ior = orb.string_to_object(iorString)
+ iorString = entryToIorString(myStudy,entry)
+ if iorString != None:
+ ior = orb.string_to_object(iorString)