Mercurial > hgbook
comparison web/hgbook/load_elements.py @ 749:7e7c47481e4f
Oops, this is the real merge for my hg's oddity
author | Dongsheng Song <dongsheng.song@gmail.com> |
---|---|
date | Fri, 20 Mar 2009 16:43:35 +0800 |
parents | 188efaefe001 |
children |
comparison
equal
deleted
inserted
replaced
748:d13c7c706a58 | 749:7e7c47481e4f |
---|---|
6 | 6 |
7 import os, sys | 7 import os, sys |
8 sys.path.append(os.path.dirname(__file__)) | 8 sys.path.append(os.path.dirname(__file__)) |
9 import dbutil | 9 import dbutil |
10 | 10 |
11 os.system('make -C ../../en ids') | 11 os.system('make -C ../../en all-ids.dat') |
12 | 12 |
13 conn = dbutil.connect() | 13 conn = dbutil.connect() |
14 c = conn.cursor() | 14 c = conn.cursor() |
15 c.execute('''load data local infile "../../en/all-ids.dat" replace | 15 c.execute('''load data local infile "../../en/all-ids.dat" replace |
16 into table comments_element | 16 into table comments_element |