Skip to content

Commit

Permalink
Fix #492 save_point utils
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault committed Nov 28, 2013
1 parent 33d4321 commit b9e62a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Products/CMFPlomino/PlominoUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import Missing
import re
import urllib
import transaction

# 3rd party Python
from jsonutil import jsonutil as json
Expand Down Expand Up @@ -506,3 +507,6 @@ def getDatagridRowdata(context, REQUEST):
mapped_field_ids = [f.strip() for f in settings.field_mapping.split(',')]
return mapped_field_ids, rowdata

def save_point():
txn = transaction.get()
txn.savepoint(optimistic=True)
3 changes: 2 additions & 1 deletion Products/CMFPlomino/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ class PlominoCoreUtils:
'is_email',
'urlquote',
'translate',
'SCRIPT_ID_DELIMITER']
'SCRIPT_ID_DELIMITER',
'save_point',]

component.provideUtility(PlominoCoreUtils, interfaces.IPlominoUtils)

Expand Down

0 comments on commit b9e62a3

Please sign in to comment.