@@ -128,7 +128,7 @@ class ObjectClass(SchemaElement):
128
128
this object class is derived from
129
129
x-origin
130
130
This string contains the X-ORIGIN text which is typically used to indicate
131
- the source of the associated schema element
131
+ the source of the associated schema element. It can a list of strings
132
132
"""
133
133
schema_attribute = u'objectClasses'
134
134
token_defaults = {
@@ -141,7 +141,7 @@ class ObjectClass(SchemaElement):
141
141
'ABSTRACT' :None ,
142
142
'MUST' :(()),
143
143
'MAY' :(),
144
- 'X-ORIGIN' :(None , )
144
+ 'X-ORIGIN' :()
145
145
}
146
146
147
147
def _set_attrs (self ,l ,d ):
@@ -150,7 +150,7 @@ def _set_attrs(self,l,d):
150
150
self .desc = d ['DESC' ][0 ]
151
151
self .must = d ['MUST' ]
152
152
self .may = d ['MAY' ]
153
- self .x_origin = d ['X-ORIGIN' ][ 0 ]
153
+ self .x_origin = d ['X-ORIGIN' ]
154
154
# Default is STRUCTURAL, see RFC2552 or draft-ietf-ldapbis-syntaxes
155
155
self .kind = 0
156
156
if d ['ABSTRACT' ]!= None :
@@ -173,7 +173,7 @@ def __str__(self):
173
173
result .append ({0 :' STRUCTURAL' ,1 :' ABSTRACT' ,2 :' AUXILIARY' }[self .kind ])
174
174
result .append (self .key_list ('MUST' ,self .must ,sep = ' $ ' ))
175
175
result .append (self .key_list ('MAY' ,self .may ,sep = ' $ ' ))
176
- result .append (self .key_attr ('X-ORIGIN' ,self .x_origin ,quoted = 1 ))
176
+ result .append (self .key_list ('X-ORIGIN' ,self .x_origin ,quoted = 1 ))
177
177
return '( %s )' % '' .join (result )
178
178
179
179
@@ -232,7 +232,7 @@ class AttributeType(SchemaElement):
232
232
this attribute type is derived from
233
233
x-origin
234
234
This string contains the X-ORIGIN text which is typically used to indicate
235
- the source of the associated schema element
235
+ the source of the associated schema element. It can a list of strings
236
236
"""
237
237
schema_attribute = u'attributeTypes'
238
238
token_defaults = {
@@ -248,7 +248,7 @@ class AttributeType(SchemaElement):
248
248
'COLLECTIVE' :None ,
249
249
'NO-USER-MODIFICATION' :None ,
250
250
'USAGE' :('userApplications' ,),
251
- 'X-ORIGIN' :(None , ),
251
+ 'X-ORIGIN' :(),
252
252
'X-ORDERED' :(None ,),
253
253
}
254
254
@@ -260,7 +260,7 @@ def _set_attrs(self,l,d):
260
260
self .equality = d ['EQUALITY' ][0 ]
261
261
self .ordering = d ['ORDERING' ][0 ]
262
262
self .substr = d ['SUBSTR' ][0 ]
263
- self .x_origin = d ['X-ORIGIN' ][ 0 ]
263
+ self .x_origin = d ['X-ORIGIN' ]
264
264
self .x_ordered = d ['X-ORDERED' ][0 ]
265
265
try :
266
266
syntax = d ['SYNTAX' ][0 ]
@@ -311,7 +311,7 @@ def __str__(self):
311
311
3 :" USAGE dSAOperation" ,
312
312
}[self .usage ]
313
313
)
314
- result .append (self .key_attr ('X-ORIGIN' ,self .x_origin ,quoted = 1 ))
314
+ result .append (self .key_list ('X-ORIGIN' ,self .x_origin ,quoted = 1 ))
315
315
result .append (self .key_attr ('X-ORDERED' ,self .x_ordered ,quoted = 1 ))
316
316
return '( %s )' % '' .join (result )
317
317
0 commit comments