Index: modules/univention/admin/handlers/shares/printer.py =================================================================== --- modules/univention/admin/handlers/shares/printer.py (Revision 30942) +++ modules/univention/admin/handlers/shares/printer.py (Arbeitskopie) @@ -280,21 +280,20 @@ def __init__(self, co, lo, position, dn='', superordinate=None, attributes = [] ): global mapping global property_descriptions - - self.mapping=mapping - self.descriptions=property_descriptions - univention.admin.handlers.simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes = attributes ) - self.save() - - def open(self): global _AVAILABLE_PRINTER_SCHEMAS # find the printer uris if not _AVAILABLE_PRINTER_SCHEMAS: - printer_uris = printeruri.lookup( self.co, self.lo, '' ) + printer_uris = printeruri.lookup( co, lo, '' ) _AVAILABLE_PRINTER_SCHEMAS = [] for uri in printer_uris: _AVAILABLE_PRINTER_SCHEMAS.extend( uri[ 'printeruri' ] ) + self.mapping=mapping + self.descriptions=property_descriptions + univention.admin.handlers.simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes = attributes ) + self.save() + + def open(self): # find the producer univention.admin.handlers.simpleLdap.open(self) models = printermodel.lookup( self.co, self.lo, 'printerModel="%s*' % self[ 'model' ] )