[Zope-Checkins] SVN: Zope/trunk/src/App/ Merge c123753 from 2.12 branch
Hanno Schlichting
hannosch at hannosch.eu
Mon Dec 12 13:28:52 UTC 2011
Log message for revision 123755:
Merge c123753 from 2.12 branch
Changed:
U Zope/trunk/src/App/Undo.py
U Zope/trunk/src/App/interfaces.py
-=-
Modified: Zope/trunk/src/App/Undo.py
===================================================================
--- Zope/trunk/src/App/Undo.py 2011-12-12 13:27:42 UTC (rev 123754)
+++ Zope/trunk/src/App/Undo.py 2011-12-12 13:28:51 UTC (rev 123755)
@@ -47,7 +47,7 @@
last_transaction=20,
)
- def get_request_var_or_attr(self, name, default):
+ def _get_request_var_or_attr(self, name, default):
if hasattr(self, 'REQUEST'):
REQUEST=self.REQUEST
if REQUEST.has_key(name):
@@ -71,15 +71,15 @@
PrincipiaUndoBatchSize=None):
if first_transaction is None:
- first_transaction = self.get_request_var_or_attr(
+ first_transaction = self._get_request_var_or_attr(
'first_transaction', 0)
if PrincipiaUndoBatchSize is None:
- PrincipiaUndoBatchSize = self.get_request_var_or_attr(
+ PrincipiaUndoBatchSize = self._get_request_var_or_attr(
'PrincipiaUndoBatchSize', 20)
if last_transaction is None:
- last_transaction = self.get_request_var_or_attr(
+ last_transaction = self._get_request_var_or_attr(
'last_transaction',
first_transaction+PrincipiaUndoBatchSize)
Modified: Zope/trunk/src/App/interfaces.py
===================================================================
--- Zope/trunk/src/App/interfaces.py 2011-12-12 13:27:42 UTC (rev 123754)
+++ Zope/trunk/src/App/interfaces.py 2011-12-12 13:28:51 UTC (rev 123755)
@@ -45,10 +45,6 @@
manage_UndoForm = Attribute("""Manage Undo form""")
- def get_request_var_or_attr(name, default):
- """
- """
-
def undoable_transactions(first_transaction=None,
last_transaction=None,
PrincipiaUndoBatchSize=None):
More information about the Zope-Checkins
mailing list