def getProfileString():
 p = []
 alt = []
 global settingsList
 for set in settingsList:
  if set.isProfile():
   if (set.getName() in tempOverride):
    p.append(((set.getName() + '=') + tempOverride[set.getName()]))
   else:
    p.append(((set.getName() + '=') + set.getValue().encode('utf-8')))
  elif set.isAlteration():
   if (set.getName() in tempOverride):
    alt.append(((set.getName() + '=') + tempOverride[set.getName()]))
   else:
    alt.append(((set.getName() + '=') + set.getValue().encode('utf-8')))
 ret = (('\x08'.join(p) + '\x0c') + '\x08'.join(alt))
 ret = base64.b64encode(zlib.compress(ret, 9))
 return ret

def getProfileString ( ) : p = [ ] alt = [ ] global settingsList for set in settingsList : if set . isProfile ( ) : if ( set . getName ( ) in tempOverride ) : p . append ( ( ( set . getName ( ) + '=' ) + tempOverride [ set . getName ( ) ] ) ) else : p . append ( ( ( set . getName ( ) + '=' ) + set . getValue ( ) . encode ( 'utf-8' ) ) ) elif set . isAlteration ( ) : if ( set . getName ( ) in tempOverride ) : alt . append ( ( ( set . getName ( ) + '=' ) + tempOverride [ set . getName ( ) ] ) ) else : alt . append ( ( ( set . getName ( ) + '=' ) + set . getValue ( ) . encode ( 'utf-8' ) ) ) ret = ( ( '\x08' . join ( p ) + '\x0c' ) + '\x08' . join ( alt ) ) ret = base64 . b64encode ( zlib . compress ( ret , 9 ) ) return ret
get an encoded string which contains all profile settings .