Mercurial > hg > rlgallery-misc
comparison py/setupdb.py @ 33:25843238434a
Change the Python module's name back to rlgall.
It is no longer an experimental variant.  Using a database as a backend
is a settled feature.
| author | John "Elwin" Edwards | 
|---|---|
| date | Thu, 02 Jan 2014 13:09:48 -0500 | 
| parents | e8f3b7994d88 | 
| children | e1de8aeb5ed4 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 32:05a4afbe6299 | 33:25843238434a | 
|---|---|
| 1 #!/usr/bin/python3 | 1 #!/usr/bin/python3 | 
| 2 # setupdb.py: initializes the database tables used by the rlg system. | 2 # setupdb.py: initializes the database tables used by the rlg system. | 
| 3 | 3 | 
| 4 import rlgalldb as rlgall | 4 import rlgall | 
| 5 import psycopg2 | 5 import psycopg2 | 
| 6 | 6 | 
| 7 webuser = "webserver" | 7 webuser = "webserver" | 
| 8 allowquery = "GRANT SELECT ON {0} TO " + webuser + ";" | 8 allowquery = "GRANT SELECT ON {0} TO " + webuser + ";" | 
| 9 | 9 | 
