示例#1
0
	def __init__(self, co, lo, position, dn='', superordinate=None, attributes=[]):
		global _AVAILABLE_PRINTER_SCHEMAS
		# find the printer uris
		if not _AVAILABLE_PRINTER_SCHEMAS:
			printer_uris = printeruri.lookup(co, lo, '')
			_AVAILABLE_PRINTER_SCHEMAS = []
			for uri in printer_uris:
				_AVAILABLE_PRINTER_SCHEMAS.extend(uri['printeruri'])

		univention.admin.handlers.simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes=attributes)
示例#2
0
文件: printer.py 项目: B-Rich/smart
	def __init__(self, co, lo, position, dn='', superordinate=None, attributes = [] ):
		global mapping
		global property_descriptions
		global _AVAILABLE_PRINTER_SCHEMAS
		# find the printer uris
		if not _AVAILABLE_PRINTER_SCHEMAS:
			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()