Changeset 8336 for mauRepo/MolesManager
- Timestamp:
- 13/06/12 13:05:21 (9 years ago)
- Location:
- mauRepo/MolesManager/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/MolesManager/trunk/src/MolesManager/views/cedacat.py
r8323 r8336 12 12 13 13 def cedacat(request, guid): 14 ceda_guid = Moles3EPB.search(CedaGUID, guid)14 ceda_guid = request.moles3EPB.search(CedaGUID, guid) 15 15 if ceda_guid and ceda_guid.ceda_observation: 16 16 return redirect(cedaObservationView.coView, ceda_guid.ceda_observation) -
mauRepo/MolesManager/trunk/src/libs/migration/MigrationEPB.py
r8333 r8336 21 21 return None 22 22 23 def create MigrationEPB(self):23 def createEPB(self): 24 24 return MigrationEPB(self._getSession()) 25 25 … … 71 71 @param migrationObject: the migration object to look for. If None returns all the DataEntityMigration items 72 72 """ 73 ret = [] 73 74 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()) 75 76 else: #then process all the DataEntities 76 77 res = self._session.query(DataEntityMigration).all() 77 ret = []78 78 for item in res: 79 79 ret.append(item) -
mauRepo/MolesManager/trunk/src/libs/migration/tests/migrationprocess.py
r8326 r8336 41 41 EPBRepo.moles3EPB = moles3Factory.createMoles3EPB() 42 42 EPBRepo.migrationEPB = migrationFactory.createMigrationEPB() 43 EPBRepo.infodbEPB = infoFactory.createMigrationEPB() 44 43 EPBRepo.infodbEPB = infoFactory.createEPB() 44 45 ''' 45 46 lr = LoadResources() 46 47 ex = lr.process() 47 48 for e in ex: 48 49 print e 50 ''' 49 51 50 52 def testMigrationProcess(self):
Note: See TracChangeset
for help on using the changeset viewer.