Changeset 1992 for TI02-CSML


Ignore:
Timestamp:
11/01/07 16:41:05 (13 years ago)
Author:
domlowe
Message:

Attempt to fix problem with bounding box, but this may break other things so may need to roll back to revision 1964 if it does..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/csml2Moles/molesReadWrite.py

    r1915 r1992  
    3737                        if subelem.tag=='{http://www.w3.org/2001/XMLSchema}sequence': 
    3838                            __addSequence(molesclassname,subelem) 
     39                            for subsubelem in subelem[:]: 
     40                                if subsubelem.tag=='{http://www.w3.org/2001/XMLSchema}sequence': 
     41                                    __addSequence(molesclassname,subsubelem) 
    3942            if elem.tag == '{http://www.w3.org/2001/XMLSchema}element': 
    4043                '''Look for parents of complex types - sometimes a complexType is declared but does not have a name and 
     
    6972        try: 
    7073            order=self.sequences[classname] 
     74            print classname 
     75            print order 
    7176        except KeyError: 
     77            print 'keyerror %s!'%classname 
    7278            order = [] 
    7379            for key in dict: 
     
    123129            self.schema=None 
    124130        orderedAttribs=schema.lookupOrder(self.__dict__,molesFrag.tag) 
    125         print self.__dict__ 
    126131        for item in orderedAttribs: 
    127132           if hasattr(self, item): 
Note: See TracChangeset for help on using the changeset viewer.