[Zope3-checkins] CVS: Zope3/src/zope/app/services - adapter.py:1.13

Sidnei da Silva sidnei@x3ng.com
Sat, 29 Mar 2003 14:19:22 -0300


On Sat, Mar 29, 2003 at 08:38:32AM -0500, Stephan Richter wrote:
| On Friday 28 March 2003 19:42, Sidnei da Silva wrote:
| > Log Message:
| > I know that I broke the tests, but Ive sent the patch to the mailing list
| > and none committed the fix, so I did. I dont know how to fix this test.
| 
| Guys,
| 
| I have been looking at this test and try to fix it to help out Sidnei a bit, 
| and I must say that the behavior the test is asking for is a bit tricky.
| 
| I have an object O1 that implements interface I1. if I now ask for 
| queryAdapter(O1(), I1, name="foo") it expects to return the object (according 
| to the test). I am not sure this is correct. I think this should fail, unless 
| no name is passed. What do you think? Once we agree on a behavior, I make the 
| changes accordingly.

In my opinion it should fail. If you ask for a name adapter, you are
being explicit and it should only return the object if it is
registered by that name.

[]'s
-- 
Sidnei da Silva (dreamcatcher) <sidnei@x3ng.com.br>
X3ng Web Technology <http://www.x3ng.com.br>
GNU/Linux user 257852
Debian GNU/Linux 3.0 (Sid) 2.4.18 ppc

C:\> WIN
Bad command or filename

C:\> LOSE
Loading Microsoft Windows ...