Changeset 2965

Show
Ignore:
Timestamp:
09/30/08 08:39:17 (7 weeks ago)
Author:
felix
Message:

Merged revisions 2947,2953-2954,2957 via svnmerge from
http://svn.agavi.org/branches/1.0

........

r2947 | david | 2008-09-26 07:42:28 +0200 (Fri, 26 Sep 2008) | 1 line


merge [2944:2946/branches/0.11]

........

r2953 | david | 2008-09-28 00:28:48 +0200 (Sun, 28 Sep 2008) | 1 line


made _common.xsl more modular, with callable templates for migrating elements to new namespcaes and separate templates for each envelope element

........

r2954 | david | 2008-09-28 00:33:31 +0200 (Sun, 28 Sep 2008) | 1 line


fixed copy/paste mistake in [2953]

........

r2957 | david | 2008-09-28 22:39:19 +0200 (Sun, 28 Sep 2008) | 1 line


fixed copy/paste errors in comments

........

Location:
branches/felix-testing-implementation
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • branches/felix-testing-implementation

    • Property svnmerge-integrated changed from /branches/1.0:1-2892,2894-2944 /branches/dominik-validation-argument-sources:1-2901 to /branches/1.0:1-2892,2894-2964 /branches/dominik-validation-argument-sources:1-2901
  • branches/felix-testing-implementation/CHANGELOG

    r2946 r2965  
    79790.11.4 RC1 (September ??, 2008) 
    8080------------------------------- 
     81 
     82ADD: Allow specifying of doctrine template implementations (#864) (David, TANAKA Koichi) 
    8183 
    8284FIX: SOAP and XMLRPC test scripts in sample app are broken (#866) (David) 
  • branches/felix-testing-implementation/src/config/xsl/_common.xsl

    r2835 r2965  
    99  <xsl:variable name="envelope_1_0" select="'http://agavi.org/agavi/config/global/envelope/1.0'" /> 
    1010   
    11   <xsl:template match="envelope_0_11:configurations | envelope_0_11:configuration | envelope_0_11:sandbox | envelope_0_11:parameters | envelope_0_11:parameter"> 
    12     <xsl:element name="{local-name()}" namespace="{$envelope_1_0}"> 
     11  <!-- callable template for migrating envelope nodes --> 
     12  <xsl:template name="_common-migrate-envelope-element"> 
     13    <!-- param for the target namespace; defaults to 1.0 --> 
     14    <xsl:param name="namespace"><xsl:value-of select="$envelope_1_0" /></xsl:param> 
     15     
     16    <xsl:call-template name="_common-migrate-element"> 
     17      <xsl:with-param name="namespace"><xsl:value-of select="$namespace" /></xsl:with-param> 
     18    </xsl:call-template> 
     19  </xsl:template> 
     20   
     21  <xsl:template name="_common-migrate-element"> 
     22    <!-- param for the target namespace; no default --> 
     23    <xsl:param name="namespace" /> 
     24     
     25    <!-- create an element of the same name --> 
     26    <xsl:element name="{local-name()}" namespace="{$namespace}"> 
    1327      <xsl:copy-of select="@*" /> 
    1428      <!-- also copy all namespace declarations, except the one of the current element (otherwise, we'd overwrite the namespace in the <element> above if it's just xmlns etc) --> 
     
    1832  </xsl:template> 
    1933   
     34  <xsl:template match="envelope_0_11:configurations"> 
     35    <xsl:call-template name="_common-migrate-envelope-element" /> 
     36  </xsl:template> 
     37  <xsl:template match="envelope_0_11:configuration"> 
     38    <xsl:call-template name="_common-migrate-envelope-element" /> 
     39  </xsl:template> 
     40  <xsl:template match="envelope_0_11:sandbox"> 
     41    <xsl:call-template name="_common-migrate-envelope-element" /> 
     42  </xsl:template> 
     43  <xsl:template match="envelope_0_11:parameters"> 
     44    <xsl:call-template name="_common-migrate-envelope-element" /> 
     45  </xsl:template> 
     46  <xsl:template match="envelope_0_11:parameter"> 
     47    <xsl:call-template name="_common-migrate-envelope-element" /> 
     48  </xsl:template> 
     49   
    2050  <xsl:template match="*"> 
    2151    <xsl:copy-of select="." /> 
  • branches/felix-testing-implementation/src/config/xsl/config_handlers.xsl

    r2648 r2965  
    1313   
    1414  <!-- pre-1.0 backwards compatibility for 1.0 --> 
    15   <!-- non-"envelope" elements are copied to the 1.0 factories namespace --> 
     15  <!-- non-"envelope" elements are copied to the 1.0 config_handlers namespace --> 
    1616  <xsl:template match="envelope_0_11:*"> 
    1717    <xsl:element name="{local-name()}" namespace="{$config_handlers_1_0}"> 
  • branches/felix-testing-implementation/src/config/xsl/module.xsl

    r2785 r2965  
    1616   
    1717  <!-- pre-1.0 backwards compatibility for 1.0 --> 
    18   <!-- non-"envelope" elements are copied to the 1.0 factories namespace --> 
     18  <!-- non-"envelope" elements are copied to the 1.0 module namespace --> 
    1919   
    2020  <!-- overwrite the configuration rule, as we need to work on the elements directly inside it --> 
  • branches/felix-testing-implementation/src/config/xsl/routing.xsl

    r2666 r2965  
    1313   
    1414  <!-- pre-1.0 backwards compatibility for 1.0 --> 
    15   <!-- non-"envelope" elements are copied to the 1.0 factories namespace --> 
     15  <!-- non-"envelope" elements are copied to the 1.0 routing namespace --> 
    1616  <xsl:template match="envelope_0_11:*"> 
    1717    <xsl:element name="{local-name()}" namespace="{$routing_1_0}"> 
  • branches/felix-testing-implementation/src/database/AgaviDoctrineDatabase.class.php

    r2785 r2965  
    2222 * @author     Ross Lawley <ross.lawley@gmail.com> 
    2323 * @author     David Zülke <dz@bitxtender.com> 
     24 * @author     TANAKA Koichi <tanaka@ensites.com> 
    2425 * @copyright  Authors 
    2526 * @copyright  The Agavi Project 
     
    7475   * @author     David Zülke <dz@bitxtender.com> 
    7576   * @author     Ross Lawley <ross.lawley@gmail.com> 
     77   * @author     TANAKA Koichi <tanaka@ensites.com> 
    7678   * @since      0.11.0 
    7779   */ 
     
    138140      } 
    139141       
     142      foreach((array)$this->getParameter('impls', array()) as $templateName => $className) { 
     143        $this->connection->setImpl($templateName, $className); 
     144      } 
     145       
     146      foreach((array)$this->getParameter('manager_impls', array()) as $templateName => $className) { 
     147        $this->doctrineManager->setImpl($templateName, $className); 
     148      } 
     149       
    140150      Doctrine::loadModels($this->getParameter('load_models'));  
    141151