[Zope3-checkins] CVS: Zope3/src/zope/app/onlinehelp - metaconfigure.py:1.2

Philipp von Weitershausen philikon@philikon.de
Wed, 9 Apr 2003 16:52:03 -0400


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

Modified Files:
	metaconfigure.py 
Log Message:
* introduced IXMLRepresentable interface for objects representing xml.

* introduced a new ZCML directive to register XML Schemas as interfaces
  by specifying their URI.

* changed the way interfaces are resolved in all configuration directives
  and some other places. Thus, you can now also specify the URI of an
  XML schema instead of a dotted interface name everywhere you are required
  to specify an interface name.


=== Zope3/src/zope/app/onlinehelp/metaconfigure.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/onlinehelp/metaconfigure.py:1.1	Tue Jan  7 07:27:49 2003
+++ Zope3/src/zope/app/onlinehelp/metaconfigure.py	Wed Apr  9 16:51:32 2003
@@ -20,6 +20,7 @@
 """
 import os
 from zope.app.onlinehelp import help
+from zope.app.component.metaconfigure import resolveInterface
 from zope.configuration.action import Action
 
 def register(_context, id, title, parent="", doc_path=None, doc_type="txt",
@@ -30,7 +31,7 @@
     doc_path = _context.path(doc_path)
     doc_path = os.path.normpath(doc_path)
     if for_ is not None:
-        for_ = _context.resolve(for_)
+        for_ = resolveInterface(_context, for_)
     if view is not None:
         view = _context.resolve(view)