[Fusionforge-commits] r11674 - in trunk/src/plugins/oslc/include/oslc-zend/application: controllers models

Sabri LABBENE labbenes at libremir.placard.fr.eu.org
Tue Nov 30 16:39:07 CET 2010


Author: labbenes
Date: 2010-11-30 16:39:07 +0100 (Tue, 30 Nov 2010)
New Revision: 11674

Modified:
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/CmController.php
   trunk/src/plugins/oslc/include/oslc-zend/application/models/ChangeRequests.php
Log:
Add changes needed for the OSLC application to work with codendi trackers too.

Modified: trunk/src/plugins/oslc/include/oslc-zend/application/controllers/CmController.php
===================================================================
--- trunk/src/plugins/oslc/include/oslc-zend/application/controllers/CmController.php	2010-11-30 14:09:02 UTC (rev 11673)
+++ trunk/src/plugins/oslc/include/oslc-zend/application/controllers/CmController.php	2010-11-30 15:39:07 UTC (rev 11674)
@@ -128,7 +128,9 @@
 			case 'fusionforge':
 				require_once($controller_dir . 'FusionForgeCmController.php');
 				break;
-				
+			case 'Codendi':
+				require_once($controller_dir . 'CodendiCmController.php');
+				break;
 			case 'demo':
 				break;
 				
@@ -221,6 +223,9 @@
 				case 'fusionforge':
 					$this->_forward('get', 'fusionforgecm');
 					break;
+				case 'Codendi':
+					$this->_forward('get', 'codendicm');
+					break;
 				default:
 					break;
 			}
@@ -234,6 +239,9 @@
 				case 'fusionforge':
 					$this->_forward('post','fusionforgecm');
 					break;
+				case 'Codendi':
+					$this->_forward('post', 'codendicm');
+					break;
 				default:
 					break;	
 			}
@@ -251,6 +259,9 @@
 				case 'fusionforge':
 					$this->_forward('put','fusionforgecm');
 					break;
+				case 'Codendi':
+					$this->_forward('put', 'codendicm');
+					break;
 				default:
 					break;				
 			}

Modified: trunk/src/plugins/oslc/include/oslc-zend/application/models/ChangeRequests.php
===================================================================
--- trunk/src/plugins/oslc/include/oslc-zend/application/models/ChangeRequests.php	2010-11-30 14:09:02 UTC (rev 11673)
+++ trunk/src/plugins/oslc/include/oslc-zend/application/models/ChangeRequests.php	2010-11-30 15:39:07 UTC (rev 11674)
@@ -41,6 +41,8 @@
 		break;
 	case 'fusionforge':
 		break;
+	case 'Codendi':
+		break;
 	case 'demo':
 		// Use the PEAR File_CSV module which handles various kinds of CSV encodings
 		require_once 'File/CSV.php';




More information about the Fusionforge-commits mailing list