source:
main/waeup.cas/trunk/waeup/cas/db.py
@
10372
Last change on this file since 10372 was 10344, checked in by , 12 years ago | |
---|---|
File size: 214 bytes |
Rev | Line | |
---|---|---|
[10344] | 1 | # components to store tickets in a database |
2 | # we use sqlite3 | |
3 | import os | |
4 | import sqlite3 | |
5 | ||
6 | ||
7 | def create_db(path): | |
8 | if os.path.exists(path): | |
9 | return | |
10 | conn = sqlite3.connect(path) | |
11 | conn.close() | |
12 | return |
Note: See TracBrowser for help on using the repository browser.