"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/App/Undo.py" between
Zope-5.1.2.tar.gz and Zope-5.2.tar.gz

About: Zope Z Object Publishing Environment - web application platform used for building content management systems, intranets, portals, and custom applications.

Undo.py  (Zope-5.1.2):Undo.py  (Zope-5.2)
skipping to change at line 112 skipping to change at line 112
""" """
tids = [] tids = []
descriptions = [] descriptions = []
for tid in transaction_info: for tid in transaction_info:
tid = tid.split() tid = tid.split()
if tid: if tid:
tids.append(decode64(tid[0])) tids.append(decode64(tid[0]))
descriptions.append(tid[-1]) descriptions.append(tid[-1])
if tids: if tids:
transaction.get().note("Undo %s" % ' '.join(descriptions)) ts = transaction.get()
ts.note("Undo %s" % ' '.join(descriptions))
self._p_jar.db().undoMultiple(tids) self._p_jar.db().undoMultiple(tids)
try:
ts.commit()
except Exception as exc:
if REQUEST is None:
raise
ts.abort()
error = '{}: {}'.format(exc.__class__.__name__, str(exc))
return self.manage_UndoForm(self, REQUEST,
manage_tabs_message=error,
manage_tabs_type='danger')
if REQUEST is not None: if REQUEST is not None:
REQUEST.RESPONSE.redirect("%s/manage_UndoForm" % REQUEST['URL1']) REQUEST.RESPONSE.redirect("%s/manage_UndoForm" % REQUEST['URL1'])
InitializeClass(UndoSupport) InitializeClass(UndoSupport)
# Blech, need this cause binascii.b2a_base64 is too pickly # Blech, need this cause binascii.b2a_base64 is too pickly
def encode64(s, b2a=binascii.b2a_base64): def encode64(s, b2a=binascii.b2a_base64):
if len(s) < 58: if len(s) < 58:
 End of changes. 2 change blocks. 
1 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)