Package backend :: Package server :: Package handlers :: Package xmlrpc :: Module states
[hide private]
[frames] | no frames]

Source Code for Module backend.server.handlers.xmlrpc.states

  1  # 
  2  # Copyright (c) 2008--2016 Red Hat, Inc. 
  3  # 
  4  # This software is licensed to you under the GNU General Public License, 
  5  # version 2 (GPLv2). There is NO WARRANTY for this software, express or 
  6  # implied, including the implied warranties of MERCHANTABILITY or FITNESS 
  7  # FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 
  8  # along with this software; if not, see 
  9  # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 
 10  # 
 11  # Red Hat trademarks are not licensed under GPLv2. No permission is 
 12  # granted to use or replicate Red Hat trademarks that are incorporated 
 13  # in this software or its documentation. 
 14  # 
 15   
 16   
 17  states_to_abbr = { 
 18      'Alabama': 'AL', 
 19      'Alaska': 'AK', 
 20      'Arizona': 'AZ', 
 21      'Arkansas': 'AR', 
 22      'California': 'CA', 
 23      'Colorado': 'CO', 
 24      'Connecticut': 'CT', 
 25      'Delaware': 'DE', 
 26      'District of Columbia': 'DC', 
 27      'Florida': 'FL', 
 28      'Georgia': 'GA', 
 29      'Hawaii': 'HA', 
 30      'Idaho': 'ID', 
 31      'Illinois': 'IL', 
 32      'Indiana': 'IN', 
 33      'Iowa': 'IA', 
 34      'Kansas': 'KS', 
 35      'Kentucky': 'KY', 
 36      'Louisiana': 'LA', 
 37      'Maine': 'ME', 
 38      'Maryland': 'MD', 
 39      'Massachusetts': 'MA', 
 40      'Michigan': 'MI', 
 41      'Minnesota': 'MI', 
 42      'Mississippi': 'MS', 
 43      'Missouri': 'MO', 
 44      'Montana': 'MT', 
 45      'Nebraska': 'NE', 
 46      'Nevada': 'NV', 
 47      'New Hampshire': 'NH', 
 48      'New Jersey': 'NJ', 
 49      'New Mexico': 'NM', 
 50      'New York': 'NY', 
 51      'North Carolina': 'NC', 
 52      'North Dakota': 'ND', 
 53      'Ohio': 'OH', 
 54      'Oklahoma': 'OK', 
 55      'Oregon': 'OR', 
 56      'Pennsylvania': 'PA', 
 57      'Rhode Island': 'RI', 
 58      'South Carolina': 'SC', 
 59      'South Dakota': 'SD', 
 60      'Tennessee': 'TN', 
 61      'Texas': 'TX', 
 62      'Utah': 'UT', 
 63      'Vermont': 'VT', 
 64      'Virginia': 'VA', 
 65      'Washington': 'WA', 
 66      'West Virginia': 'WV', 
 67      'Wisconsin': 'WI', 
 68      'Wyoming': 'WY', 
 69      'American Samoa': 'AS', 
 70      'Armed Forces(AA)': 'AA', 
 71      'Armed Forces(AE)': 'AE', 
 72      'Armed Forces(AP)': 'AP', 
 73      'Guam': 'GU', 
 74      'Marshall Islands': 'MH', 
 75      'Micronesia': 'FM', 
 76      'Northern Marianas': 'MP', 
 77      'Palau': 'PW', 
 78      'Puerto Rico': 'PR', 
 79      'Trust Territories': 'TT', 
 80      'Virgin Islands': 'VI'} 
 81   
 82  # British Columbia 
 83  # Manitoba 
 84  # New Brunswick 
 85  # Newfoundland 
 86  # Northwest Territory 
 87  # Nova Scotia 
 88  # Ontario 
 89  # Prince Edward Island 
 90  # Quebec 
 91  # Saskatchewan 
 92  # Yukon Territory 
 93   
 94   
 95  #----------------------------------------------------------------------------- 
 96  if __name__ == "__main__": 
 97      print("You can not run this module by itself") 
 98      import sys 
 99      sys.exit(-1) 
100  #----------------------------------------------------------------------------- 
101