Changeset cc20c2 in indico for indico/MaKaC/common/db.py
- Timestamp:
- 05/18/11 16:54:38 (2 years ago)
- 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
- File:
-
- 1 edited
-
indico/MaKaC/common/db.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/common/db.py
r23945f rcc20c2 132 132 self.abort() 133 133 134 #modification vendredi 010907135 # try:136 # self._conn.close()137 # self._conn=None138 # except:139 # pass140 141 134 self._getConnObject().close() 142 135 self._delConnObject() … … 203 196 204 197 @contextmanager 205 def transaction(self ):198 def transaction(self, sync=False): 206 199 """ 207 200 context manager (`with`) 208 201 """ 202 if sync: 203 self.sync() 209 204 yield 210 205 self.commit()
Note: See TracChangeset
for help on using the changeset viewer.
