path: root/scm/dictrans.scm
authorSergey Poznyakoff <>2004-10-12 13:48:17 (GMT)
committer Sergey Poznyakoff <>2004-10-12 13:48:17 (GMT)
commitfcf560f10c3e597fd74fabbddd2abcb7856dd7c1 (patch) (side-by-side diff)
tree517829397ad6900f5ca07caf0846b73412ee047f /scm/dictrans.scm
parentd31ef40180393b0cd5eeee80164b958132f35423 (diff)
Improve compatibility with dict.cgi
git-svn-id: file:///home/puszcza/svnroot/ellinika/trunk@226 941c8c0f-9102-463b-b60b-cd22ce0e6858
Diffstat (limited to 'scm/dictrans.scm') (more/less context) (show whitespace changes)
1 files changed, 5 insertions, 3 deletions
diff --git a/scm/dictrans.scm b/scm/dictrans.scm
index ec87ad8..5d7f38e 100644
--- a/scm/dictrans.scm
+++ b/scm/dictrans.scm
@@ -100,7 +100,7 @@
(define sql-database "ellinika")
(define sql-port 3306)
(define sql-password #f)
-(define sql-user #f)
+(define sql-username #f)
(define verbose-option #f)
(define debug-level 0)
(define input-files '())
@@ -108,6 +108,8 @@
(define sysconf-dir "=SYSCONFDIR=")
(define config-file-name "ellinika.conf")
+(define dict-cgi-path #f)
;;; Load the site defaults
(let ((rc-file (string-append sysconf-dir "/" config-file-name)))
(if (file-exists? rc-file)
@@ -767,7 +769,7 @@
(set! sql-password (cdr x)))
- (set! sql-user (cdr x)))
+ (set! sql-username (cdr x)))
(set! sql-iface (cdr x)))
@@ -798,7 +800,7 @@
(let ((conn (sql-connect sql-iface sql-host sql-port sql-database
- sql-user sql-password)))
+ sql-username sql-password)))
(if (not conn)
(display "Cannot connect to the database\n" (current-error-port))

Return to:

Send suggestions and report system problems to the System administrator.