Halfway rewriting to use QT MVC
[ipypbx] / src / ipypbx / sql.py
1 creation_queries = (
2     '''
3     create table connections (
4     id integer,
5     name varchar(100),
6     local_ip_address varchar(15),
7     local_port integer,
8     freeswitch_ip_address varchar(15),
9     freeswitch_port integer)
10     ''',
11 #    '''
12 #    insert into connections (id, name, local_ip_address, local_port, freeswitch_ip_address, freeswitch_port)
13 #    values (1, "Foo", "127.0.0.1", 8021, "127.0.0.1", 8022)
14 #    '''
15     )
16
17 class Connection(object):
18     id, name, local_ip_address, local_port, freeswitch_ip_address, \
19         freeswitch_port = range(6)