[Zope3-checkins] CVS: Zope3/src/zope/app/services/translation -
messagecatalog.py:1.11
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Mar 8 07:07:05 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/services/translation
In directory cvs.zope.org:/tmp/cvs-serv13053/src/zope/app/services/translation
Modified Files:
messagecatalog.py
Log Message:
Adjusted code to use the new APIs for permissions and principals. Also, use
the utility service instead of the permission registry to look up permissions.
=== Zope3/src/zope/app/services/translation/messagecatalog.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/services/translation/messagecatalog.py:1.10 Fri Feb 20 17:02:32 2004
+++ Zope3/src/zope/app/services/translation/messagecatalog.py Mon Mar 8 07:06:22 2004
@@ -22,18 +22,19 @@
from persistent import Persistent
from zope.proxy import removeAllProxies
from zope.component.interfaces import IFactory
-from zope.app.security.registries.registeredobject import RegisteredObject
from zope.app.interfaces.services.translation import ILocalMessageCatalog
-class MessageCatalog(RegisteredObject, Persistent):
+class MessageCatalog(Persistent):
implements(ILocalMessageCatalog)
classProvides(IFactory)
def __init__(self, language, domain="default"):
"""Initialize the message catalog"""
- super(MessageCatalog, self).__init__('', '', '')
+ self.id = ''
+ self.title = ''
+ self.description = ''
self._language = language
self._domain = domain
self._messages = OOBTree()
More information about the Zope3-Checkins
mailing list