[Zope3-checkins] CVS: Zope3/src/zope/app/browser/component/tests -
test_interfacewidget.py:1.23.22.1
Sidnei da Silva
sidnei at x3ng.com.br
Wed Aug 13 10:37:03 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/component/tests
In directory cvs.zope.org:/tmp/cvs-serv28777/src/zope/app/browser/component/tests
Modified Files:
Tag: dreamcatcher-ttwschema-branch
test_interfacewidget.py
Log Message:
__name__-geddon. Use getName for getting the name of interfaces
=== Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py 1.23 => 1.23.22.1 ===
--- Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py:1.23 Tue May 13 13:08:33 2003
+++ Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py Wed Aug 13 09:35:58 2003
@@ -54,9 +54,9 @@
service = InterfaceService()
defineService(Interfaces, IInterfaceService)
serviceManager.provideService(Interfaces, service)
- service.provideInterface(I.__module__+'.'+I.__name__, I)
- service.provideInterface(I2.__module__+'.'+I2.__name__, I2)
- service.provideInterface(I3.__module__+'.'+I3.__name__, I3)
+ service.provideInterface(I.__module__+'.'+I.getName(), I)
+ service.provideInterface(I2.__module__+'.'+I2.getName(), I2)
+ service.provideInterface(I3.__module__+'.'+I3.getName(), I3)
request = TestRequest()
@@ -190,7 +190,7 @@
__name__='TestName',
title=u"This is a test",
required=False,
- constraint=lambda i: not (i.__name__.endswith("2")),
+ constraint=lambda i: not (i.getName().endswith("2")),
)
widget = InterfaceWidget(field, request)
More information about the Zope3-Checkins
mailing list