Intial commit of the droped beuild -docs

Package-Manager: portage-2.2.20
RepoMan-Options: --force
This commit is contained in:
Mario Fetka
2015-10-17 17:50:54 +02:00
parent 726c9e1f24
commit 6f7db5affa
6 changed files with 251 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff -uNtr ldaptor-0.0.43.orig/ldaptor/usage.py ldaptor-0.0.43/ldaptor/usage.py
--- ldaptor-0.0.43.orig/ldaptor/usage.py 2008-08-20 12:38:44.000000000 -0430
+++ ldaptor-0.0.43/ldaptor/usage.py 2008-08-20 20:02:14.000000000 -0430
@@ -2,6 +2,9 @@
from ldaptor.protocols import pureldap
from ldaptor.protocols.ldap import distinguishedname
+class UsageError(usage.UsageError):
+ pass
+
class Options(usage.Options):
optParameters = ()
def postOptions(self):

View File

@@ -0,0 +1,71 @@
diff -uNtr ldaptor-0.0.43.orig/ldaptor/apps/webui/iwebui.py ldaptor-0.0.43/ldaptor/apps/webui/iwebui.py
--- ldaptor-0.0.43.orig/ldaptor/apps/webui/iwebui.py 2008-08-20 12:38:44.000000000 -0430
+++ ldaptor-0.0.43/ldaptor/apps/webui/iwebui.py 2008-08-20 12:44:53.000000000 -0430
@@ -1,4 +1,4 @@
-from twisted.python import components
+from zope import interface
-class ICurrentDN(components.Interface):
+class ICurrentDN(interface.Interface):
"""Marker interface for current DN for Ldaptor-webui."""
diff -uNtr ldaptor-0.0.43.orig/ldaptor/apps/webui/search.py ldaptor-0.0.43/ldaptor/apps/webui/search.py
--- ldaptor-0.0.43.orig/ldaptor/apps/webui/search.py 2008-08-20 12:38:44.000000000 -0430
+++ ldaptor-0.0.43/ldaptor/apps/webui/search.py 2008-08-20 12:37:42.000000000 -0430
@@ -1,6 +1,7 @@
from zope.interface import implements
from twisted.internet import defer
-from twisted.python import components
+#from twisted.python import components
+from zope import interface
from webut.skin import iskin
from ldaptor.protocols.ldap import ldapclient, ldapsyntax
from ldaptor.protocols.ldap import distinguishedname, ldapconnector
@@ -17,7 +18,7 @@
from nevow import rend, inevow, loaders, url, tags
from formless import annotate, webform, iformless, configurable
-class IMove(components.Interface):
+class IMove(interface.Interface):
"""Entries being moved in the tree."""
pass
diff -uNtr ldaptor-0.0.43.orig/ldaptor/interfaces.py ldaptor-0.0.43/ldaptor/interfaces.py
--- ldaptor-0.0.43.orig/ldaptor/interfaces.py 2008-08-20 12:38:44.000000000 -0430
+++ ldaptor-0.0.43/ldaptor/interfaces.py 2008-08-20 12:38:19.000000000 -0430
@@ -1,6 +1,7 @@
-from twisted.python import components
+#from twisted.python import interface
+from zope import interface
-class ILDAPEntry(components.Interface):
+class ILDAPEntry(interface.Interface):
"""
Pythonic API for LDAP object access and modification.
@@ -126,7 +127,7 @@
incorrect.
"""
-class IEditableLDAPEntry(components.Interface):
+class IEditableLDAPEntry(interface.Interface):
"""Interface definition for editable LDAP entries."""
def __setitem__(self, key, value):
@@ -206,7 +207,7 @@
"""
-class IConnectedLDAPEntry(components.Interface):
+class IConnectedLDAPEntry(interface.Interface):
"""Interface definition for LDAP entries that are part of a bigger whole."""
def namingContext(self):
@@ -334,7 +335,7 @@
"""
-class ILDAPConfig(components.Interface):
+class ILDAPConfig(interface.Interface):
"""Generic LDAP configuration retrieval."""
def getBaseDN(self):

View File

@@ -0,0 +1,59 @@
diff -ur ldaptor-0.0.43.orig/ldaptor/test/test_server.py ldaptor-0.0.43/ldaptor/test/test_server.py
--- ldaptor/test/test_server.py 2006-01-25 19:37:57.000000000 +0800
+++ ldaptor/test/test_server.py 2013-01-27 14:05:07.998485642 +0800
@@ -379,31 +379,31 @@
])
return d
- def test_modifyDN_rdnOnly_noDeleteOldRDN_success(self):
- newrdn = 'cn=thingamagic'
- self.server.dataReceived(str(pureldap.LDAPMessage(
- pureldap.LDAPModifyDNRequest(entry=self.thingie.dn,
- newrdn=newrdn,
- deleteoldrdn=False),
- id=2)))
- self.assertEquals(self.server.transport.value(),
- str(pureldap.LDAPMessage(
- pureldap.LDAPModifyDNResponse(
- resultCode=ldaperrors.Success.resultCode),
- id=2)),
- )
+# def test_modifyDN_rdnOnly_noDeleteOldRDN_success(self):
+# newrdn = 'cn=thingamagic'
+# self.server.dataReceived(str(pureldap.LDAPMessage(
+# pureldap.LDAPModifyDNRequest(entry=self.thingie.dn,
+# newrdn=newrdn,
+# deleteoldrdn=False),
+# id=2)))
+# self.assertEquals(self.server.transport.value(),
+# str(pureldap.LDAPMessage(
+# pureldap.LDAPModifyDNResponse(
+# resultCode=ldaperrors.Success.resultCode),
+# id=2)),
+# )
# tree changed
- d = self.stuff.children()
- d.addCallback(self.assertEquals, sets.Set([
- self.another,
- inmemory.ReadOnlyInMemoryLDAPEntry(
- '%s,ou=stuff,dc=example,dc=com' % newrdn,
- {'objectClass': ['a', 'b'],
- 'cn': ['thingamagic', 'thingie']}),
- ]))
- return d
- test_modifyDN_rdnOnly_noDeleteOldRDN_success.todo = 'Not supported yet.'
-
+# d = self.stuff.children()
+# d.addCallback(self.assertEquals, sets.Set([
+# self.another,
+# inmemory.ReadOnlyInMemoryLDAPEntry(
+# '%s,ou=stuff,dc=example,dc=com' % newrdn,
+# {'objectClass': ['a', 'b'],
+# 'cn': ['thingamagic', 'thingie']}),
+# ]))
+# return d
+# test_modifyDN_rdnOnly_noDeleteOldRDN_success.todo = 'Not supported yet.'
+#
def test_modify(self):
self.server.dataReceived(str(pureldap.LDAPMessage(
pureldap.LDAPModifyRequest(self.stuff.dn,