From 373e6a23e66038f01d598815cfd0b11d032fe8fb Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Tue, 18 Apr 2017 00:20:24 +0200 Subject: [PATCH] Metadata before compiling and its handling This adds default values to default metadata and the option to set it before compiling the protocol (i.e. while planning to TO). Additionally, the (dynamic) metadata fields are handled correctly in the ProtocolForm and metadata is shown while still planning. Additionally, protocol.start_time is used instead of protocoltype.usual_time. /close #47 /close #65 /close #106 --- auth.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/auth.py b/auth.py index be1d4b2..87b4d64 100644 --- a/auth.py +++ b/auth.py @@ -131,9 +131,8 @@ class ADManager: for group_dn in result.memberOf: group_dn_parts = parse_dn(group_dn) if len(group_dn_parts) >= 1: - for group_dn in group_dn_parts: - key, group, next_char = group_dn - yield group + key, group, next_char = group_dn_parts[0] + yield group def all_groups(self): connection = self.prepare_connection() -- GitLab