index.py.ex
author fabien@tzone.org
Wed, 31 Dec 2008 01:53:22 -0500
changeset 73 c078d8a04d76
parent 68 c1f1491f098c
permissions -rw-r--r--
Now only add unique keywords, either they are selected or write down.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a4c49a0c313b [svn r1527] Premi�re version.
fabien
parents:
diff changeset
     1
#!/usr/bin/python
a4c49a0c313b [svn r1527] Premi�re version.
fabien
parents:
diff changeset
     2
15
574631f841c3 [svn r1549] Add update/merge/delete keywords.
fabien
parents: 13
diff changeset
     3
if (__name__ == '__main__'):
68
c1f1491f098c Some small correction and update.
fabien@tzone.org
parents: 67
diff changeset
     4
	import sys
15
574631f841c3 [svn r1549] Add update/merge/delete keywords.
fabien
parents: 13
diff changeset
     5
	sys.path.insert(0, "./lib")
0
a4c49a0c313b [svn r1527] Premi�re version.
fabien
parents:
diff changeset
     6
67
652ff41518f3 Update index.py and config to use the right information.
fabien@tzone.org
parents: 65
diff changeset
     7
from config import CONFIG
0
a4c49a0c313b [svn r1527] Premi�re version.
fabien
parents:
diff changeset
     8
67
652ff41518f3 Update index.py and config to use the right information.
fabien@tzone.org
parents: 65
diff changeset
     9
CONFIG.db_name = 'database_name'
652ff41518f3 Update index.py and config to use the right information.
fabien@tzone.org
parents: 65
diff changeset
    10
CONFIG.db_user = 'my_user'
652ff41518f3 Update index.py and config to use the right information.
fabien@tzone.org
parents: 65
diff changeset
    11
CONFIG.db_host = 'db.host.com'
652ff41518f3 Update index.py and config to use the right information.
fabien@tzone.org
parents: 65
diff changeset
    12
CONFIG.db_passwd = 'secr3t.passwd'
652ff41518f3 Update index.py and config to use the right information.
fabien@tzone.org
parents: 65
diff changeset
    13
# CONFIG.db_port = 5432
65
b975a3d7606a Partial submission, to include tests.
Fabien Ninoles <fabien@tzone.org>
parents: 58
diff changeset
    14
67
652ff41518f3 Update index.py and config to use the right information.
fabien@tzone.org
parents: 65
diff changeset
    15
import xbelweb
0
a4c49a0c313b [svn r1527] Premi�re version.
fabien
parents:
diff changeset
    16
a4c49a0c313b [svn r1527] Premi�re version.
fabien
parents:
diff changeset
    17
if (__name__ == "__main__"):
67
652ff41518f3 Update index.py and config to use the right information.
fabien@tzone.org
parents: 65
diff changeset
    18
	xbelweb.main()