[Zope3-checkins] CVS: Zope3/src/zope/app/browser/component - interfacewidget.py:1.24.2.1
Sidnei da Silva
sidnei@x3ng.com.br
Tue, 11 Feb 2003 09:41:58 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/component
In directory cvs.zope.org:/tmp/cvs-serv18615/src/zope/app/browser/component
Modified Files:
Tag: paris-copypasterename-branch
interfacewidget.py
Log Message:
Updating from HEAD to make sure everything still works before merging
=== Zope3/src/zope/app/browser/component/interfacewidget.py 1.24 => 1.24.2.1 ===
--- Zope3/src/zope/app/browser/component/interfacewidget.py:1.24 Mon Feb 3 14:00:21 2003
+++ Zope3/src/zope/app/browser/component/interfacewidget.py Tue Feb 11 09:40:57 2003
@@ -23,6 +23,7 @@
from zope.app.form.widget import Widget
from zope.publisher.browser import BrowserView
from zope.component import getService
+from zope.component.servicenames import Interfaces
from zope.schema.interfaces import ValidationError
from zope.component.exceptions import ComponentLookupError
from xml.sax.saxutils import quoteattr
@@ -70,7 +71,7 @@
search_string = self.request.form.get(search_name, '')
field = self.context
- service = getService(field.context, "Interfaces")
+ service = getService(field.context, Interfaces)
base = field.basetype
include_none = base is None
if base == Interface:
@@ -195,7 +196,7 @@
name_i = name+'.i'
name_search_i = name+'.search.i'
- service = getService(field.context, "Interfaces")
+ service = getService(field.context, Interfaces)
base = field.basetype
include_none = base is None
if base == Interface:
@@ -364,7 +365,7 @@
def nameToInterface(context, name):
if name == 'None':
return None
- service = getService(context, "Interfaces")
+ service = getService(context, Interfaces)
return service.getInterface(name)
def interfaceToName(interface):