[Zope3-dev] Utility registration errors

Bjorn Tillenius bjoti777 at student.liu.se
Thu Dec 9 13:50:33 EST 2004


On Thu, Dec 09, 2004 at 01:25:11PM -0500, Stephan Richter wrote:
> On Wednesday 08 December 2004 19:07, Roger Ineichen wrote:
> > Many utility get a error during registration.
> >
> > e.g. add a Translation Domain on:
> > http://localhost:8080/++etc++site/default/@@contents.html
> 
> Okay, fixed. It was a stupid typo. BTW, no code should use this widget 
> anymore. I will have to fix the translation domain code to use the 
> UtilityRegistration object directly. Sigh.

I still get an error trying to register a Translation Domain.

  File "/hda4/proj/Zope3/src/zope/tales/expressions.py", line 198, in _eval
    return ob()
  File "/hda4/proj/Zope3/src/zope/app/utility/utility.py", line 117, in
usageSummary
    s += " '%s'"%zapi.name(self.component)
  File "/hda4/proj/Zope3/src/zope/app/traversing/api.py", line 145, in getName
    return IPhysicallyLocatable(obj).getName()
  File "/hda4/proj/Zope3/src/zope/interface/interface.py", line 698, in __call__
    raise TypeError("Could not adapt", obj, self)
TypeError: ('Could not adapt', <object object at 0x4020e4c8>,
<InterfaceClass zope.app.traversing.interfaces.IPhysicallyLocatable>)

Regards,

Bjorn


More information about the Zope3-dev mailing list