Ignore:
Timestamp:
13/08/12 14:16:15 (8 years ago)
Author:
mnagni
Message:

Incomplete - # 22534: Add versiojn number to the gui page
 http://team.ceda.ac.uk/trac/ceda/ticket/22534
Correct party_indexes definition (from now on, ON DELETE = cascade)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/cedaMoles/MolesManager/db/partyIndexes.py

    r8486 r8514  
    6363    ''' 
    6464    party_indexes_table = Table('party_indexes', metadata, \ 
    65                        Column('id', Integer, ForeignKey('mo_responsiblepartyinfo.id'), \ 
     65                       Column('id', Integer, ForeignKey('mo_responsiblepartyinfo.id', \ 
     66                                                        ondelete="CASCADE"), \ 
    6667                              primary_key=True, unique=True), 
    6768                       Column('party_orders', String)) 
     
    132133        the partyID:orderIndex         
    133134    """ 
    134     if partyIndex is None: 
     135    if partyIndex is None or partyIndex.party_orders is None or len(partyIndex.party_orders) == 0: 
    135136        return 
    136137    pi = dict((x.split(':')[0], x.split(':')[1]) for x in partyIndex.party_orders.split(',')) 
Note: See TracChangeset for help on using the changeset viewer.