SOURCES: eventum-cli-wr-separated.patch - updated to in 20060809

glen glen at pld-linux.org
Wed Aug 9 01:59:44 CEST 2006


Author: glen                         Date: Tue Aug  8 23:59:44 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- updated to in 20060809

---- Files affected:
SOURCES:
   eventum-cli-wr-separated.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/eventum-cli-wr-separated.patch
diff -u SOURCES/eventum-cli-wr-separated.patch:1.2 SOURCES/eventum-cli-wr-separated.patch:1.3
--- SOURCES/eventum-cli-wr-separated.patch:1.2	Tue Jul 26 19:51:48 2005
+++ SOURCES/eventum-cli-wr-separated.patch	Wed Aug  9 01:59:39 2006
@@ -21,14 +21,14 @@
 +++ /tmp/eventum	2005-07-19 17:43:37.000000000 +0300
 @@ -218,15 +218,19 @@
          }
-         Command_Line::lookupCustomer(&$client, $auth, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3]);
+         Command_Line::lookupCustomer($client, $auth, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3]);
      } elseif (($HTTP_SERVER_VARS['argv'][1] == 'weekly-report') || ($HTTP_SERVER_VARS['argv'][1] == 'wr')) {
 -        if (count(@$HTTP_SERVER_VARS['argv']) == 4) {
 +        if (count(@$HTTP_SERVER_VARS['argv']) >= 4 and $HTTP_SERVER_VARS['argv'][3] != '--separate-closed') {
 +            $separate_closed = (@$HTTP_SERVER_VARS['argv'][4] == '--separate-closed');
              // date range
--            Command_Line::getWeeklyReport(&$client, $auth, 0, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3]);
-+            Command_Line::getWeeklyReport(&$client, $auth, 0, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3], $separate_closed);
+-            Command_Line::getWeeklyReport($client, $auth, 0, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3]);
++            Command_Line::getWeeklyReport($client, $auth, 0, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3], $separate_closed);
          } else {
              // weekly
              if (@$HTTP_SERVER_VARS['argv'][2] == '') {
@@ -37,8 +37,8 @@
 +            } else {
 +                $separate_closed = (@$HTTP_SERVER_VARS['argv'][3] == '--separate-closed' or @$HTTP_SERVER_VARS['argv'][2] == '--separate-closed');
              }
--            Command_Line::getWeeklyReport(&$client, $auth, $HTTP_SERVER_VARS['argv'][2]);
-+            Command_Line::getWeeklyReport(&$client, $auth, $HTTP_SERVER_VARS['argv'][2], '', '', $separate_closed);
+-            Command_Line::getWeeklyReport($client, $auth, $HTTP_SERVER_VARS['argv'][2]);
++            Command_Line::getWeeklyReport($client, $auth, $HTTP_SERVER_VARS['argv'][2], '', '', $separate_closed);
          }
      } elseif ($HTTP_SERVER_VARS['argv'][1] == 'clock') {
          Command_Line::timeClock(&$client, $auth, @$HTTP_SERVER_VARS['argv'][2]);
@@ -50,14 +50,14 @@
       * @param   string $end_date The end_date of the report. (optional)
 +     * @param   boolean If closed issues should be separated from other issues. 
       */
--    function getWeeklyReport($rpc_conn, $auth, $week, $start_date = '', $end_date = '')
-+    function getWeeklyReport($rpc_conn, $auth, $week, $start_date = '', $end_date = '', $separate_closed = false)
+-    function getWeeklyReport(&$rpc_conn, $auth, $week, $start_date = '', $end_date = '')
++    function getWeeklyReport(&$rpc_conn, $auth, $week, $start_date = '', $end_date = '', $separate_closed = false)
      {
          $msg = new XML_RPC_Message("getWeeklyReport", array(
-             new XML_RPC_Value($auth[0], 'string'), 
+             new XML_RPC_Value($auth[0], 'string'),
              new XML_RPC_Value($auth[1], 'string'),
-             new XML_RPC_Value($week, "int"), 
-             new XML_RPC_Value($start_date, "string"), 
+             new XML_RPC_Value($week, "int"),
+             new XML_RPC_Value($start_date, "string"),
 -            new XML_RPC_Value($end_date, "string")
 +            new XML_RPC_Value($end_date, "string"),
 +            new XML_RPC_Value($separate_closed ? 1 : 0, 'int'), 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/eventum-cli-wr-separated.patch?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list