Ignore:
Timestamp:
11/01/12 17:06:55 (8 years ago)
Author:
mnagni
Message:

settings.py paths are now relative
deployment correctly fill the ResponsiblePartyInfo? (But still not mapped in the DB. Waiting for an updated library)
add a logerror to wsgi.conf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/libs/migration/processor/deployment.py

    r8054 r8059  
    7878 
    7979    def _addResponsiblePartyInfo(self, oldResponsiblePartyInfos, newResponsiblePartyInfo): 
     80        opi = None 
    8081        for oldPartyInfo in oldResponsiblePartyInfos: 
    8182            if oldPartyInfo.role == newResponsiblePartyInfo.role: 
    82                 oldPartyInfo.party.append(newResponsiblePartyInfo.party) 
     83                opi = oldPartyInfo 
     84        if len(oldResponsiblePartyInfos) == 0: 
     85            oldResponsiblePartyInfos.append(newResponsiblePartyInfo) 
     86         
     87        if opi is not None:  
     88            opi.party.append(newResponsiblePartyInfo.party) 
     89         
    8390 
    8491 
Note: See TracChangeset for help on using the changeset viewer.