|
280 |
def __init__(self, co, lo, position, dn='', superordinate=None, attributes = [] ): |
280 |
def __init__(self, co, lo, position, dn='', superordinate=None, attributes = [] ): |
281 |
global mapping |
281 |
global mapping |
282 |
global property_descriptions |
282 |
global property_descriptions |
283 |
|
|
|
284 |
self.mapping=mapping |
285 |
self.descriptions=property_descriptions |
286 |
univention.admin.handlers.simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes = attributes ) |
287 |
self.save() |
288 |
|
289 |
def open(self): |
290 |
global _AVAILABLE_PRINTER_SCHEMAS |
283 |
global _AVAILABLE_PRINTER_SCHEMAS |
291 |
# find the printer uris |
284 |
# find the printer uris |
292 |
if not _AVAILABLE_PRINTER_SCHEMAS: |
285 |
if not _AVAILABLE_PRINTER_SCHEMAS: |
293 |
printer_uris = printeruri.lookup( self.co, self.lo, '' ) |
286 |
printer_uris = printeruri.lookup( co, lo, '' ) |
294 |
_AVAILABLE_PRINTER_SCHEMAS = [] |
287 |
_AVAILABLE_PRINTER_SCHEMAS = [] |
295 |
for uri in printer_uris: |
288 |
for uri in printer_uris: |
296 |
_AVAILABLE_PRINTER_SCHEMAS.extend( uri[ 'printeruri' ] ) |
289 |
_AVAILABLE_PRINTER_SCHEMAS.extend( uri[ 'printeruri' ] ) |
297 |
|
290 |
|
|
|
291 |
self.mapping=mapping |
292 |
self.descriptions=property_descriptions |
293 |
univention.admin.handlers.simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes = attributes ) |
294 |
self.save() |
295 |
|
296 |
def open(self): |
298 |
# find the producer |
297 |
# find the producer |
299 |
univention.admin.handlers.simpleLdap.open(self) |
298 |
univention.admin.handlers.simpleLdap.open(self) |
300 |
models = printermodel.lookup( self.co, self.lo, 'printerModel="%s*' % self[ 'model' ] ) |
299 |
models = printermodel.lookup( self.co, self.lo, 'printerModel="%s*' % self[ 'model' ] ) |