def _ParseFullAppId(app_id):
 partition = ''
 psep = app_id.find(_PARTITION_SEPARATOR)
 if (psep > 0):
  partition = app_id[:psep]
  app_id = app_id[(psep + 1):]
 domain_name = ''
 dsep = app_id.find(_DOMAIN_SEPARATOR)
 if (dsep > 0):
  domain_name = app_id[:dsep]
  app_id = app_id[(dsep + 1):]
 return (partition, domain_name, app_id)

def _ParseFullAppId ( app_id ) : partition = '' psep = app_id . find ( _PARTITION_SEPARATOR ) if ( psep > 0 ) : partition = app_id [ : psep ] app_id = app_id [ ( psep + 1 ) : ] domain_name = '' dsep = app_id . find ( _DOMAIN_SEPARATOR ) if ( dsep > 0 ) : domain_name = app_id [ : dsep ] app_id = app_id [ ( dsep + 1 ) : ] return ( partition , domain_name , app_id )
parse a full app id into partition .