[Fusionforge-commits] r10850 - in trunk/src/www/soap: . docman frs

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Mon Oct 4 19:24:20 CEST 2010


Author: aljeux
Date: 2010-10-04 19:24:20 +0200 (Mon, 04 Oct 2010)
New Revision: 10850

Modified:
   trunk/src/www/soap/docman/docman.php
   trunk/src/www/soap/frs/frs.php
   trunk/src/www/soap/index.php
Log:
SOAP: Group => Project UI changes + clean code.

Modified: trunk/src/www/soap/docman/docman.php
===================================================================
--- trunk/src/www/soap/docman/docman.php	2010-10-04 17:24:13 UTC (rev 10849)
+++ trunk/src/www/soap/docman/docman.php	2010-10-04 17:24:20 UTC (rev 10850)
@@ -367,7 +367,7 @@
 			
 	$g =& group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','updateDocument','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','updateDocument','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
 		return new soap_fault ('','updateDocument',$g->getErrorMessage(),$g->getErrorMessage());
 	}
@@ -463,7 +463,7 @@
 
 	$g =& group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','addDocumentGroup','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','addDocumentGroup','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
 		return new soap_fault ('','addDocumentGroup',$g->getErrorMessage(),$g->getErrorMessage());
 	}
@@ -506,7 +506,7 @@
 
 	$g =& group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','updateDocumentGroup','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','updateDocumentGroup','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
 		return new soap_fault ('','updateDocumentGroup',$g->getErrorMessage(),$g->getErrorMessage());
 	}
@@ -549,7 +549,7 @@
 	continue_session($session_ser);
 	$g =& group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','getDocuments','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getDocuments','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
 		return new soap_fault ('','getDocuments',$g->getErrorMessage(),$g->getErrorMessage());
 	}
@@ -618,7 +618,7 @@
 	continue_session($session_ser);
 	$g =& group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','getDocumentGroups','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getDocumentGroups','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
 		return new soap_fault ('','getDocumentGroups',$g->getErrorMessage(),$g->getErrorMessage());
 	}
@@ -681,7 +681,7 @@
 	continue_session($session_ser);
 	$g =& group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','getDocumentGroup','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getDocumentGroup','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
 		return new soap_fault ('','getDocumentGroup',$g->getErrorMessage(),$g->getErrorMessage());
 	}
@@ -727,7 +727,7 @@
 	continue_session($session_ser);
 	$g =& group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','GetDocumentFiles','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','GetDocumentFiles','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
 		return new soap_fault ('','GetDocumentFiles',$g->getErrorMessage(),$g->getErrorMessage());
 	}
@@ -775,7 +775,7 @@
 	
 	$g =& group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','documentDelete','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','documentDelete','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
 		return new soap_fault ('','documentDelete',$g->getErrorMessage(),$g->getErrorMessage());
 	}

Modified: trunk/src/www/soap/frs/frs.php
===================================================================
--- trunk/src/www/soap/frs/frs.php	2010-10-04 17:24:13 UTC (rev 10849)
+++ trunk/src/www/soap/frs/frs.php	2010-10-04 17:24:20 UTC (rev 10850)
@@ -256,7 +256,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getPackages','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getPackages','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getPackages',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -301,7 +301,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','addPackage','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','addPackage','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','addPackage',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -318,7 +318,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getReleases','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getReleases','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getReleases',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -363,7 +363,7 @@
 
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getPackages','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getPackages','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getPackages',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -388,7 +388,7 @@
 	
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getFiles','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getFiles','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getFiles',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -478,7 +478,7 @@
 	
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getFile','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getFile','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getFile',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -524,7 +524,7 @@
 
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','addFile','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','addFile','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','addFile',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}

Modified: trunk/src/www/soap/index.php
===================================================================
--- trunk/src/www/soap/index.php	2010-10-04 17:24:13 UTC (rev 10849)
+++ trunk/src/www/soap/index.php	2010-10-04 17:24:20 UTC (rev 10850)
@@ -126,14 +126,6 @@
 
 $wsdl_data = $server->wsdl->serialize();
 
-/*
-if ($wsdl == "save") {
-   $fp = fopen ("/tmp/SoapAPI1.wsdl", 'w');
-   fputs ($fp, $wsdl_data);
-   fclose ($fp);
-}
-*/
-
 if (isset($wsdl)) {
 	echo $wsdl_data;
 	return;




More information about the Fusionforge-commits mailing list