1 from types import StringTypes
3 from PLC.Faults import *
4 from PLC.Parameter import Parameter
5 from PLC.Debug import profile
6 from PLC.Table import Row, Table
10 Representation of a row in the addresses table. To use, instantiate
11 with a dict of values.
15 'address_id': Parameter(int, "Address type"),
16 'address_type_id': Parameter(int, "Address type identifier"),
17 'address_type': Parameter(str, "Address type name"),
18 'line1': Parameter(str, "Address line 1"),
19 'line2': Parameter(str, "Address line 2"),
20 'line3': Parameter(str, "Address line 3"),
21 'city': Parameter(str, "City"),
22 'state': Parameter(str, "State or province"),
23 'postalcode': Parameter(str, "Postal code"),
24 'country': Parameter(str, "Country"),
27 def __init__(self, api, fields):
31 def flush(self, commit = True):
35 def delete(self, commit = True):
39 class Addresses(Table):
41 Representation of row(s) from the addresses table in the
45 def __init__(self, api, address_id_list = None):