[Zope3-checkins] CVS: Zope3/src/zope/app/interpreter - __init__.py:1.3

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Mar 2 10:49:46 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/interpreter
In directory cvs.zope.org:/tmp/cvs-serv5602/src/zope/app/interpreter

Modified Files:
	__init__.py 
Log Message:


Removed service implementation.




=== Zope3/src/zope/app/interpreter/__init__.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interpreter/__init__.py:1.2	Thu Aug 21 10:19:24 2003
+++ Zope3/src/zope/app/interpreter/__init__.py	Tue Mar  2 10:49:15 2004
@@ -1,46 +1 @@
-##############################################################################
-#
-# Copyright (c) 2002 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Code Interpreters Service
-
-$Id$
-"""
-from zope.app.interfaces.interpreter import \
-     IGlobalInterpreterService, IInterpreter
-from zope.interface import implements
-
-
-class GlobalInterpreterService:
-
-    implements(IGlobalInterpreterService)
-
-    def __init__(self):
-        self.__registry = {}
-
-    def getInterpreter(self, type):
-        """See zope.app.interfaces.IInterpreterService"""
-        return self.__registry[type]
-
-    def queryInterpreter(self, type, default=None):
-        """See zope.app.interfaces.IInterpreterService"""
-        return self.__registry.get(type, default)
-
-    def provideInterpreter(self, type, interpreter):
-        """See zope.app.interfaces.IGlobalInterpreterService"""
-        assert IInterpreter.isImplementedBy(interpreter)
-        self.__registry[type] = interpreter
-        
-
-interpreterService = GlobalInterpreterService()
-provideInterpreter = interpreterService.provideInterpreter
-_clear = interpreterService.__init__
+# Interpreter Package




More information about the Zope3-Checkins mailing list