Changeset 48289

Show
Ignore:
Timestamp:
08/10/06 20:16:44 (3 years ago)
Author:
ogrisel
Message:

make it possible import roots recursively

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • CPS3/products/CPSDefault/trunk/CHANGES

    r48084 r48289  
    44New features: 
    55~~~~~~~~~~~~~ 
    6 - 
     6- make it possible import roots recursively 
    77Bug fixes: 
    88~~~~~~~~~~ 
  • CPS3/products/CPSDefault/trunk/exportimport.py

    r47548 r48289  
    100100            return 
    101101        importer.filename = filename 
     102        importer.path = importer.name 
    102103        importer.body = body 
    103104 
     
    163164 
    164165            # Placeful configuration for one root (and creates subobjects) 
    165             path = self.name+'/'+id 
     166            path = self.path+'/'+id 
    166167            filename = path+'.xml' 
    167168            body = self.environ.readDataFile(filename) 
     
    176177                if subid.startswith('.'): 
    177178                    importCPSObjects(subob, path+'/', self.environ) 
     179 
     180            # Recursively load sub proxy folders 
     181            filename = path + '/' + self.name +  '.xml' 
     182            body = self.environ.readDataFile(filename) 
     183            if body is not None: 
     184                importer = RootsXMLAdapter(proxy, self.environ) 
     185                importer.path = path + '/' + self.name 
     186                importer.filename = filename # for error reporting 
     187                importer.body = body 
    178188 
    179189