Skip to content

Commit

Permalink
Deprecated zope.security.trustedRemoveSecurityProxy and
Browse files Browse the repository at this point in the history
zope.security.getProxiedObject. Use zope.security.removeSecurityProxy
instead.  (This should also be used rather than removeAllProxies.)
  • Loading branch information
Jim Fulton committed Aug 20, 2004
1 parent 7a46240 commit 4b5dd6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser/synchronize.py
Expand Up @@ -20,7 +20,7 @@
import xmlrpclib
from base64 import encodestring

from zope.security.proxy import trustedRemoveSecurityProxy
from zope.security.proxy import removeSecurityProxy

from zope.app.i18n.browser import BaseView
from zope.app.i18n import ZopeMessageIDFactory as _
Expand Down Expand Up @@ -122,7 +122,7 @@ def queryMessages(self):

def queryMessageItems(self):
items = self.queryMessages().items()
items = trustedRemoveSecurityProxy(items)
items = removeSecurityProxy(items)
items.sort(lambda x, y: cmp(x[0][0] + x[0][1], y[0][0]+y[0][1]))
return items

Expand Down

0 comments on commit 4b5dd6a

Please sign in to comment.