Changeset 5fcab7 in indico


Ignore:
Timestamp:
04/21/11 15:51:54 (2 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 4287315ec967a3da168d83963c14001db8487d53
Children:
ff7997
Parents:
8ca7fa
Message:

[FIX] BTree persistence - missing updates

  • Caused track coordinator index not to be updated;
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/conference.py

    r7e5a99 r5fcab7  
    1145211452        if not self._idx.has_key( av.getId() ): 
    1145311453            l = [] 
    11454             self._idx[ av.getId() ] = l 
    1145511454        else: 
    11456             l = self._idx[ av.getId() ] 
     11455            l = self._idx[av.getId()] 
    1145711456        if track not in l: 
    11458             l.append( track ) 
     11457            l.append(track) 
     11458            # necessary, otherwise ZODB won't know it needs to update the BTree 
     11459            self._idx[av.getId()] = l 
    1145911460        self.notifyModification() 
    1146011461 
     
    1146511466        if track in l: 
    1146611467            l.remove( track ) 
     11468            self._idx[av.getId()] = l 
    1146711469        self.notifyModification() 
    1146811470 
    1146911471    def notifyModification(self): 
    11470         self._idx._p_changed = 1 
    1147111472        self._p_changed = 1 
    1147211473 
     
    1170311704                    coordination privileges must be granted. 
    1170411705        """ 
     11706 
    1170511707        try: 
    1170611708            if self._coordinators: 
Note: See TracChangeset for help on using the changeset viewer.