[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/ Removed unneeded removeAllProxies calls.

Jim Fulton jim at zope.com
Fri Aug 20 18:14:12 EDT 2004


Log message for revision 27201:
  Removed unneeded removeAllProxies calls.
  


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/form/browser/itemswidgets.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/i18n/messagecatalog.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/form/browser/itemswidgets.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/form/browser/itemswidgets.py	2004-08-20 21:47:26 UTC (rev 27200)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/form/browser/itemswidgets.py	2004-08-20 22:14:11 UTC (rev 27201)
@@ -17,7 +17,6 @@
 """
 from zope.interface import implements
 from zope.i18n import translate
-from zope.proxy import removeAllProxies
 from zope.schema.interfaces import ValidationError, InvalidValue
 from zope.schema.interfaces import ConstraintNotSatisfied, ITitledTokenizedTerm
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/i18n/messagecatalog.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/i18n/messagecatalog.py	2004-08-20 21:47:26 UTC (rev 27200)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/i18n/messagecatalog.py	2004-08-20 22:14:11 UTC (rev 27201)
@@ -20,7 +20,6 @@
 
 from BTrees.OOBTree import OOBTree
 from persistent import Persistent
-from zope.proxy import removeAllProxies
 from zope.component.interfaces import IFactory
 from zope.app.i18n.interfaces import ILocalMessageCatalog
 
@@ -41,11 +40,11 @@
 
     def getMessage(self, id):
         'See IReadMessageCatalog'
-        return removeAllProxies(self._messages[id][0])
+        return self._messages[id][0]
 
     def queryMessage(self, id, default=None):
         'See IReadMessageCatalog'
-        result = removeAllProxies(self._messages.get(id))
+        result = self._messages.get(id)
         if result is not None:
             result = result[0]
         else:
@@ -58,7 +57,7 @@
 
     def getFullMessage(self, msgid):
         'See IWriteMessageCatalog'
-        message = removeAllProxies(self._messages[msgid])
+        message = self._messages[msgid]
         return {'domain'   : self.domain,
                 'language' : self.language,
                 'msgid'    : msgid,



More information about the Zope3-Checkins mailing list