--- a/sobjects/parsers.py Tue Feb 15 23:32:32 2011 +0100
+++ b/sobjects/parsers.py Wed Feb 16 08:40:25 2011 +0100
@@ -56,9 +56,12 @@
DEFAULT_CONVERTERS['Interval'] = convert_interval
# use a cookie enabled opener to use session cookie if any
-from logilab.common import urllib2ext
_OPENER = urllib2.build_opener()
-_OPENER.add_handler(urllib2ext.HTTPGssapiAuthHandler())
+try:
+ from logilab.common import urllib2ext
+ _OPENER.add_handler(urllib2ext.HTTPGssapiAuthHandler())
+except ImportError: # python-kerberos not available
+ pass
_OPENER.add_handler(urllib2.HTTPCookieProcessor(CookieJar()))
def extract_typed_attrs(eschema, stringdict, converters=DEFAULT_CONVERTERS):