[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 96/151: Documentation and clean code
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 96/151: Documentation and clean code |
Date: |
Sat, 4 Feb 2017 17:14:30 +0000 (UTC) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit c42faae0ee3d35d4698c2f9c4358430603d96e5d
Author: Dany De Bontridder <address@hidden>
Date: Fri Dec 16 20:29:59 2016 +0100
Documentation and clean code
---
README.export-pdf | 13 +++++++++--
dev/create_changelog.sh | 1 -
dev/test_parse_formula.php | 53 --------------------------------------------
scenario/readme.txt | 27 ++++++++++++++++++++--
4 files changed, 36 insertions(+), 58 deletions(-)
diff --git a/README.export-pdf b/README.export-pdf
index 8d155a4..64c88ad 100644
--- a/README.export-pdf
+++ b/README.export-pdf
@@ -1,3 +1,12 @@
-Remplacer PDF::Cell par PDF::write_cell
-Remplacer PDF::ln par PDF::line_new
+If you want to CONVERT your document to PDF before sending them by email. Or
+creating the receipt with a stamp (great ledger analytical )
+You have to
+1. define the variable
+GENERATE_PDF to YES
+OFFICE' to 'HOME=/tmp unoconv'
+2. Install the convert library for manipulating image
+3. Install pdftk to manage the PDF
+4. To fix the broken PDF (slower), install also /usr/bin/ps2pdf
+
+For creating PDF file nothing must be install
diff --git a/dev/create_changelog.sh b/dev/create_changelog.sh
deleted file mode 100644
index 6dbeaf0..0000000
--- a/dev/create_changelog.sh
+++ /dev/null
@@ -1 +0,0 @@
-cd .. && svn2cl --break-before-msg --group-by-day -a -o Changelog
diff --git a/dev/test_parse_formula.php b/dev/test_parse_formula.php
deleted file mode 100644
index 6bd2bfb..0000000
--- a/dev/test_parse_formula.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?
-/*
-# check the Impress::check_formula and the parse_formula
-# This file is a part of NOALYSS under GPL
-# Author D. DE BONTRIDDER address@hidden
-*/
-include_once('class_impress.php');
-
-echo '<hr>';
-foreach ( array('1',
- '(45+5)',
- 'round([45])',
- '$A=9',
- '$S30=($F1 >=0)?$F1:0',
-
- '[45%]',
- '[50]*[51%]',
- '$A1=[50]*[51%]',
- '[50]*9',
- '[50]*9.0',
- '[50%]*9',
- '$C1111=[50%]*9',
- '$C1111=[50%]*9*$D1',
- '$C10=[10%]',
- '[50%]*9.0',
- '[50%]*9.0 FROM=01.2004',
- '[50%]*9.0FROM=01.2004',
- 'system',
- 'unlink',
- 'ls -1')
- as $a ) {
- echo "Testing :".$a;
- echo (Impress::check_formula($a)==false)?'Non valide ':'ok';
-
- echo '<br>';
-
- foreach (array('+','-','/') as $b ) {
- $ee=str_replace('*',$b,$a);
- echo "Testing :".$ee;
- echo (Impress::check_formula($ee)==false)?'Non valide ':'ok';
- echo '<br>';
-
- }
- for($e=0;$e<3;$e++) {
- $a.="*".$a;
- echo "Testing :".$a;
- echo (Impress::check_formula($a)==false)?'Non valide ':'ok';
- echo '<br>';
-
- }
- }
-
-?>
diff --git a/scenario/readme.txt b/scenario/readme.txt
index 6bd9065..71fd91f 100644
--- a/scenario/readme.txt
+++ b/scenario/readme.txt
@@ -14,10 +14,12 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
+-----------------------
+ FRANCAIS
+-----------------------
Afin d'avoir les scénarios pour les rejouer avec test.php.
-Dans include/constant.php, changer
+Dans include/config.inc.php, changer
define ('LOGINPUT',false); par
define ('LOGINPUT',true);
@@ -33,4 +35,25 @@ Vous pouvez aussi utiliser un nom de fichier plus parlant.
L'objectif étant de pouvoir tester et de rejouer facilement les actions que
vous avez faites.
+Il est aussi possible de faire vos tests unitaire ici , autrement qu'avec
PHPUNIT (voir répertiore php-unit)
+
+
+-----------------------
+ ENGLISH
+-----------------------
+If you want to use scenario in order to use them with test.php
+You must have in include/config.inc.php
+
+define ('LOGINPUT',true);
+
+you must also create the file authorized_debug (this file is empty)
+
+Next step you perform the action you like to test or change , a file into
$_ENV['TMP'] has been created, you
+copy this file into tghe noalyss/scenario folder.
+
+You point you browser noalyss/html/test.php an you click on the link with
the name of the file
+
+and you can rerun the file , it works also for ajax.
+
+It is useful to test ajax answer , unit test or testing a class
- [Noalyss-commit] [noalyss] 74/151: Export en PDF d'operation : PDF_Operation::print_section Task #10 - PDF_Operation : ajout titre Analytique, (continued)
- [Noalyss-commit] [noalyss] 74/151: Export en PDF d'operation : PDF_Operation::print_section Task #10 - PDF_Operation : ajout titre Analytique, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 84/151: Performance : improve VERIF , change query pour fiche utilisé avec 2 postes, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 115/151: Correct doxygen, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 109/151: Add a class to manage the Param table (CRUD), Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 113/151: Correct doxygen doc, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 131/151: Doxygen, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 120/151: Add managetable.js to the script to load, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 128/151: Security : add security, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 130/151: #1380 : change the name of the function Acc_Ledger::button_copy_operation, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 132/151: Correct Doxygen documentation, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 96/151: Documentation and clean code,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 112/151: Improve Doxygen doc, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 73/151: Export en PDF d'operation, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 143/151: Fix : when exporting files for creating a PDF in ANC , the filename can be a problem if he contains some char., Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 116/151: Manage_Table , the js and php code are been splitted in 2 files , the ajax calls are nearly done , doxygen for these files is correct, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 101/151: Deprecated HtmlInput::make_object must be replace by json_encode, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 99/151: Improve Sorttable, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 110/151: Add property in Manage_Table VISIBLE UPDATABLE, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 125/151: Test ManageTable ; fix parseXML function, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 144/151: Merge branch 'master' of ns3:/srv/git/noalyss, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 09/151: Experiment less, Dany De Bontridder, 2017/02/04