original_docstring: 
      Add all towns of a country to trend job list, excluding country itself.
  
      Expect country name and add its child towns to the Place Job table, if
      the country exists in the Country table and if it has child towns.
      Existing values are skipped.
  
      :param countryName: Default None. Name of country to look up towns for
          and then add as jobs.
  
      :return: None
      
docstring: Add all towns of a country to trend job list, excluding country itself.
  Expect country name and add its child towns to the Place Job table, if
  the country exists in the Country table and if it has child towns.
  Existing values are skipped.
docstring_tokens: Add all towns of a country to trend job list excluding country itself . Expect country name and add its child towns to the Place Job table if the country exists in the Country table and if it has child towns . Existing values are skipped .
code: def insertTownsOfCountry(countryName=None):
      """
      Add all towns of a country to trend job list, excluding country itself.
  
      Expect country name and add its child towns to the Place Job table, if
      the country exists in the Country table and if it has child towns.
      Existing values are skipped.
  
      :param countryName: Default None. Name of country to look up towns for
          and then add as jobs.
  
      :return: None
      """
      if not countryName:
          countryName = input("jobManager. Intert towns - enter country" " name /> ")
  
      results = db.Country.selectBy(name=countryName)
  
      if results.count():
          # Expect one result exactly, since country names will be never
          # duplicated, unlike towns.
          country = results.getOne()
  
          towns = country.hasTowns
          if not towns:
              raise ValueError(
                  "Country `{0}` has no towns linked to it which"
                  " can be added.".format(countryName)
              )
          # Add each town on the country.
          for town in towns:
              # Include country code of town.
              output = (town.woeid, town.name, country.countryCode)
              try:
                  db.PlaceJob(placeID=town.id)
                  print("{0:10} | {1:15} | {2:2} | -> added".format(*output))
              except DuplicateEntryError:
                  print("{0:10} | {1:15} | {2:2} | -> already exists".format(*output))
      else:
          raise ValueError("Country `{0}` was not found.".format(countryName))
code_tokens: def insertTownsOfCountry ( countryName = None ) : if not countryName : countryName = input ( "jobManager. Intert towns - enter country" " name /> " ) results = db . Country . selectBy ( name = countryName ) if results . count ( ) : country = results . getOne ( ) towns = country . hasTowns if not towns : raise ValueError ( "Country `{0}` has no towns linked to it which" " can be added." . format ( countryName ) ) for town in towns : output = ( town . woeid , town . name , country . countryCode ) try : db . PlaceJob ( placeID = town . id ) print ( "{0:10} | {1:15} | {2:2} | -> added" . format ( * output ) ) except DuplicateEntryError : print ( "{0:10} | {1:15} | {2:2} | -> already exists" . format ( * output ) ) else : raise ValueError ( "Country `{0}` was not found." . format ( countryName ) )
short_docstring: Add all towns of a country to trend job list, excluding country itself.
short_docstring_tokens: Add all towns of a country to trend job list excluding country itself .
comment: """
      Add all towns of a country to trend job list, excluding country itself.
  
      Expect country name and add its child towns to the Place Job table, if
      the country exists in the Country table and if it has child towns.
      Existing values are skipped.
  
      :param countryName: Default None. Name of country to look up towns for
          and then add as jobs.
  
      :return: None
      """$SEP$# Expect one result exactly, since country names will be never$SEP$# duplicated, unlike towns.$SEP$# Add each town on the country.$SEP$# Include country code of town.