Page MenuHomePhorge

D156.1775387191.diff
No OneTemporary

Authored By
Unknown
Size
695 B
Referenced Files
None
Subscribers
None

D156.1775387191.diff

diff --git a/pykolab/utils.py b/pykolab/utils.py
--- a/pykolab/utils.py
+++ b/pykolab/utils.py
@@ -394,6 +394,17 @@
if not result.has_key('domain') and result.has_key('standard_domain'):
result['domain'] = result['standard_domain']
+ if 'objectclass' not in result:
+ result['objectclass'] = []
+
+ if result['objectclass'] is None:
+ result['objectclass'] = []
+
+ if not isinstance(result['objectclass'], list):
+ result['objectclass'] = [result['objectclass']]
+
+ result['objectclass'] = [x.lower() for x in result['objectclass']]
+
return result
def parse_input(_input, splitchars= [ ' ' ]):

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 5, 11:06 AM (3 d, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18818109
Default Alt Text
D156.1775387191.diff (695 B)

Event Timeline