Changeset 8333


Ignore:
Timestamp:
11/06/12 12:26:21 (7 years ago)
Author:
mnagni
Message:

fixed a bug in data_entity loop

Location:
mauRepo/MolesManager/trunk/src/libs/migration
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/libs/migration/MigrationEPB.py

    r8330 r8333  
    7474            ret = self._session.query(DataEntityMigration).filter(*[EPB.buildFilter('doc_name', migrationObject.doc_name)]).first()                
    7575        else: #then process all the DataEntities 
    76             ret = EPB.getAllObjects(DataEntityMigration, self._session)                   
     76            res = self._session.query(DataEntityMigration).all() 
     77            ret = [] 
     78            for item in res: 
     79                ret.append(item)               
    7780        return ret 
    7881      
  • mauRepo/MolesManager/trunk/src/libs/migration/processor/migrationProcess.py

    r8325 r8333  
    3131        """ 
    3232        exs = [] 
    33         data_ents = [] 
    34         data_ents.append(EPBRepo.migrationEPB.getDataEntityMigrationbyPath(dataEntityObject)) 
     33        data_ents = EPBRepo.migrationEPB.getDataEntityMigrationbyPath(dataEntityObject) 
    3534        """ 
    3635        #Does the migrationObject exists? 
     
    4241             
    4342        #loops over the data entities 
    44         for dataEntityMigration in [f for f in data_ents if f != None]:                          
     43        for dataEntityMigration in data_ents:                          
    4544            dep = DataEntityProcessor(dataEntityMigration)             
    4645            exs.extend(dep.process()) 
Note: See TracChangeset for help on using the changeset viewer.