Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: chrome/test/data/autofill/merge/tools/autofill_merge_common.py

Issue 7892048: Autofill: Remove fax number completely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment fix. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 5
6 class UnknownColumnNameException(Exception): 6 class UnknownColumnNameException(Exception):
7 """Exception type raised when encountering an unknown column name.""" 7 """Exception type raised when encountering an unknown column name."""
8 def __init__(self, column_name): 8 def __init__(self, column_name):
9 self.column_name = column_name 9 self.column_name = column_name
10 def __str__(self): 10 def __str__(self):
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 elif column_name == "city": 60 elif column_name == "city":
61 field_type = "ADDRESS_HOME_CITY" 61 field_type = "ADDRESS_HOME_CITY"
62 elif column_name == "state": 62 elif column_name == "state":
63 field_type = "ADDRESS_HOME_STATE" 63 field_type = "ADDRESS_HOME_STATE"
64 elif column_name == "zipcode": 64 elif column_name == "zipcode":
65 field_type = "ADDRESS_HOME_ZIP" 65 field_type = "ADDRESS_HOME_ZIP"
66 elif column_name == "country_code": 66 elif column_name == "country_code":
67 field_type = "ADDRESS_HOME_COUNTRY" 67 field_type = "ADDRESS_HOME_COUNTRY"
68 elif column_name == "phone": 68 elif column_name == "phone":
69 field_type = "PHONE_HOME_WHOLE_NUMBER" 69 field_type = "PHONE_HOME_WHOLE_NUMBER"
70 elif column_name == "fax":
71 field_type = "PHONE_FAX_WHOLE_NUMBER"
72 else: 70 else:
73 raise UnknownColumnNameException(column_name) 71 raise UnknownColumnNameException(column_name)
74 72
75 return field_type 73 return field_type
OLDNEW
« no previous file with comments | « chrome/test/data/autofill/merge/output/validation.out ('k') | chrome/test/data/autofill/merge/tools/flatten.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698