Skip to content

Commit

Permalink
removed stand-alone module dsml
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Nov 12, 2017
1 parent c0485fb commit 5913883
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 30 deletions.
1 change: 0 additions & 1 deletion Doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Contents
ldap-sasl.rst
ldif.rst
ldapurl.rst
dsml.rst
slapdtest.rst


Expand Down
28 changes: 0 additions & 28 deletions Lib/ldap/async.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,31 +285,3 @@ def _processSingleResult(self,resultType,resultItem):
# Search continuations are ignored
dn,entry = resultItem
self._ldif_writer.unparse(dn,entry)


class DSMLWriter(FileWriter):
"""
Class for writing a stream LDAP search results to a DSML file
Arguments:
l
LDAPObject instance
writer_obj
Either a file-like object or a dsml.DSMLWriter instance used for output
"""

def __init__(self,l,writer_obj,headerStr='',footerStr=''):
import dsml
if isinstance(writer_obj,dsml.DSMLWriter):
self._dsml_writer = writer_obj
else:
self._dsml_writer = dsml.DSMLWriter(writer_obj)
FileWriter.__init__(self,l,self._dsml_writer._output_file,headerStr,footerStr)

def _processSingleResult(self,resultType,resultItem):
if _entryResultTypes.has_key(resultType):
# Search continuations are ignored
dn,entry = resultItem
self._dsml_writer.unparse(dn,entry)

1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ class OpenLDAP2:
py_modules = [
'ldapurl',
'ldif',
'dsml',
'ldap',
'slapdtest',
'ldap.async',
Expand Down

0 comments on commit 5913883

Please sign in to comment.