Changeset 8353


Ignore:
Timestamp:
16/06/12 10:39:40 (7 years ago)
Author:
mnagni
Message:

Removed the whole migration folder (was from the cedaManager project)

Location:
mauRepo/HPFos/trunk/src
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/HPFos/trunk/src/HPFos/moles3epb.py

    r8348 r8353  
    55''' 
    66from libs.epb import EPB 
    7 from libs.migration.exception.exceptions import NoDBManager 
    87from ea_model.ceda_metadatamodel.ceda_observationcollection.ceda_observationcollection import CEDA_ObservationCollection 
    98from ea_model.ceda_metadatamodel.ceda_observation.ceda_observation import CEDA_Observation 
  • mauRepo/HPFos/trunk/src/HPFos/osImpl/myimpl.py

    r8352 r8353  
    229229        lastResult = firstResult + step 
    230230 
    231         if startPage > 1 and (firstResult + startPage*step) <= len(results): 
    232             firstResult = firstResult + startPage*step 
     231        if startPage > 1 and (firstResult + (startPage - 1)*step) <= len(results): 
     232            firstResult = firstResult + (startPage - 1)*step 
    233233            if firstResult + step <= len(results):             
    234234                lastResult = firstResult + step 
  • mauRepo/HPFos/trunk/src/HPFos/testepb.py

    r8348 r8353  
    55''' 
    66from libs.epb import EPB 
    7 from libs.migration.exception.exceptions import NoDBManager 
    87from ea_model.ceda_metadatamodel.ceda_observationcollection.ceda_observationcollection import CEDA_ObservationCollection 
    98from ea_model.ceda_metadatamodel.ceda_observation.ceda_observation import CEDA_Observation 
  • mauRepo/HPFos/trunk/src/libs/commons_db.py

    r8346 r8353  
    8585        return self._connection.execute(t) 
    8686 
     87class NoDBManager(Exception): 
     88    def __init__(self, value): 
     89        self.value = value 
     90    def __str__(self): 
     91        return "No DBManager has been set for %s" % (self.value)   
     92 
    8793def doInsertOrUpdate(items, session, update = True): 
    8894    if update: 
Note: See TracChangeset for help on using the changeset viewer.