[Zope-dev] Typo in Version.py

Greg Ward gward@mems-exchange.org
Wed, 18 Oct 2000 09:04:40 -0400


Just discovered a missing "%" in Version.py.  I found it in Zope 2.1.6,
but it's still there in the current CVS.  Here's a patch against 2.1.6;
it should apply cleanly to the latest code.  If not, I don't think
you'll have a hard time replicating it manually.  ;-)

--- Version.py.orig     Tue Aug  3 14:57:29 1999
+++ Version.py  Wed Oct 18 08:50:33 2000
@@ -247,7 +247,7 @@
     def manage_beforeDelete(self, item, container):        
         if self.nonempty():
             raise 'Version Error', (
-                'Attempt to %sdelete a non-empty version.<p>'
+                'Attempt to %sdelete a non-empty version.<p>' %
                 ((self is not item) and 'indirectly ' or ''))
         
         try: REQUEST=self.REQUEST


Now if only I could figure out why Zope is trying to raise that
exception on me... (I'm not deleting a version, I'm just renaming
something within a version!)

        Greg
-- 
Greg Ward - software developer                gward@mems-exchange.org
MEMS Exchange / CNRI                           voice: +1-703-262-5376
Reston, Virginia, USA                            fax: +1-703-262-5367