From df1d3dc777b48bc9bc10f3eb44dec90db490a899 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 13 Sep 2011 01:10:37 +0200 Subject: s4-python: Consistently use spaces rather than tabs, fix headers in several places. --- source4/scripting/python/samba/ms_schema.py | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'source4/scripting/python/samba/ms_schema.py') diff --git a/source4/scripting/python/samba/ms_schema.py b/source4/scripting/python/samba/ms_schema.py index 64bb28a9676..6f7cc67b127 100644 --- a/source4/scripting/python/samba/ms_schema.py +++ b/source4/scripting/python/samba/ms_schema.py @@ -1,8 +1,19 @@ -# # create schema.ldif (as a string) from WSPP documentation # # based on minschema.py and minschema_wspp # +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . """Generate LDIF from WSPP documentation.""" @@ -207,14 +218,14 @@ def __transform_entry(entry, objectClass): if not cn and key == "cn": cn = l[1] - + if key in multivalued_attrs: # unlike LDIF, these are comma-separated l[1] = l[1].replace("\n ", "") l[1] = l[1].replace(" ", "") l[1] = l[1].split(",") - + if key in bitFields: l[1] = __convert_bitfield(key, l[1]) @@ -275,5 +286,5 @@ if __name__ == '__main__': except IndexError: print >>sys.stderr, "Usage: %s attr-file.txt classes-file.txt" % (sys.argv[0]) sys.exit(1) - + print read_ms_schema(attr_file, classes_file) -- cgit