old_contents: #!/usr/bin/python3.4
  # -*-coding:Utf-8 -*
  '''module containing class 'render' '''
  from setting import setting
  
  class render:
  	'''class that contain the parameter for a rendering task'''
  	
  	def __init__(self,xml=False):
  		'''reder object initialisation
  		if there is no xml argument paste to the function, the status of the object is set to 'unset', path and scene is an empty strings and settings is a setting object with default value'''
  		self.path = ''
  		self.scene = ''
  		self.setting = setting()
  		self.status='unset'
  		
  		if xml != False:
  			self.fromXml(xml)
  	
  	def fromXml(self,xml):
  		'''method that set the object attributes with the value extracted from an xml object with 'render' tag name '''
  		if xml.tag == 'render':
  			self.path = xml.get('path')
  			self.scene = xml.get('scene')
  			self.setting.fromXml(xml.find('settings'))
  			self.status = 'ready'
  		
  	def toXmlStr(self,head=False):
  		'''export the object values into an xml formated strings'''
  		txt =''
  		if head:
  			txt+= '<?xml version="1.0" encoding="UTF-8"?>\n'
  		txt += '<render path="'+self.path+'" scene="'+self.scene+'">\n'
  		txt += self.setting.toXmlStr()
  		txt += '</render>\n'
  		return txt
  
  
  
  
  
new_contents: #!/usr/bin/python3.4
  # -*-coding:Utf-8 -*
  '''module containing class 'render' '''
  from setting import setting
  
  class render:
  	'''class that contain the parameter for a rendering task'''
  	
  	def __init__(self,
  					path = None, 
  					scene = None, 
  					fileXmlSetting = None,
  					preferences = None,
  					xml = None):
  		'''reder object initialisation
  		if there is no xml argument paste to the function, the status of the object is set to 'unset', path and scene is an empty strings and settings is a setting object with default value'''
  		if xml is None:
  			print('renderTask initialisation whithout xml done not yet implement')
  		else:
  			self.path = ''
  			self.scene = ''
  			self.fileSetting = setting()
  			self.customSetting = setting()
  			self.status='unset'
  			
  			self.fromXml(xml)
  	
  	def fromXml(self,xml):
  		'''method that set the object attributes with the value extracted from an xml object with 'render' tag name '''
  		if xml.tag == 'render':
  			self.path = xml.get('path')
  			self.scene = xml.get('scene')
  			self.setting.fromXml(xml.find('settings'))
  			self.status = 'ready'
  		
  	def toXmlStr(self,head=False):
  		'''export the object values into an xml formated strings'''
  		txt =''
  		if head:
  			txt+= '<?xml version="1.0" encoding="UTF-8"?>\n'
  		txt += '<render path="'+self.path+'" scene="'+self.scene+'">\n'
  		txt += self.setting.toXmlStr()
  		txt += '</render>\n'
  		return txt
  
  
  
  
  
subject: change render init method to include other parameters