|
71 |
multivalue=1, |
71 |
multivalue=1, |
72 |
include_in_default_search=1, |
72 |
include_in_default_search=1, |
73 |
options=[], |
73 |
options=[], |
74 |
dontsearch=1, |
74 |
dontsearch=0, |
75 |
required=0, |
75 |
required=0, |
76 |
may_change=1, |
76 |
may_change=1, |
77 |
identifies=0, |
77 |
identifies=0, |
Lines 119-124
def _ldap_pre_create(self):
|
Link Here
|
---|
|
119 |
def _ldap_addlist(self): |
119 |
def _ldap_addlist(self): |
120 |
return [ ('objectClass', ['top', 'univentionPrinterModels']) ] |
120 |
return [ ('objectClass', ['top', 'univentionPrinterModels']) ] |
121 |
|
121 |
|
|
|
122 |
def rewrite(filter, mapping): |
123 |
if filter.variable == 'printmodel': |
124 |
filter.variable = 'printerModel' |
125 |
else: |
126 |
univention.admin.mapping.mapRewrite(filter, mapping) |
127 |
|
122 |
def lookup(co, lo, filter_s, base='', superordinate=None, scope='sub', unique=0, required=0, timeout=-1, sizelimit=0): |
128 |
def lookup(co, lo, filter_s, base='', superordinate=None, scope='sub', unique=0, required=0, timeout=-1, sizelimit=0): |
123 |
|
129 |
|
124 |
filter=univention.admin.filter.conjunction('&', [ |
130 |
filter=univention.admin.filter.conjunction('&', [ |
Lines 127-133
def lookup(co, lo, filter_s, base='', superordinate=None, scope='sub', unique=0,
|
Link Here
|
---|
|
127 |
|
133 |
|
128 |
if filter_s: |
134 |
if filter_s: |
129 |
filter_p=univention.admin.filter.parse(filter_s) |
135 |
filter_p=univention.admin.filter.parse(filter_s) |
130 |
univention.admin.filter.walk(filter_p, univention.admin.mapping.mapRewrite, arg=mapping) |
136 |
univention.admin.filter.walk(filter_p, rewrite, arg=mapping) |
131 |
filter.expressions.append(filter_p) |
137 |
filter.expressions.append(filter_p) |
132 |
|
138 |
|
133 |
res=[] |
139 |
res=[] |