Hello community, here is the log from the commit of package python-ldap for openSUSE:Factory checked in at 2016-11-18 22:03:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ldap (Old) and /work/SRC/openSUSE:Factory/.python-ldap.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ldap" Changes: -------- --- /work/SRC/openSUSE:Factory/python-ldap/python-ldap.changes 2016-08-12 15:42:27.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-ldap.new/python-ldap.changes 2016-11-18 22:04:00.000000000 +0100 @@ -1,0 +2,5 @@ +Fri Nov 18 07:05:01 UTC 2016 - [email protected] + +- Update to upstream release 2.4.28 + +------------------------------------------------------------------- Old: ---- python-ldap-2.4.27.tar.gz New: ---- python-ldap-2.4.28.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ldap.spec ++++++ --- /var/tmp/diff_new_pack.3FUTpj/_old 2016-11-18 22:04:01.000000000 +0100 +++ /var/tmp/diff_new_pack.3FUTpj/_new 2016-11-18 22:04:01.000000000 +0100 @@ -17,7 +17,7 @@ Name: python-ldap -Version: 2.4.27 +Version: 2.4.28 Release: 0 Summary: Python LDAP interface License: Python-2.0 ++++++ python-ldap-2.4.27.tar.gz -> python-ldap-2.4.28.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.27/CHANGES new/python-ldap-2.4.28/CHANGES --- old/python-ldap-2.4.27/CHANGES 2016-08-01 12:15:45.000000000 +0200 +++ new/python-ldap-2.4.28/CHANGES 2016-11-18 08:03:34.000000000 +0100 @@ -1,4 +1,18 @@ ---------------------------------------------------------------- +Released 2.4.28 2016-11-17 + +Changes since 2.4.27: + +Lib/ +* LDAPObject.unbind_ext_s() invokes LDAPObject._trace_file.flush() + only if LDAPObject._trace_level is non-zero and Python is running + in debug mode +* LDAPObject.unbind_ext_s() now ignores AttributeError + in case LDAPObject._trace_file has no flush() method +* added dummy method ldap.logger.logging_file_class.flush() because + LDAPObject.unbind_ext_s() invokes it + +---------------------------------------------------------------- Released 2.4.27 2016-08-01 Changes since 2.4.26: @@ -1282,4 +1296,4 @@ ---------------------------------------------------------------- Released 1.10alpha3 2000-09-19 -$Id: CHANGES,v 1.393 2016/08/01 10:15:39 stroeder Exp $ +$Id: CHANGES,v 1.398 2016/11/18 07:01:45 stroeder Exp $ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.27/Demo/pyasn1/sss_highest_number.py new/python-ldap-2.4.28/Demo/pyasn1/sss_highest_number.py --- old/python-ldap-2.4.27/Demo/pyasn1/sss_highest_number.py 1970-01-01 01:00:00.000000000 +0100 +++ new/python-ldap-2.4.28/Demo/pyasn1/sss_highest_number.py 2016-09-27 00:32:14.000000000 +0200 @@ -0,0 +1,48 @@ +#!/usr/bin/env python +""" +This sample script demonstrates the use of the server-side-sorting control +(see RFC 2891) + +Requires module pyasn1 (see http://pyasn1.sourceforge.net/) +""" + +import pprint,ldap + +from ldap.ldapobject import LDAPObject +from ldap.controls.sss import SSSRequestControl +from ldap.resiter import ResultProcessor + +class MyLDAPObject(LDAPObject,ResultProcessor): + pass + +uri = "ldap://ipa.demo1.freeipa.org" + +l = MyLDAPObject(uri,trace_level=0) +l.simple_bind_s('uid=admin,cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org','Secret123') + +for id_attr in ('uidNumber','gidNumber'): + # reverse sorting request control + sss_control = SSSRequestControl(ordering_rules=['-%s' % (id_attr)]) + # send search request + msg_id = l.search_ext( + 'dc=demo1,dc=freeipa,dc=org', + ldap.SCOPE_SUBTREE, + '(%s=*)' % (id_attr), + attrlist=[id_attr], + sizelimit=1, + serverctrls = [sss_control], + ) + # collect result + ldap_result = [] + try: + for res_type,res_data,res_msgid,res_controls in l.allresults(msg_id,add_ctrls=0): + ldap_result.extend(res_data) + except ldap.SIZELIMIT_EXCEEDED: + pass + # print result + print 'Highest value of %s' % (id_attr) + if ldap_result: + dn,entry = ldap_result[0] + print '->',entry[id_attr] + else: + print 'not found' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.27/Lib/dsml.py new/python-ldap-2.4.28/Lib/dsml.py --- old/python-ldap-2.4.27/Lib/dsml.py 2016-07-30 21:40:04.000000000 +0200 +++ new/python-ldap-2.4.28/Lib/dsml.py 2016-11-18 08:03:34.000000000 +0100 @@ -4,13 +4,13 @@ See http://www.python-ldap.org/ for details. -$Id: dsml.py,v 1.44 2016/07/30 16:18:47 stroeder Exp $ +$Id: dsml.py,v 1.45 2016/11/11 14:41:07 stroeder Exp $ Python compability note: Tested with Python 2.0+. """ -__version__ = '2.4.27' +__version__ = '2.4.28' import string,base64 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.27/Lib/ldap/__init__.py new/python-ldap-2.4.28/Lib/ldap/__init__.py --- old/python-ldap-2.4.27/Lib/ldap/__init__.py 2016-07-30 21:40:04.000000000 +0200 +++ new/python-ldap-2.4.28/Lib/ldap/__init__.py 2016-11-18 08:03:34.000000000 +0100 @@ -3,12 +3,12 @@ See http://www.python-ldap.org/ for details. -$Id: __init__.py,v 1.105 2016/07/30 16:18:47 stroeder Exp $ +$Id: __init__.py,v 1.106 2016/11/11 14:41:07 stroeder Exp $ """ # This is also the overall release version number -__version__ = '2.4.27' +__version__ = '2.4.28' import sys diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.27/Lib/ldap/controls/sss.py new/python-ldap-2.4.28/Lib/ldap/controls/sss.py --- old/python-ldap-2.4.27/Lib/ldap/controls/sss.py 2015-10-24 17:57:14.000000000 +0200 +++ new/python-ldap-2.4.28/Lib/ldap/controls/sss.py 2016-11-18 08:03:35.000000000 +0100 @@ -5,7 +5,7 @@ See http://www.python-ldap.org/ for project details. -$Id: sss.py,v 1.2 2015/10/24 15:52:23 stroeder Exp $ +$Id: sss.py,v 1.3 2016/09/26 22:06:54 stroeder Exp $ """ __all__ = [ @@ -48,7 +48,7 @@ class SSSRequestControl(RequestControl): '''Order result server side - >>> s = SSSRequestControl('-cn') + >>> s = SSSRequestControl(ordering_rules=['-cn']) ''' controlType = '1.2.840.113556.1.4.473' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.27/Lib/ldap/ldapobject.py new/python-ldap-2.4.28/Lib/ldap/ldapobject.py --- old/python-ldap-2.4.27/Lib/ldap/ldapobject.py 2016-07-24 18:24:54.000000000 +0200 +++ new/python-ldap-2.4.28/Lib/ldap/ldapobject.py 2016-11-18 08:03:34.000000000 +0100 @@ -3,7 +3,7 @@ See http://www.python-ldap.org/ for details. -\$Id: ldapobject.py,v 1.156 2016/07/24 16:22:32 stroeder Exp $ +\$Id: ldapobject.py,v 1.158 2016/11/18 07:01:45 stroeder Exp $ Compability: - Tested with Python 2.0+ but should work with Python 1.5.x @@ -636,7 +636,11 @@ result = self.result3(msgid,all=1,timeout=self.timeout) else: result = None - self._trace_file.flush() + if __debug__ and self._trace_level>=1: + try: + self._trace_file.flush() + except AttributeError: + pass return result def unbind(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.27/Lib/ldap/logger.py new/python-ldap-2.4.28/Lib/ldap/logger.py --- old/python-ldap-2.4.27/Lib/ldap/logger.py 2015-06-21 13:32:07.000000000 +0200 +++ new/python-ldap-2.4.28/Lib/ldap/logger.py 2016-11-18 08:03:34.000000000 +0100 @@ -13,4 +13,7 @@ def write(self,msg): logging.log(self._logging_level,msg[:-1]) + def flush(self): + return + logging_file_obj = logging_file_class(logging.DEBUG) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.27/Lib/ldapurl.py new/python-ldap-2.4.28/Lib/ldapurl.py --- old/python-ldap-2.4.27/Lib/ldapurl.py 2016-07-30 21:40:04.000000000 +0200 +++ new/python-ldap-2.4.28/Lib/ldapurl.py 2016-11-18 08:03:34.000000000 +0100 @@ -3,7 +3,7 @@ See http://www.python-ldap.org/ for details. -\$Id: ldapurl.py,v 1.80 2016/07/30 16:18:47 stroeder Exp $ +\$Id: ldapurl.py,v 1.81 2016/11/11 14:41:07 stroeder Exp $ Python compability note: This module only works with Python 2.0+ since @@ -11,7 +11,7 @@ 2. list comprehensions are used. """ -__version__ = '2.4.27' +__version__ = '2.4.28' __all__ = [ # constants diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.27/Lib/ldif.py new/python-ldap-2.4.28/Lib/ldif.py --- old/python-ldap-2.4.27/Lib/ldif.py 2016-07-30 21:40:04.000000000 +0200 +++ new/python-ldap-2.4.28/Lib/ldif.py 2016-11-18 08:03:34.000000000 +0100 @@ -3,13 +3,13 @@ See http://www.python-ldap.org/ for details. -$Id: ldif.py,v 1.100 2016/07/30 19:38:05 stroeder Exp $ +$Id: ldif.py,v 1.101 2016/11/11 14:41:07 stroeder Exp $ Python compability note: Tested with Python 2.0+, but should work with Python 1.5.2+. """ -__version__ = '2.4.27' +__version__ = '2.4.28' __all__ = [ # constants diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.27/Lib/python_ldap.egg-info/PKG-INFO new/python-ldap-2.4.28/Lib/python_ldap.egg-info/PKG-INFO --- old/python-ldap-2.4.27/Lib/python_ldap.egg-info/PKG-INFO 2016-08-01 12:16:43.000000000 +0200 +++ new/python-ldap-2.4.28/Lib/python_ldap.egg-info/PKG-INFO 2016-11-18 08:03:54.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-ldap -Version: 2.4.27 +Version: 2.4.28 Summary: Python modules for implementing LDAP clients Home-page: https://www.python-ldap.org/ Author: python-ldap project @@ -24,6 +24,7 @@ Classifier: Operating System :: POSIX Classifier: Programming Language :: C Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2 Classifier: Topic :: Database Classifier: Topic :: Internet Classifier: Topic :: Software Development :: Libraries :: Python Modules diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.27/Lib/python_ldap.egg-info/SOURCES.txt new/python-ldap-2.4.28/Lib/python_ldap.egg-info/SOURCES.txt --- old/python-ldap-2.4.27/Lib/python_ldap.egg-info/SOURCES.txt 2016-08-01 12:16:43.000000000 +0200 +++ new/python-ldap-2.4.28/Lib/python_ldap.egg-info/SOURCES.txt 2016-11-18 08:03:54.000000000 +0100 @@ -39,6 +39,7 @@ Demo/pyasn1/psearch.py Demo/pyasn1/readentrycontrol.py Demo/pyasn1/sessiontrack.py +Demo/pyasn1/sss_highest_number.py Demo/pyasn1/syncrepl.py Lib/dsml.py Lib/ldapurl.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.27/PKG-INFO new/python-ldap-2.4.28/PKG-INFO --- old/python-ldap-2.4.27/PKG-INFO 2016-08-01 12:16:43.000000000 +0200 +++ new/python-ldap-2.4.28/PKG-INFO 2016-11-18 08:03:55.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-ldap -Version: 2.4.27 +Version: 2.4.28 Summary: Python modules for implementing LDAP clients Home-page: https://www.python-ldap.org/ Author: python-ldap project @@ -24,6 +24,7 @@ Classifier: Operating System :: POSIX Classifier: Programming Language :: C Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2 Classifier: Topic :: Database Classifier: Topic :: Internet Classifier: Topic :: Software Development :: Libraries :: Python Modules diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-ldap-2.4.27/setup.py new/python-ldap-2.4.28/setup.py --- old/python-ldap-2.4.27/setup.py 2016-04-20 20:00:20.000000000 +0200 +++ new/python-ldap-2.4.28/setup.py 2016-11-18 08:03:34.000000000 +0100 @@ -3,7 +3,7 @@ See http://www.python-ldap.org/ for details. -$Id: setup.py,v 1.75 2016/04/07 20:17:16 stroeder Exp $ +$Id: setup.py,v 1.76 2016/08/13 09:44:08 stroeder Exp $ """ has_setuptools = False @@ -103,6 +103,7 @@ 'Operating System :: POSIX', 'Programming Language :: C', 'Programming Language :: Python', + 'Programming Language :: Python :: 2', 'Topic :: Database', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules',
