Changeset cc20c2 in indico for indico/MaKaC/common/db.py


Ignore:
Timestamp:
05/18/11 16:54:38 (2 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
234db8
Parents:
e3b051
Message:

[IMP] scheduler - added test for task relocation

  • also removed RB prints;
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/common/db.py

    r23945f rcc20c2  
    132132            self.abort() 
    133133 
    134         #modification vendredi 010907 
    135 #        try: 
    136 #            self._conn.close() 
    137 #            self._conn=None 
    138 #        except: 
    139 #            pass 
    140  
    141134        self._getConnObject().close() 
    142135        self._delConnObject() 
     
    203196 
    204197    @contextmanager 
    205     def transaction(self): 
     198    def transaction(self, sync=False): 
    206199        """ 
    207200        context manager (`with`) 
    208201        """ 
     202        if sync: 
     203            self.sync() 
    209204        yield 
    210205        self.commit() 
Note: See TracChangeset for help on using the changeset viewer.