[Grok-dev] Adding AJAX with KSS to Grok

Asbjørn E. Andersen asbjorn at hanafjedle.net
Tue Apr 1 09:22:36 EDT 2008


Hi everyone,

Following the "Adding AJAX with KSS to Grok" example on grok.zope.org results in a error
message when clicking the kss'ed div.
Doing client side stuff like alerts seems to be working fine.
I've been trying to debug this error without any luck so far.

Will be trying some more, but any pointers, help or suggestions will be
greatly appreciated ;)

Traceback follows:
------
2008-04-01T15:20:30 ERROR SiteError Exception while rendering view on exception
Traceback (most recent call last):
  File "/home/asbjorn/buildout-eggs/tmp4_FMA5/zope.app.publication-3.4.2-py2.4.egg/zope/app/publication/zopepublication.py", line 335, in handleException
  File "/home/asbjorn/buildout-eggs/tmp-ojLM0/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/http.py", line 769, in setResult
  File "/home/asbjorn/buildout-eggs/tmp5nFLFI/zc.resourcelibrary-1.0.1-py2.4.egg/zc/resourcelibrary/publication.py", line 84, in _implicitResult
  File "/home/asbjorn/buildout-eggs/tmp5nFLFI/zc.resourcelibrary-1.0.1-py2.4.egg/zc/resourcelibrary/publication.py", line 99, in _generateIncludes
  File "/home/asbjorn/buildout-eggs/tmp7CPHzS/zope.traversing-3.5.0a1.dev_r78730-py2.4.egg/zope/traversing/browser/absoluteurl.py", line 61, in __str__
TypeError: There isn't enough context to get URL information. This is probably due to a bug in setting up location information.
Traceback (most recent call last):
  File "threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/asbjorn/buildout-eggs/tmpm1J-oX/zope.app.twisted-3.4.0a1-py2.4.egg/twisted/python/threadpool.py", line 148, in _worker
    
  File "/home/asbjorn/buildout-eggs/tmpm1J-oX/zope.app.twisted-3.4.0a1-py2.4.egg/twisted/python/context.py", line 59, in callWithContext
    
  File "/home/asbjorn/buildout-eggs/tmpm1J-oX/zope.app.twisted-3.4.0a1-py2.4.egg/twisted/python/context.py", line 37, in callWithContext
    
--- <exception caught here> ---
  File "/home/asbjorn/buildout-eggs/tmpm1J-oX/zope.app.twisted-3.4.0a1-py2.4.egg/twisted/web2/wsgi.py", line 198, in run
    
  File "/home/asbjorn/buildout-eggs/zope.app.wsgi-3.4.0-py2.4.egg/zope/app/wsgi/__init__.py", line 54, in __call__
    request = publish(request, handle_errors=handle_errors)
  File "/home/asbjorn/buildout-eggs/tmp-ojLM0/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/publish.py", line 141, in publish
    
  File "/home/asbjorn/buildout-eggs/tmp4_FMA5/zope.app.publication-3.4.2-py2.4.egg/zope/app/publication/zopepublication.py", line 366, in handleException
    
  File "/home/asbjorn/buildout-eggs/tmp-ojLM0/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/http.py", line 839, in handleException
    
  File "/home/asbjorn/buildout-eggs/tmp-ojLM0/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/http.py", line 769, in setResult
    
  File "/home/asbjorn/buildout-eggs/tmp5nFLFI/zc.resourcelibrary-1.0.1-py2.4.egg/zc/resourcelibrary/publication.py", line 84, in _implicitResult
    
  File "/home/asbjorn/buildout-eggs/tmp5nFLFI/zc.resourcelibrary-1.0.1-py2.4.egg/zc/resourcelibrary/publication.py", line 99, in _generateIncludes
    
  File "/home/asbjorn/buildout-eggs/tmp7CPHzS/zope.traversing-3.5.0a1.dev_r78730-py2.4.egg/zope/traversing/browser/absoluteurl.py", line 61, in __str__
    
exceptions.TypeError: There isn't enough context to get URL information. This is probably due to a bug in setting up location information.



More information about the Grok-dev mailing list