[Zope3-checkins] CVS: Zope3/src/zope/app - undo.py:1.1.2.2

Fred L. Drake, Jr. fred@zope.com
Tue, 24 Dec 2002 01:34:31 -0500


Update of /cvs-repository/Zope3/src/zope/app
In directory cvs.zope.org:/tmp/cvs-serv14994

Modified Files:
      Tag: NameGeddon-branch
	undo.py 
Log Message:
- fixup imports
- normalize whitespace


=== Zope3/src/zope/app/undo.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/undo.py:1.1.2.1	Mon Dec 23 14:30:56 2002
+++ Zope3/src/zope/app/undo.py	Tue Dec 24 01:34:30 2002
@@ -2,27 +2,30 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """
 
 Revision information:
 $Id$
 """
+from zope.component import getUtility
+from zope.publisher.browser import BrowserView
+from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
 from zope.app.interfaces.undo import IUndoManager
 
 
 class ZODBUndoManager:
     """Implement the basic undo management api for a single ZODB database.
     """
-    
+
     __implements__ =  IUndoManager
 
     def __init__(self, db):
@@ -30,11 +33,11 @@
 
     ############################################################
     # Implementation methods for interface
-    # Zope.App.Undo.IUndoManager.
+    # zope.app.interfaces.undo.IUndoManager.
 
     def getUndoInfo(self):
         '''See interface IUndoManager'''
-        
+
         return self.__db.undoInfo()
 
     def undoTransaction(self, id_list):
@@ -47,35 +50,23 @@
     ############################################################
 
 
-
-
-from zope.component import getUtility
-from zope.publisher.browser import BrowserView
-from Zope.App.PageTemplate import ViewPageTemplateFile
-from zope.app.interfaces.undo import IUndoManager
-
-
 class Undo(BrowserView):
-    " Undo View "
+    """Undo View"""
 
     def __init__(self, *args):
         super(Undo, self).__init__(*args)
         self.utility = getUtility(self.context, IUndoManager)
-        
-    index = ViewPageTemplateFile('undo_log.pt')
 
+    index = ViewPageTemplateFile('undo_log.pt')
 
     def action (self, id_list, REQUEST=None):
         """
         processes undo form and redirects to form again (if possible)
         """
         self.utility.undoTransaction(id_list)
-        
+
         if REQUEST is not None:
             REQUEST.response.redirect('index.html')
-            
-
 
     def getUndoInfo(self):
         return self.utility.getUndoInfo()
-