[Zope3-checkins] SVN: Zope3/trunk/src/optionstorage/browser/__init__.py Some rather arbitrary hacking to make this work again; NotFoundError

Martijn Faassen faassen at infrae.com
Thu Apr 27 08:17:32 EDT 2006


Log message for revision 67638:
  Some rather arbitrary hacking to make this work again; NotFoundError
  is gone now in Zope.
  

Changed:
  U   Zope3/trunk/src/optionstorage/browser/__init__.py

-=-
Modified: Zope3/trunk/src/optionstorage/browser/__init__.py
===================================================================
--- Zope3/trunk/src/optionstorage/browser/__init__.py	2006-04-27 12:15:56 UTC (rev 67637)
+++ Zope3/trunk/src/optionstorage/browser/__init__.py	2006-04-27 12:17:28 UTC (rev 67638)
@@ -4,19 +4,13 @@
 from optionstorage.interfaces import IOptionStorage
 from optionstorage import OptionDict
 
-# BBB: Can be removed in 3.3
-zope.deprecation.__show__.off()
-from zope.exceptions import NotFoundError
-zope.deprecation.__show__.on()
-
 def checkFields(request, *fields):
     for field in fields:
         if field not in request:
             return False
     return True
 
-class StorageNameNotFoundError(NotFoundError):
-    # BBB: Can be Remove in 3.3
+class StorageNameNotFoundError(LookupError):
     pass
 
 class OptionStorageView(object):
@@ -52,7 +46,7 @@
                 self.topic = topic
                 break
         else:
-            raise StorageNameNotFoundError(self.context, name, self.request)
+            raise StorageNameNotFoundError
 
         form = self.request.form
         if "SAVE" not in form:



More information about the Zope3-Checkins mailing list