<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.6000.16850" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=667175109-15062009>Hi</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=667175109-15062009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=667175109-15062009>this is my first
post to this group. I hope someone can help me. I have the
following problem using Zope 3.4:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=667175109-15062009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=667175109-15062009>I have created a
simple handler using the @adapter decorator and register it in the local site
manager. The handler works fine but the ZMI tab showing the sites' registrations
crashes with a ComponentLookupError in HandlerRegistration. The message comes
from @@registrations.html and it appears that my handler should have
zope.app.component.browser.registration.ISiteRegistrationDisplay
implemented.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=667175109-15062009>This however,
requires a class. So I created a class with a __call__ method, but I cannot even
get it to work as a global handler... :-(</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=667175109-15062009>Can anyone explain
how to register a handler in the local sitemanager without crashing
the ZMI registrations tab? Even a simple handler in a class using
implements/adapts with ZCML configuration in stead of the usual @adapter
decorator approach would be very helpful.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=667175109-15062009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=667175109-15062009>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=667175109-15062009>Tom</SPAN></FONT></DIV></BODY></HTML>