bug hunting and a (small) new set of widget code
[Evergreen.git] / Open-ILS / src / reporter / templates / logic_header.ttk
index 185be26..dcb361d 100644 (file)
@@ -26,14 +26,15 @@ dir = config.findvalue(dir);
 dbdriver = config.findvalue('/reporter/setup/database/driver');
 dbname = config.findvalue('/reporter/setup/database/name');
 dbhost = config.findvalue('/reporter/setup/database/host');
+dbport = config.findvalue('/reporter/setup/database/port') || '5432';
 d_u = config.findvalue('/reporter/setup/database/user');
 d_p = config.findvalue('/reporter/setup/database/password');
 
-dsn = "dbi:" _ dbdriver _ ":dbname=" _ dbname _';host=' _ dbhost;
+dsn = "dbi:" _ dbdriver _ ":dbname=" _ dbname _';host=' _ dbhost _ ';port=' _ dbport;
 
 logme([dsn,d_u,d_p]);
 
-DBI.connect(dsn,d_u,d_p);
+DBI.connect(dsn,d_u,d_p,pg_enable_utf8=1);
 
 stage2_insert = 'INSERT INTO reporter.stage2 (stage1, params, owner, pub)' _
                                                ' VALUES ( ?,?,?,? )';