[Fusionforge-commits] r10421 - in trunk/src/www: include my pm/msproject soap soap/common soap/docman soap/pm soap/scm soap/tracker survey

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Sep 8 20:21:21 CEST 2010


Author: aljeux
Date: 2010-09-08 20:21:20 +0200 (Wed, 08 Sep 2010)
New Revision: 10421

Modified:
   trunk/src/www/include/stats_function.php
   trunk/src/www/my/dashboard.php
   trunk/src/www/pm/msproject/msp.php
   trunk/src/www/soap/common/group.php
   trunk/src/www/soap/common/user.php
   trunk/src/www/soap/docman/docman.php
   trunk/src/www/soap/index.php
   trunk/src/www/soap/pm/pm.php
   trunk/src/www/soap/scm/scm.php
   trunk/src/www/soap/tracker/query.php
   trunk/src/www/soap/tracker/tracker.php
   trunk/src/www/survey/survey.php
   trunk/src/www/survey/survey_resp.php
   trunk/src/www/survey/survey_utils.php
Log:
Group => Project rename for clarity.

Modified: trunk/src/www/include/stats_function.php
===================================================================
--- trunk/src/www/include/stats_function.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/include/stats_function.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -48,7 +48,7 @@
 	echo '<p>&nbsp;</p>';
 
 /*
-	Groups added by week
+	Projects added by week
 */
 	$result = db_query_params ('select (round((register_time/604800),0)*604800) AS time ,count(*) from groups group by time',
 				   array ());

Modified: trunk/src/www/my/dashboard.php
===================================================================
--- trunk/src/www/my/dashboard.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/my/dashboard.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -103,7 +103,7 @@
 
                         $group_id = db_result($result,$i,'group_id');
 
-                        //  get the Group object
+                        //  get the Project object
                         //
                         $group =& group_get_object($group_id);
                         if (!$group || !is_object($group) || $group->isError()) {

Modified: trunk/src/www/pm/msproject/msp.php
===================================================================
--- trunk/src/www/pm/msproject/msp.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/pm/msproject/msp.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -235,7 +235,7 @@
 	$group = group_get_object($groupid);
 	if (!$group || !is_object($group)) {
 		$res['code']="error";
-		$res['description']="No Such Group";
+		$res['description']="No Such Project";
 		return $res;
 	} else {
 		if (!forge_check_perm ('pm_admin', $group_id)) {

Modified: trunk/src/www/soap/common/group.php
===================================================================
--- trunk/src/www/soap/common/group.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/soap/common/group.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -92,7 +92,7 @@
 
 	$grps =& group_get_objects($group_ids);
 	if (!$grps) {
-		return new soap_fault ('2001','group','Could Not Get Groups by Id'.$inputArgs,$feedback);
+		return new soap_fault ('2001','group','Could Not Get Projects by Id'.$inputArgs,$feedback);
 	}
 
 	return groups_to_soap($grps);
@@ -102,7 +102,7 @@
 	session_continue($session_ser);
 	$grps =& group_get_objects_by_name($group_names);
 	if (!$grps) {
-		return new soap_fault ('2002','group','Could Not Get Groups by Name','Could Not Get Groups by Name');
+		return new soap_fault ('2002','group','Could Not Get Projects by Name','Could Not Get Projects by Name');
 	}
 
 	return groups_to_soap($grps);
@@ -115,7 +115,7 @@
 	$forge = new FusionForge();
 	$result = $forge->getPublicProjectNames();
 	if ($forge->isError()) {
-		$errMsg = 'Could Not Get Public Group Names: '.$forge->getErrorMessage();
+		$errMsg = 'Could Not Get Public Projects Names: '.$forge->getErrorMessage();
 		return new soap_fault ('2003','group',$errMsg,$errMsg);
 	}
 	return $result;

Modified: trunk/src/www/soap/common/user.php
===================================================================
--- trunk/src/www/soap/common/user.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/soap/common/user.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -115,7 +115,7 @@
 	continue_session($session_ser);
 	$user =& user_get_object($user_id);
 	if (!$user) {
-		return new soap_fault ('3003','user','Could Not Get Users Groups','Could Not Get Users Groups');
+		return new soap_fault ('3003','user','Could Not Get Users Projects','Could Not Get Users Projects');
 	}
 	return groups_to_soap($user->getGroups());
 }

Modified: trunk/src/www/soap/docman/docman.php
===================================================================
--- trunk/src/www/soap/docman/docman.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/soap/docman/docman.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -303,7 +303,7 @@
 
 	$g =& group_get_object($group_id);
 	if (!$g || !is_object($g)) {
-		return new soap_fault ('','addDocument','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','addDocument','Could Not Get Project','Could Not Get Project');
 	} elseif ($g->isError()) {
 		return new soap_fault ('','addDocument',$g->getErrorMessage(),$g->getErrorMessage());
 	}

Modified: trunk/src/www/soap/index.php
===================================================================
--- trunk/src/www/soap/index.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/soap/index.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -87,7 +87,7 @@
 	$uri,
 	$uri.'#version');
 //
-//	Include Group Functions
+//	Include Project Functions
 //
 require_once $gfwww.'soap/common/group.php';
 

Modified: trunk/src/www/soap/pm/pm.php
===================================================================
--- trunk/src/www/soap/pm/pm.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/soap/pm/pm.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -336,7 +336,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getProjectGroups','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getProjectGroups','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getProjectGroups',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -380,7 +380,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','addProjectTask','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','addProjectTask','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','addProjectTask',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -422,7 +422,7 @@
     continue_session($session_ser);
     $grp =& group_get_object($group_id);
     if (!$grp || !is_object($grp)) {
-        return new soap_fault ('','updateProjectTask','Could Not Get Group','Could Not Get Group');
+        return new soap_fault ('','updateProjectTask','Could Not Get Project','Could Not Get Project');
     } elseif ($grp->isError()) {
         return new soap_fault ('','updateProjectTask',$grp->getErrorMessage(),$grp->getErrorMessage());
     }
@@ -462,7 +462,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getProjectTaskCategories','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getProjectTaskCategories','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getProjectTaskCategories',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -504,7 +504,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getProjectTechnicians','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getProjectTechnicians','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getProjectTechnicians',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -526,7 +526,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getProjectTasks','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getProjectTasks','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getProjectTasks',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -610,7 +610,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getProjectMessages','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getProjectMessages','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getProjectMessages',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -658,7 +658,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','addProjectMessage','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','addProjectMessage','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','addProjectMessage',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}

Modified: trunk/src/www/soap/scm/scm.php
===================================================================
--- trunk/src/www/soap/scm/scm.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/soap/scm/scm.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -53,7 +53,7 @@
 function getSCMData($session_ser, $group_id) {
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getSCMData','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getSCMData','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getSCMData',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}

Modified: trunk/src/www/soap/tracker/query.php
===================================================================
--- trunk/src/www/soap/tracker/query.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/soap/tracker/query.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -119,7 +119,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','artifactGetViews','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','artifactGetViews','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','artifactGetViews',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}

Modified: trunk/src/www/soap/tracker/tracker.php
===================================================================
--- trunk/src/www/soap/tracker/tracker.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/soap/tracker/tracker.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -496,7 +496,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getArtifactTypes','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getArtifactTypes','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getArtifactTypes','$grp->getErrorMessage()',$grp->getErrorMessage());
 	}
@@ -605,7 +605,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','addArtifact','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','addArtifact','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','addArtifact',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -641,7 +641,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','updateArtifact','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','updateArtifact','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','updateArtifact',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -678,7 +678,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getArtifactTechnicians','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getArtifactTechnicians','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getArtifactTechnicians',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -703,7 +703,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getArtifacts','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getArtifacts','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getArtifacts',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -810,7 +810,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getArtifactFiles','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getArtifactFiles','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getArtifactFiles',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -864,7 +864,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getArtifactFileData','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getArtifactFileData','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getArtifactFileData',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -915,7 +915,7 @@
 	
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','addArtifactFile','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','addArtifactFile','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','addArtifactFile',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -961,7 +961,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','getArtifactMessages','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','getArtifactMessages','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','getArtifactMessages',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -1011,7 +1011,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','addArtifactMessage','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','addArtifactMessage','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','addArtifactMessage',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}
@@ -1091,7 +1091,7 @@
 	continue_session($session_ser);
 	$grp =& group_get_object($group_id);
 	if (!$grp || !is_object($grp)) {
-		return new soap_fault ('','artifactGetChangeLog','Could Not Get Group','Could Not Get Group');
+		return new soap_fault ('','artifactGetChangeLog','Could Not Get Project','Could Not Get Project');
 	} elseif ($grp->isError()) {
 		return new soap_fault ('','artifactGetChangeLog',$grp->getErrorMessage(),$grp->getErrorMessage());
 	}

Modified: trunk/src/www/survey/survey.php
===================================================================
--- trunk/src/www/survey/survey.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/survey/survey.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -55,7 +55,7 @@
 echo '<h1>' . $title . '</h1>';
 
 if (!$survey_id) {
-    echo '<div class="error">'._('For some reason, the Group ID or Survey ID did not make it to this page').'</div>';
+    echo '<div class="error">'._('For some reason, the Project ID or Survey ID did not make it to this page').'</div>';
 } else {
 	plugin_hook ("blocks", "survey_".$s->getTitle());
     echo($sh->ShowSurveyForm($s));

Modified: trunk/src/www/survey/survey_resp.php
===================================================================
--- trunk/src/www/survey/survey_resp.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/survey/survey_resp.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -47,7 +47,7 @@
 	/*
 		Quit if params are not provided
 	*/
-	echo '<div class="error">'._('For some reason, the Group ID or Survey ID did not make it to this page').'</div>';
+	echo '<div class="error">'._('For some reason, the Project ID or Survey ID did not make it to this page').'</div>';
 	$sh->footer(array());
 	exit;
 }

Modified: trunk/src/www/survey/survey_utils.php
===================================================================
--- trunk/src/www/survey/survey_utils.php	2010-09-08 18:20:49 UTC (rev 10420)
+++ trunk/src/www/survey/survey_utils.php	2010-09-08 18:21:20 UTC (rev 10421)
@@ -41,7 +41,7 @@
 
 	if ($project =& group_get_object($group_id)){
 		if (!$project->usesSurvey()) {
-			exit_error(_('Error'), _('This Group Has Turned Off Surveys.'));
+			exit_error(_('Error'), _('This Project Has Turned Off Surveys.'));
 		}
 		
 		site_project_header($params);




More information about the Fusionforge-commits mailing list