add xvfbrun to ssconvert
authorAlan Knowles <alan@roojs.com>
Tue, 13 Aug 2019 07:10:12 +0000 (15:10 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 13 Aug 2019 07:10:12 +0000 (15:10 +0800)
GnumericToExcel.php
Pman.Dialog.CoreEnum.bjs
Pman.Dialog.CoreEnum.js
sql/core_person.sql

index 5b6e471..cae4037 100644 (file)
@@ -74,8 +74,10 @@ class Pman_Core_GnumericToExcel extends Pman
         
         
         require_once 'System.php';
+        $xvfb = System::which('xvfb-run');
+        
         $ss = System::which('ssconvert');
-        $cmd =  $ss. 
+        $cmd = $xvfb . " -a " . $ss. 
                 " --import-encoding=Gnumeric_XmlIO:sax" .
                 " --export-type=Gnumeric_Excel:excel_biff8 " . 
                 $srcTmp . ' ' . $targetTmp . ' 2>&1';
index 2f6fbd7..a13189f 100644 (file)
@@ -2,7 +2,7 @@
  "name" : "Pman.Dialog.CoreEnum",
  "parent" : "",
  "title" : "",
- "path" : "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreEnum.bjs",
+ "path" : "/home/alan/gitlive/Pman.Core/Pman.Dialog.CoreEnum.bjs",
  "permname" : "",
  "modOrder" : "001",
  "strings" : {
@@ -45,9 +45,9 @@
      "* prop" : "center"
     },
     {
+     "fitToFrame" : true,
      "background" : true,
      "region" : "center",
-     "fitToFrame" : true,
      "xtype" : "ContentPanel",
      "$ xns" : "Roo",
      "items" : [
@@ -57,8 +57,8 @@
         "|rendered" : "function (form)\n{\n   _this.form = form;\n}"
        },
        "$ url" : "baseURL + '/Roo/core_enum.php'",
-       "xtype" : "Form",
        "method" : "POST",
+       "xtype" : "Form",
        "style" : "margin: 5px",
        "$ xns" : "Roo.form",
        "items" : [
@@ -79,7 +79,7 @@
          "fieldLabel" : "Display Name",
          "xtype" : "TextField",
          "allowBlank" : false,
-         "width" : 200,
+         "width" : 250,
          "$ xns" : "Roo.form",
          "name" : "display_name"
         },
index 44bd69b..273763a 100644 (file)
@@ -180,7 +180,7 @@ Pman.Dialog.CoreEnum = {
           allowBlank : false,
           fieldLabel : _this._strings['b48968e1c912da07df5e8d6d246291ec'] /* Display Name */,
           name : 'display_name',
-          width : 200,
+          width : 250,
           listeners : {
            keyup : function (_self, e)
             {
index 3ef5cf1..2044aad 100644 (file)
@@ -106,3 +106,5 @@ ALTER TABLE core_person ADD COLUMN post_code VARCHAR(256) NOT NULL DEFAULT '';
 ALTER TABLE core_person ADD COLUMN oath_key VARCHAR(254) NOT NULL DEFAULT ''; 
 
 alter table core_person add index lookup_company_id( company_id);
+-- update core_person set email = CONCAT(id,'@fake.email') where email = '';
+-- alter table core_person add unique index company_email( company_id, email );