Changeset 8513


Ignore:
Timestamp:
13/08/12 13:03:11 (7 years ago)
Author:
mnagni
Message:

Incomplete - # 22534: Add versiojn number to the gui page
 http://team.ceda.ac.uk/trac/ceda/ticket/22534

Fixes blocking error on classes initialisation and migration

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

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/cedaMoles/MolesManager/moles3epb.py

    r8503 r8513  
    206206        """ 
    207207        bboxes = [] 
     208        if not hasattr(collection, 'member'): 
     209            return bboxes 
    208210        for member in collection.member: 
    209211            for ge in member.geographicExtent: 
  • mauRepo/MolesManager/trunk/cedaMoles/libs/migration/MigrationEPB.py

    r8512 r8513  
    3737 
    3838    def getAllDeploymentsMigrationByDataEntitySortedByDate(self, dataEntity, deploymentNames): 
    39         return EPB.getAllObjects(DeploymentsMigration, self._session).filter(MigrationObject.doc_name.in_(deploymentNames)).order_by(asc("doc_creation")).all() 
     39        return EPB.getAllObjects(DeploymentsMigration, self._session).filter(DeploymentsMigration.doc_name.in_(deploymentNames)).order_by(asc("doc_creation")).all() 
    4040 
    4141    def _getMigrationObject(self, mo_type, doc_status, doc_owner, doc_name): 
  • mauRepo/MolesManager/trunk/cedaMoles/libs/migration/db/classes.py

    r8488 r8513  
    1717        self.data_ent_id = None     
    1818        self.ceda_observation_coll_id = None 
    19         super(DataEntityMigration, self).__init__(self) 
     19        super(DataEntityMigration, self).__init__() 
    2020 
    2121class DeploymentsMigration(MigrationObject): 
     
    2323        self.depl_id = None 
    2424        self.ceda_observation_id = None         
    25         super(DeploymentsMigration, self).__init__(self) 
     25        super(DeploymentsMigration, self).__init__() 
    2626         
    2727class DeploymentDataMigration(MigrationObject): 
     
    3333        self.ceda_acquisition_id = None 
    3434        self.ceda_project_id = None                                 
    35         super(DeploymentDataMigration, self).__init__(self)            
     35        super(DeploymentDataMigration, self).__init__()            
Note: See TracChangeset for help on using the changeset viewer.