[Grok-dev] megrok.form/megrok.kss/grok 0.13
Kenneth Miller
xkenneth at gmail.com
Sun Jun 29 16:01:29 EDT 2008
All,
I've got a few issues I'd like to discuss here:
megrok.kss and megrok.form on grok 0.13
Both of these modules seem to be broken, they're trying to call the
grok.util function get_default_permission(**) which no longer exists.
megrok.kss on grok.12.1 WITH megrok.form:
I've noticed that when I included megrok.form into my setup.py/
configure.zcml, that my KSS functionality would break, resulting in an
error similar to the one at the bottom of the page. Now what I nailed
it down to as I started stripping megrok.form away, is the inclusion
of zc.resourcelibrary. I noticed megrok.kss behaves differently when
zc.resourcelibrary is included (once again see the error below.) I
tried debugging the error myself (I have very little zope experience)
so I set a pdb.set_trace() inside the function just before it threw an
exception to see what was causing it. Now the interesting part here is
that when I removed zc.resourcelibrary, grok still called it for other
functions, but when handling KSS commands, it no longer used anything
from that package. The function in absoluteurl.py seems to be where
are all the problems are occuring.
Can anyone see if they can get both of these working under grok
0.12.1, or can we get them both running on grok 0.13? In order to
duplicate this all you need to do is setup a project following the
basic AJAX/KSS tutorial, and then add megrok.form to your setup.py and
configure.zcml. Then whenever you try and execute any KSS action, it
should barf.
Regards,
Ken
Here's the error:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
lib/python2.4/threading.py", line 422, in run
self.__target(*self.__args, **self.__kwargs)
File "/Users/xkenneth/buildout-eggs/tmp-XG445/
zope.app.twisted-3.4.0a1-py2.4.egg/twisted/python/threadpool.py", line
148, in _worker
File "/Users/xkenneth/buildout-eggs/tmp-XG445/
zope.app.twisted-3.4.0a1-py2.4.egg/twisted/python/context.py", line
59, in callWithContext
File "/Users/xkenneth/buildout-eggs/tmp-XG445/
zope.app.twisted-3.4.0a1-py2.4.egg/twisted/python/context.py", line
37, in callWithContext
--- <exception caught here> ---
File "/Users/xkenneth/buildout-eggs/tmp-XG445/
zope.app.twisted-3.4.0a1-py2.4.egg/twisted/web2/wsgi.py", line 198, in
run
File "/Users/xkenneth/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 "/Users/xkenneth/buildout-eggs/tmpZfe7J2/
zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/
publish.py", line 141, in publish
File "/Users/xkenneth/buildout-eggs/tmpcjdw-t/
zope.app.publication-3.4.2-py2.4.egg/zope/app/publication/
zopepublication.py", line 366, in handleException
File "/Users/xkenneth/buildout-eggs/tmpZfe7J2/
zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/http.py",
line 839, in handleException
File "/Users/xkenneth/buildout-eggs/tmpZfe7J2/
zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/http.py",
line 769, in setResult
File "/Users/xkenneth/buildout-eggs/tmpgaxL50/
zc.resourcelibrary-1.0.1-py2.4.egg/zc/resourcelibrary/publication.py",
line 84, in _implicitResult
File "/Users/xkenneth/buildout-eggs/tmpgaxL50/
zc.resourcelibrary-1.0.1-py2.4.egg/zc/resourcelibrary/publication.py",
line 99, in _generateIncludes
File "/Users/xkenneth/buildout-eggs/
zope.traversing-3.5.0a1.dev_r78730-py2.4.egg/zope/traversing/browser/
absoluteurl.py", line 62, in __str__
raise TypeError(_insufficientContext)
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