[Python-de] Dictionary Problem
Klaus Boehm
k.boehm at ewt.de
Die Mai 24 15:56:01 CEST 2005
Hallo,
ich habe ein kleines Problem mit der Verarbeitung
eines Dictionaries.
Bei einer ldap Abfrage bekomme ich ein Dict.
Nach einer for Schleife bekomme ich folgendes
Ergebnis:
key_list = result_set[0][0][1].keys()
for s in key_list:
print s, result_set[0][0][1][s]
givenName ['Bodo']
CPEmacAddress ['00:11:80:15:da:63']
uid ['yyyyyy']
title ['Herr']
objectClass ['customer']
associatedIP ['xxxxxxx']
userPassword ['berwald_01']
o ['tss']
sn ['xxxxx']
HFCmacAddress ['00:0f:9f:b0:73:94']
cn ['xxxxxx']
location ['Berlin']
Wie bekomme ich die eckigen Klammern weg?
Klaus
--
---------------------------------------------
Klaus Boehm
Systemadministrator
ewt multimedia GmbH & Co. KG
D-86152 Augsburg, Volkhartstr. 4-6
Phone: +49.(0)821.3106-319
Fax: +49.(0)821.310660-319
mailto:k.boehm at ewt.de
http://www.ewt.de
http://www.surf-club.de
---------------------------------------------