Skip to content

Commit

Permalink
Merge c123753 from 2.12 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Dec 12, 2011
1 parent 92c6eaf commit 401b8ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/App/Undo.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class UndoSupport(ExtensionClass.Base):
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):
Expand All @@ -71,15 +71,15 @@ def undoable_transactions(self, first_transaction=None,
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)

Expand Down
4 changes: 0 additions & 4 deletions src/App/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ class IUndoSupport(Interface):

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):
Expand Down

0 comments on commit 401b8ed

Please sign in to comment.