1 from PLC.Faults import *
2 from PLC.Parameter import Parameter
3 from PLC.Table import Row, Table
7 Representation of a row in the addresses table. To use, instantiate
11 table_name = 'addresses'
12 primary_key = 'address_id'
14 'address_id': Parameter(int, "Address identifier"),
15 'line1': Parameter(str, "Address line 1"),
16 'line2': Parameter(str, "Address line 2"),
17 'line3': Parameter(str, "Address line 3"),
18 'city': Parameter(str, "City"),
19 'state': Parameter(str, "State or province"),
20 'postalcode': Parameter(str, "Postal code"),
21 'country': Parameter(str, "Country"),
22 'address_type': Parameter(str, "Address type"),
25 def __init__(self, api, fields = {}):
27 Row.__init__(self, fields)
29 def delete(self, commit = True):
33 class Addresses(Table):
35 Representation of row(s) from the addresses table in the
39 def __init__(self, api, address_id_list = None):