[sobjects/parsers] add gssapi auth handler to urllib2 opener
applied patch gssapiauth.diff
--- a/__pkginfo__.py Mon Feb 14 17:47:15 2011 +0100
+++ b/__pkginfo__.py Tue Feb 15 23:32:32 2011 +0100
@@ -40,7 +40,7 @@
]
__depends__ = {
- 'logilab-common': '>= 0.54.0',
+ 'logilab-common': '>= 0.55.0',
'logilab-mtconverter': '>= 0.8.0',
'rql': '>= 0.28.0',
'yams': '>= 0.30.4',
--- a/debian/control Mon Feb 14 17:47:15 2011 +0100
+++ b/debian/control Tue Feb 15 23:32:32 2011 +0100
@@ -97,7 +97,7 @@
Package: cubicweb-common
Architecture: all
XB-Python-Version: ${python:Versions}
-Depends: ${misc:Depends}, ${python:Depends}, graphviz, gettext, python-logilab-mtconverter (>= 0.8.0), python-logilab-common (>= 0.54.0), python-yams (>= 0.30.4), python-rql (>= 0.28.0), python-lxml
+Depends: ${misc:Depends}, ${python:Depends}, graphviz, gettext, python-logilab-mtconverter (>= 0.8.0), python-logilab-common (>= 0.55.0), python-yams (>= 0.30.4), python-rql (>= 0.28.0), python-lxml
Recommends: python-simpletal (>= 4.0), python-crypto
Conflicts: cubicweb-core
Replaces: cubicweb-core
--- a/sobjects/parsers.py Mon Feb 14 17:47:15 2011 +0100
+++ b/sobjects/parsers.py Tue Feb 15 23:32:32 2011 +0100
@@ -56,7 +56,10 @@
DEFAULT_CONVERTERS['Interval'] = convert_interval
# use a cookie enabled opener to use session cookie if any
-_OPENER = urllib2.build_opener(urllib2.HTTPCookieProcessor(CookieJar()))
+from logilab.common import urllib2ext
+_OPENER = urllib2.build_opener()
+_OPENER.add_handler(urllib2ext.HTTPGssapiAuthHandler())
+_OPENER.add_handler(urllib2.HTTPCookieProcessor(CookieJar()))
def extract_typed_attrs(eschema, stringdict, converters=DEFAULT_CONVERTERS):
typeddict = {}