[Zope3-checkins] CVS: Zope3/src/zope/app/event - globalservice.py:1.6

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


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

Modified Files:
	globalservice.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/event/globalservice.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/event/globalservice.py:1.5	Wed Mar 26 07:57:48 2003
+++ Zope3/src/zope/app/event/globalservice.py	Wed Apr  9 16:51:31 2003
@@ -27,6 +27,8 @@
 from zope.app.interfaces.event import IEvent, ISubscriber, ISubscribingAware
 from zope.app.interfaces.event import IGlobalSubscribable, IPublisher
 
+from zope.app.component.metaconfigure import resolveInterface
+
 from zope.configuration.action import Action
 
 import logging
@@ -54,7 +56,7 @@
         event_types.append(_context.resolve(event_type_name))
 
     if filter is not None:
-        filter = _context.resolve(filter)
+        filter = resolveInterface(_context, filter)
 
     return [
         Action(