[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - editview.py:1.17
Philipp von Weitershausen
philikon@philikon.de
Wed, 9 Apr 2003 16:52:00 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv3948/browser/form
Modified Files:
editview.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/browser/form/editview.py 1.16 => 1.17 ===
--- Zope3/src/zope/app/browser/form/editview.py:1.16 Wed Mar 26 12:13:14 2003
+++ Zope3/src/zope/app/browser/form/editview.py Wed Apr 9 16:51:29 2003
@@ -29,6 +29,7 @@
from zope.component import queryAdapter
from zope.app.interfaces.form import WidgetsError
+from zope.app.component.metaconfigure import resolveInterface
from zope.app.form.utility import setUpEditWidgets, getWidgetsData
from zope.app.browser.form.submit import Update
from zope.app.event import publish
@@ -190,12 +191,12 @@
def _normalize(_context, schema_, for_, class_, template, default_template,
fields, omit, view=EditView):
- schema = _context.resolve(schema_)
+ schema = resolveInterface(_context, schema_)
if for_ is None:
for_ = schema
else:
- for_ = _context.resolve(for_)
+ for_ = resolveInterface(_context, for_)
if class_ is None:
bases = (view, )