def setProfileFromString(options):
 options = base64.b64decode(options)
 options = zlib.decompress(options)
 (profileOpts, alt) = options.split('\x0c', 1)
 global settingsDictionary
 for option in profileOpts.split('\x08'):
  if (len(option) > 0):
   (key, value) = option.split('=', 1)
   if (key in settingsDictionary):
    if settingsDictionary[key].isProfile():
     settingsDictionary[key].setValue(value)
 for option in alt.split('\x08'):
  if (len(option) > 0):
   (key, value) = option.split('=', 1)
   if (key in settingsDictionary):
    if settingsDictionary[key].isAlteration():
     settingsDictionary[key].setValue(value)

def setProfileFromString ( options ) : options = base64 . b64decode ( options ) options = zlib . decompress ( options ) ( profileOpts , alt ) = options . split ( '\x0c' , 1 ) global settingsDictionary for option in profileOpts . split ( '\x08' ) : if ( len ( option ) > 0 ) : ( key , value ) = option . split ( '=' , 1 ) if ( key in settingsDictionary ) : if settingsDictionary [ key ] . isProfile ( ) : settingsDictionary [ key ] . setValue ( value ) for option in alt . split ( '\x08' ) : if ( len ( option ) > 0 ) : ( key , value ) = option . split ( '=' , 1 ) if ( key in settingsDictionary ) : if settingsDictionary [ key ] . isAlteration ( ) : settingsDictionary [ key ] . setValue ( value )
parse an encoded string which has all the profile settings stored inside of it .