Changeset 8336


Ignore:
Timestamp:
13/06/12 13:05:21 (7 years ago)
Author:
mnagni
Message:

Fixed some gui bugs

Location:
mauRepo/MolesManager/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/MolesManager/views/cedacat.py

    r8323 r8336  
    1212 
    1313def cedacat(request, guid): 
    14     ceda_guid = Moles3EPB.search(CedaGUID, guid) 
     14    ceda_guid = request.moles3EPB.search(CedaGUID, guid) 
    1515    if ceda_guid and ceda_guid.ceda_observation: 
    1616        return redirect(cedaObservationView.coView, ceda_guid.ceda_observation) 
  • mauRepo/MolesManager/trunk/src/libs/migration/MigrationEPB.py

    r8333 r8336  
    2121        return None 
    2222         
    23     def createMigrationEPB(self): 
     23    def createEPB(self): 
    2424        return MigrationEPB(self._getSession()) 
    2525         
     
    7171            @param migrationObject: the migration object to look for. If None returns all the DataEntityMigration items 
    7272        """ 
     73        ret = [] 
    7374        if migrationObject: 
    74             ret = self._session.query(DataEntityMigration).filter(*[EPB.buildFilter('doc_name', migrationObject.doc_name)]).first()                
     75            ret.append(self._session.query(DataEntityMigration).filter(*[EPB.buildFilter('doc_name', migrationObject.doc_name)]).first())                
    7576        else: #then process all the DataEntities 
    7677            res = self._session.query(DataEntityMigration).all() 
    77             ret = [] 
    7878            for item in res: 
    7979                ret.append(item)               
  • mauRepo/MolesManager/trunk/src/libs/migration/tests/migrationprocess.py

    r8326 r8336  
    4141        EPBRepo.moles3EPB = moles3Factory.createMoles3EPB()  
    4242        EPBRepo.migrationEPB = migrationFactory.createMigrationEPB() 
    43         EPBRepo.infodbEPB = infoFactory.createMigrationEPB() 
    44  
     43        EPBRepo.infodbEPB = infoFactory.createEPB() 
     44         
     45        ''' 
    4546        lr = LoadResources() 
    4647        ex = lr.process() 
    4748        for e in ex: 
    4849            print e 
     50        ''' 
    4951 
    5052    def testMigrationProcess(self):         
Note: See TracChangeset for help on using the changeset viewer.