bug hunting and a (small) new set of widget code
[Evergreen.git] / Open-ILS / src / reporter / templates / logic_header.ttk
index 2fc450d..dcb361d 100644 (file)
@@ -1,5 +1,12 @@
+<style>
+*  {   font-family: sans-serif;
+               font-size: 10pt;
+}
+</style>
 [%
 
+PROCESS utils;
+
 BLOCK logme_block;
        "\n\t<!-- " _ x _ " -->\n";
 END;
@@ -12,20 +19,26 @@ USE WebSession;
 USE utils = WebUtils;
 USE config = XML.LibXML(config_xml, expand_xinclude => 1);
 
+
 dir = '/reporter/setup/files/' _ stage_dir;
 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:Pg: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 ( ?,?,?,? )';
+
+stage3_insert = 'INSERT INTO reporter.stage3 (stage2, params, owner, pub, runtime, recurrence)' _
+                                               ' VALUES ( ?,?,?,?,?,? )';
 %]