home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Day POSTing.
[plomtask]
/
run.py
diff --git
a/run.py
b/run.py
index ef6aeab6b7fd56a93ed3c9e76a7b5bbfe532b68c..33346375ea8ad03a19b43ce8f26e0c3e8498bbbd 100755
(executable)
--- a/
run.py
+++ b/
run.py
@@
-6,7
+6,7
@@
from plomtask.misc import HandledException
from plomtask.http import TaskHandler, TaskServer
from plomtask.db import DatabaseFile
from plomtask.http import TaskHandler, TaskServer
from plomtask.db import DatabaseFile
-P
ATH_DB = environ.get('PATH_DB
')
+P
LOMTASK_DB_PATH = environ.get('PLOMTASK_DB_PATH
')
HTTP_PORT = 8082
TEMPLATES_DIR = 'templates'
DB_CREATION_ASK = 'Database file not found. Create? Y/n\n'
HTTP_PORT = 8082
TEMPLATES_DIR = 'templates'
DB_CREATION_ASK = 'Database file not found. Create? Y/n\n'
@@
-14,9
+14,9
@@
DB_CREATION_ASK = 'Database file not found. Create? Y/n\n'
if __name__ == '__main__':
try:
if __name__ == '__main__':
try:
- if not P
ATH_DB
:
- raise HandledException('P
ATH_DB
not set.')
- db_file = DatabaseFile(P
ATH_DB
)
+ if not P
LOMTASK_DB_PATH
:
+ raise HandledException('P
LOMTASK_DB_PATH
not set.')
+ db_file = DatabaseFile(P
LOMTASK_DB_PATH
)
if not db_file.exists:
legal_yesses = {'y', 'yes', 'yes.', 'yes!'}
reply = input(DB_CREATION_ASK)
if not db_file.exists:
legal_yesses = {'y', 'yes', 'yes.', 'yes!'}
reply = input(DB_CREATION_ASK)