6.0.0-beta1
7/6/25

[#6917] upstream Routes merge
Summary upstream Routes merge
Queue Horde Framework Packages
Queue Version HEAD
Type Enhancement
State Resolved
Priority 1. Low
Owners mike (at) naberezny (dot) com
Requester chuck (at) horde (dot) org
Created 06/13/2008 (6232 days ago)
Due
Updated 06/17/2008 (6228 days ago)
Assigned
Resolved 06/17/2008 (6228 days ago)
Milestone
Patch No

History
06/17/2008 04:19:26 PM Chuck Hagenbuch State ⇒ Resolved
 
06/13/2008 03:39:08 PM Chuck Hagenbuch Comment #1
State ⇒ Assigned
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ upstream Routes merge
Queue ⇒ Horde Framework Packages
Assigned to Mike Naberezny
Milestone ⇒
Reply to this comment
Revision

     71

Author

     mnaberez

Date

     2008-06-12 23:38:04 -0400 (Thu, 12 Jun 2008)



Log Message



Also generate formatted route for PUT and DELETE.  This needs a test 
and to be merged upstream to both Pylons Routes and Horde_Routes.



Modified Paths



     * trunk/vendor/Horde/Routes/Mapper.php



Diff

Modified: trunk/vendor/Horde/Routes/Mapper.php (70 => 71)





--- trunk/vendor/Horde/Routes/Mapper.php        2008-06-13 03:37:12 UTC (rev 70)

+++ trunk/vendor/Horde/Routes/Mapper.php        2008-06-13 03:38:04 UTC (rev 71)

@@ -874,6 +874,7 @@

                  $this->connect($routeName,

                                 sprintf("%s/%s", $collectionPath, $action),

                                 $routeOptions);

+

                  $this->connect('formatted_' . $routeName,

                                 sprintf("%s/%s.:(format)", 
$collectionPath, $action),

                                 $routeOptions);

@@ -893,8 +894,6 @@

                         $collectionPath,

                         array_merge($connectkargs, $options));



-        $connectkargs = array('action' => 'index',

-                              'conditions' => array('method' => 
array('GET')));

          $this->connect('formatted_' . $kargs['namePrefix'] . $collectionName,

                         $collectionPath . '.:(format)',

                         array_merge($connectkargs, $options));

@@ -953,6 +952,7 @@

              if ($primary) {

                  $routeOptions['action'] = $primary;

                  $this->connect($memberPath, $routeOptions);

+                $this->connect($memberPath . '.:(format)', $routeOptions);

              }

          }




Saved Queries