[Zope3-dev] Bug, missing interface and method in zope.app.site.browser.__init__.py

Roger Ineichen r.ineichen at projekt01.ch
Sun May 23 20:20:09 EDT 2004


Good morning

There's a old interface in use at the file:
zope.app.site.browser.__init__.py 
called: 
"IGlobalServiceService"
and also the method "getLocalService()"
is gone.

I run into the problem using "gatherConfiguredServices".

----
Traceback (most recent call last):
  File "C:\projektCompiler\current\src\zope\publisher\publish.py", line 138,
in publish
    result = publication.callObject(request, object)
  File
"C:\projektCompiler\current\src\zope\app\publication\zopepublication.py",
line 153, in callObject
    return mapply(ob, request.getPositionalArguments(), request)
  File "C:\projektCompiler\current\src\zope\publisher\publish.py", line 113,
in mapply
    return debug_call(object, args)
  File "C:\projektCompiler\current\src\zope\publisher\publish.py", line 119,
in debug_call
    return object(*args)
  File
"C:\projektCompiler\current\src\zope\app\pagetemplate\viewpagetemplatefile.p
y", line 68, in __call__
    return self.im_func(self.im_self, **kw)
  File
"C:\projektCompiler\current\src\zope\app\pagetemplate\viewpagetemplatefile.p
y", line 48, in __call__
    return self.pt_render(namespace)
  File "C:\projektCompiler\current\src\zope\pagetemplate\pagetemplate.py",
line 113, in pt_render
    context, output, tal=not source, strictinsert=0)()
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
164, in __call__
    self.interpret(self.program)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
207, in interpret
    handlers[opcode](self, args)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
674, in do_useMacro
    self.interpret(macro)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
207, in interpret
    handlers[opcode](self, args)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
376, in do_optTag_tal
    self.do_optTag(stuff)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
361, in do_optTag
    return self.no_tag(start, program)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
356, in no_tag
    self.interpret(program)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
207, in interpret
    handlers[opcode](self, args)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
611, in do_loop_tal
    self.interpret(block)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
207, in interpret
    handlers[opcode](self, args)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
376, in do_optTag_tal
    self.do_optTag(stuff)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
361, in do_optTag
    return self.no_tag(start, program)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
356, in no_tag
    self.interpret(program)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
207, in interpret
    handlers[opcode](self, args)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
674, in do_useMacro
    self.interpret(macro)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
207, in interpret
    handlers[opcode](self, args)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
374, in do_optTag_tal
    self.no_tag(stuff[-2], stuff[-1])
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
356, in no_tag
    self.interpret(program)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
207, in interpret
    handlers[opcode](self, args)
  File "C:\projektCompiler\current\src\zope\tal\talinterpreter.py", line
426, in do_setLocal_tal
    self.engine.setLocal(name, self.engine.evaluateValue(expr))
  File "C:\projektCompiler\current\src\zope\tales\tales.py", line 693, in
evaluate
    return expression(self)
  File "C:\projektCompiler\current\src\zope\tales\expressions.py", line 207,
in __call__
    return self._eval(econtext)
  File "C:\projektCompiler\current\src\zope\tales\expressions.py", line 194,
in _eval
    ob = self._subexprs[-1](econtext)
  File "C:\projektCompiler\current\src\zope\tales\expressions.py", line 126,
in _eval
    ob = self._traverser(ob, element, econtext)
  File "C:\projektCompiler\current\src\zope\app\pagetemplate\engine.py",
line 46, in zopeTraverser
    request=getattr(econtext, 'request', None))
  File "C:\projektCompiler\current\src\zope\app\traversing\adapters.py",
line 119, in traverse
    curr = traversePathElement(curr, name, path, request=request)
  File "C:\projektCompiler\current\src\zope\app\traversing\adapters.py",
line 172, in traversePathElement
    next_item = traversable.traverse(nm, further_path)
  File "C:\projektCompiler\current\src\zope\app\traversing\adapters.py",
line 50, in traverse
    return r()
  File
"C:\projektCompiler\current\src\tiks\skin\site\browser\servicebox.py", line
39, in listConfiguredServices
    res = gatherConfiguredServices(servicemanager, request)
  File "C:\projektCompiler\current\src\zope\app\site\browser\__init__.py",
line 320, in gatherConfiguredServices
    if IGlobalServiceService.providedBy(sm):
NameError: global name 'IGlobalServiceService' is not defined
----

Regards
Roger Ineichen
_____________________________
END OF MESSAGE




More information about the Zope3-dev mailing list