[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Undo - Undo.py:1.1.2.2 undo_log.pt:1.1.2.3

Josh Kutz jkutz@netaid.org
Sun, 24 Mar 2002 13:16:26 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Undo
In directory cvs.zope.org:/tmp/cvs-serv12041

Modified Files:
      Tag: Zope-3x-branch
	Undo.py undo_log.pt 
Log Message:
fixed METAL standard_macro crash, the Undo view needed to have a getContext() method that returned context.
now metal works


=== Zope3/lib/python/Zope/App/Undo/Undo.py 1.1.2.1 => 1.1.2.2 ===
         self.context = context
         self.utility = getUtility(self.context, IUndoManager)
+
+    def getContext(self):
+	return self.context
         
     index = PageTemplateFile('undo_log.pt')
 


=== Zope3/lib/python/Zope/App/Undo/undo_log.pt 1.1.2.2 => 1.1.2.3 ===
-<!-- <html metal:use-macro="views/standard_macros/page"> -->
-<html>
+<html metal:use-macro="views/standard_macros/page">
 
 <head>
 <title>Undo Title</title>
@@ -8,8 +7,7 @@
 </head>
 
 <body>
-<!-- <div metal:fill-slot="body"> -->
-<div>
+<div metal:fill-slot="body">
 
 <form action="action" method="post">