parameters: (self)
return_statement: return
docstring: Save to Blender text 'OgrePackage.cfg'.
docstring_summary: Save to Blender text 'OgrePackage.cfg'.
docstring_tokens: Save to Blender text OgrePackage . cfg .
function: def save(self):
  		"""Save to Blender text 'OgrePackage.cfg'.
  		"""
  		# remove old configuration text
  		if self.textName in [text.getName() for text in Blender.Text.Get()]:
  			oldSettingsText = Blender.Text.Get(self.textName)
  			oldSettingsText.setName('OgrePackage.old')
  			Blender.Text.unlink(oldSettingsText)
  		# write new configuration text
  		settingsText = Blender.Text.New(self.textName)
  		settingsText.write('OGRE Package settings file.\n\nThis file is automatically created. Please don\'t edit this file directly.\n\n')
  		try:
  			# pickle
  			settingsText.write(pickle.dumps(self.dict))
  		except (pickle.PickleError):
  			Log.getSingleton().logError('Couldn\'t pickle package settings!')
  		return
function_tokens: def save ( self ) : # remove old configuration text if self . textName in [ text . getName ( ) for text in Blender . Text . Get ( ) ] : oldSettingsText = Blender . Text . Get ( self . textName ) oldSettingsText . setName ( 'OgrePackage.old' ) Blender . Text . unlink ( oldSettingsText ) # write new configuration text settingsText = Blender . Text . New ( self . textName ) settingsText . write ( 'OGRE Package settings file.\n\nThis file is automatically created. Please don\'t edit this file directly.\n\n' ) try : # pickle settingsText . write ( pickle . dumps ( self . dict ) ) except ( pickle . PickleError ) : Log . getSingleton ( ) . logError ( 'Couldn\'t pickle package settings!' ) return