[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - module.py:1.2
Jim Fulton
jim@zope.com
Mon, 30 Jun 2003 12:23:54 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv18334/src/zope/app/interfaces/services
Modified Files:
module.py
Log Message:
Added interface for module managers, since they no longer use the same
interface as zodb module managers.
=== Zope3/src/zope/app/interfaces/services/module.py 1.1 => 1.2 ===
--- 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 Mon Jun 30 12:23:54 2003
@@ -19,7 +19,28 @@
$Id$
"""
-from zope.interface import Interface
+from zope.interface import Interface, Attribute
+from zope.schema import Bytes, BytesLine
+
+
+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 = BytesLine(title=u"The module's name.", readonly=True)
+
+ source = Bytes(title=u"The module's source code.")
+
class IModuleService(Interface):
"""Objects that can resolve dotted names to objects