summaryrefslogtreecommitdiffstats
path: root/python/samba/schema.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-06-02 02:53:01 +0200
committerAndrew Bartlett <abartlet@samba.org>2014-10-14 06:44:06 +0200
commit0c2408531709eb720a2e96f72afbc2ecbfe6b06d (patch)
tree119c0fdcd4da3f53f32a77f2e0389057e1ca9030 /python/samba/schema.py
parent9a014d265b4e134fb5cea12aaca88ba5eb91cc05 (diff)
downloadsamba-0c2408531709eb720a2e96f72afbc2ecbfe6b06d.tar.gz
samba-0c2408531709eb720a2e96f72afbc2ecbfe6b06d.tar.xz
samba-0c2408531709eb720a2e96f72afbc2ecbfe6b06d.zip
Fix more pep8 issues in code I touched recently.
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Change-Id: I35f3204bdf5d00b3280d703427ded2fa2163a6f7
Diffstat (limited to 'python/samba/schema.py')
-rw-r--r--python/samba/schema.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/python/samba/schema.py b/python/samba/schema.py
index 4e6381306c..839d681825 100644
--- a/python/samba/schema.py
+++ b/python/samba/schema.py
@@ -156,12 +156,19 @@ dn: @INDEXLIST
# Return a hash with the forward attribute as a key and the back as the value
-def get_linked_attributes(schemadn,schemaldb):
+def get_linked_attributes(schemadn, schemaldb):
attrs = ["linkID", "lDAPDisplayName"]
- res = schemaldb.search(expression="(&(linkID=*)(!(linkID:1.2.840.113556.1.4.803:=1))(objectclass=attributeSchema)(attributeSyntax=2.5.5.1))", base=schemadn, scope=SCOPE_ONELEVEL, attrs=attrs)
+ res = schemaldb.search(
+ expression="(&(linkID=*)"
+ "(!(linkID:1.2.840.113556.1.4.803:=1))"
+ "(objectclass=attributeSchema)"
+ "(attributeSyntax=2.5.5.1))",
+ base=schemadn, scope=SCOPE_ONELEVEL, attrs=attrs)
attributes = {}
for i in range(0, len(res)):
- expression = "(&(objectclass=attributeSchema)(linkID=%d)(attributeSyntax=2.5.5.1))" % (int(res[i]["linkID"][0])+1)
+ expression = ("(&(objectclass=attributeSchema)(linkID=%d)"
+ "(attributeSyntax=2.5.5.1))" %
+ (int(res[i]["linkID"][0])+1))
target = schemaldb.searchone(basedn=schemadn,
expression=expression,
attribute="lDAPDisplayName",