Changeset 8476


Ignore:
Timestamp:
27/07/12 16:22:24 (7 years ago)
Author:
mnagni
Message:

Implemented the core cedaObject_to_adapter.
At this moment only MO_ResponsiblePartyInfo and MO_party are fully implemented.
Many unittest have been added to the implementation, however it should still be tested against the database

Added a Sphinx documentation folder

Location:
mauRepo/MolesManager/trunk
Files:
36 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/MolesManager/forms/date.py

    r8088 r8476  
    2424     
    2525def methodsWithDecorator(cls, decoratorName): 
     26    if type(cls).__name__ == 'type' or type(cls).__name__ == 'instancemetho': 
     27        return  
    2628    sourcelines = inspect.getsourcelines(cls)[0] 
    2729    for i,line in enumerate(sourcelines): 
  • mauRepo/MolesManager/trunk/src/MolesManager/moles3epb.py

    r8474 r8476  
    299299        return observations 
    300300 
    301     def search(self, clazz, inst_id): 
     301    def search(self, clazz, inst_id = None): 
    302302        ret = EPB.search(clazz, inst_id, self._session) 
    303303        return ret 
  • mauRepo/MolesManager/trunk/src/libs/migration/MigrationEPB.py

    r8460 r8476  
    4141        """       
    4242        EPB.persistInstance(instance, self._session) 
    43         #return ret 
    4443 
    4544    def getAllDeploymentsMigrationByDataEntitySortedByDate(self, dataEntity, deploymentNames): 
    4645        return EPB.getAllObjects(DeploymentsMigration, self._session).filter(DeploymentsMigration.doc_name.in_(deploymentNames)).order_by(asc("doc_creation")).all() 
    47         #return EPB.getAllObjects(DeploymentsMigration, intSession).filter(*[EPB.buildFilter('doc_owner', dataEntity.doc_owner)]).filter(DeploymentsMigration.doc_name.in_(deploymentNames)).order_by(asc("doc_creation"))         
    48         #return EPB.getAllObjects(DeploymentsMigration, intSession).filter(*[EPB.buildFilter('doc_status', dataEntity.doc_status)]).filter(*[EPB.buildFilter('doc_owner', dataEntity.doc_owner)]).filter(DeploymentsMigration.doc_name.in_(deploymentNames)).order_by(asc("doc_creation")) 
    4946 
    5047    def _getMigrationObject(self, mo_type, doc_status, doc_owner, doc_name): 
    5148        return self._session.query(mo_type).filter(*[EPB.buildFilter('doc_name', doc_name)]).first() 
    52         #return intSession.query(mo_type).filter(*[EPB.buildFilter('doc_owner', doc_owner)]).filter(*[EPB.buildFilter('doc_name', doc_name)]).first()         
    53         #return intSession.query(mo_type).filter(*[EPB.buildFilter('doc_status', doc_status)]).filter(*[EPB.buildFilter('doc_owner', doc_owner)]).filter(*[EPB.buildFilter('doc_name', doc_name)]).first() 
    5449 
    5550    def _getMigrationObjectByName(self, mo_type, migrationObject, doc_name): 
  • mauRepo/MolesManager/trunk/src/libs/migration/processor/deployment.py

    r8460 r8476  
    634634            DeploymentProcessor.log.info("GUID for this Observation: %s" % (ceda_guid.id)) 
    635635 
    636  
    637636        if not self._deploymentHasBeenProcessed:                 
    638637            deploymentDataProcessor = DeploymentDataProcessor(self._deploymentMigration, self.epbRepo)                 
     
    640639            project = deploymentDataProcessor.createProject()  
    641640            self.epbRepo.moles3EPB.updateCedaObject(ceda_observation, {'procedure': procedure, 'inSupportOf': project}) 
     641 
    642642 
    643643        #Still have to update observation.procedure 
Note: See TracChangeset for help on using the changeset viewer.