[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - module.py:1.1.26.1

Fred L. Drake, Jr. fred@zope.com
Sat, 28 Jun 2003 10:44:35 -0400


Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv6318/src/zope/app/interfaces/services

Modified Files:
      Tag: fdrake-local-modules-branch
	module.py 
Log Message:
Checkpoint: changes to local modules started with Jim on Thursday.
These are not yet ready to land on the trunk.


=== Zope3/src/zope/app/interfaces/services/module.py 1.1 => 1.1.26.1 ===
--- Zope3/src/zope/app/interfaces/services/module.py:1.1	Thu Mar 13 12:10:36 2003
+++ Zope3/src/zope/app/interfaces/services/module.py	Sat Jun 28 10:44:03 2003
@@ -19,7 +19,27 @@
 $Id$
 """
 
-from zope.interface import Interface
+from zope.interface import Interface, Attribute
+
+
+class IModuleManager(Interface):
+    """Content object providing management support for persistent modules."""
+
+    def execute():
+        """Recompile the module source and initialize the module."""
+
+    def getModule():
+        """Return the module object that can be used from Python.
+
+        If the module has not been initialized from the source text,
+        or the source text has changed, the source will be executed by
+        this method.
+        """
+
+    name = Attribute("The module's name.")
+
+    source = Attribute("The module's source code.")
+
 
 class IModuleService(Interface):
     """Objects that can resolve dotted names to objects