Ticket #834 (closed task: fixed)

Opened 4 months ago

Last modified 4 months ago

Redesign module.xml completely to allow arbitrary settings

Reported by: david Owned by: david
Priority: high Milestone: 1.0
Component: config Version:
Severity: minor Keywords:
Cc: Patch attached: no

Description

So it looks like this.

<ae:configurations
  xmlns="http://agavi.org/agavi/config/parts/module/1.0"
  xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0"
>
  <ae:configuration>
    
    <module name="Default" enabled="false">
      
      <settings>
        <setting name="title">Default Agavi Sample App Module</setting>
        <setting name="version">1.0</setting>
        <setting name="authors">
          <ae:parameter name="foo.bar@lol.com">Foo Bar</ae:parameter>
          <ae:parameter>Joe Cool</ae:parameter>
        </setting>
      </settings>
      
      <settings prefix="modules.${moduleName}.foo">
        <setting name="bar">baz</setting>
      </settings>
    
    </module>
  
  </ae:configuration>
</ae:configurations>

BC can be maintained via XSL.

Careful:

  • module name gets lowercased for the directives
  • <author> can have an "email" attribute right now
  • enabled should not be changeable once set

Also a prerequisite for #668.

Attachments

Change History

Changed 4 months ago by david

(In [2761]) branching off 1.0 to work on module.xml overhaul, refs #834

Changed 4 months ago by david

(In [2771]) New module.xml config handler with new module.xml format (example is in the sample app). no schema yet. refs #834

Changed 4 months ago by david

  • status changed from new to assigned

we don't really need the name anymore... it's just a PITA. let's get rid of it :)

Changed 4 months ago by david

(In [2776]) got rid of the requirement to specify the module name in module.xml (so redundant...), refs #834

Changed 4 months ago by david

(In [2777]) new build system module.xml code template, refs #834

Changed 4 months ago by david

(In [2778]) first take at a module.rng; impl please revisit (not sure bout attribute data types). was damn easy though. <3 RNG. refs #834

Changed 4 months ago by david

(In [2781]) cleaned up module.rng, refs #834

Changed 4 months ago by david

  • status changed from assigned to closed
  • resolution set to fixed

(In [2782]) merging in contents from source:/branches/david-module_dot_xml_redesign@2781 (and amended CHANGELOG), closes #834

Changed 4 months ago by david

(In [2783]) release notes for [2782], refs #834

Changed 4 months ago by david

(In [2784]) something I forgot in [2783], refs #834

Changed 4 months ago by felix

(In [2785]) Merged revisions 2727-2730,2733-2734,2740,2742-2743,2751,2753-2755,2758-2760,2762,2764,2767,2769,2774,2782-2784 via svnmerge from http://svn.agavi.org/branches/1.0

........

r2727 | felix | 2008-08-27 20:35:26 +0200 (Wed, 27 Aug 2008) | 13 lines

Merges the changes from http://svn.agavi.org/branches/felix-strict_action_view_model_naming_scheme

CHG: Allow per-module config_handlers.xml (#826) (Felix) CHG: Allow action-style subdirectory dot notation for models (#631) (Felix) CHG: Sanity checks in AgaviExecutionContainer::set*Name() need refactoring (#780) (Felix) CHG: Throw out legacy naming schemes support and support autoloading of Actions, Views and Models (#829) (Felix)

fixes #826 fixes #631 fixes #780 fixes #829

In branches/1.0

........

r2728 | felix | 2008-08-27 20:36:06 +0200 (Wed, 27 Aug 2008) | 1 line

adds the changelog entries for r2727

........

r2729 | david | 2008-08-27 20:48:17 +0200 (Wed, 27 Aug 2008) | 1 line

CHG => ADD where appropriate in CHANGELOG, refs #826 and #631

........

r2730 | felix | 2008-08-28 10:19:57 +0200 (Thu, 28 Aug 2008) | 1 line

fixed typo in the changelog :)

........

r2733 | david | 2008-08-29 22:16:15 +0200 (Fri, 29 Aug 2008) | 1 line

merge [2686:2732/branches/0.11]

........

r2734 | david | 2008-08-29 22:19:14 +0200 (Fri, 29 Aug 2008) | 1 line

Add config option to run arbitrary SQL commands after connecting to a MySQLi database, closes #831 and refs #646 (also see [2732])

........

r2740 | david | 2008-08-30 22:48:57 +0200 (Sat, 30 Aug 2008) | 1 line

merging [2739] and removing changelog entry for the (now) duplicate committed in [2734], refs #831 and #604

........

r2742 | david | 2008-08-31 00:42:21 +0200 (Sun, 31 Aug 2008) | 1 line

1.0.0beta2 release preparation

........

r2743 | david | 2008-08-31 00:45:20 +0200 (Sun, 31 Aug 2008) | 1 line

merge [2733:2742/branches/0.11]

........

r2751 | david | 2008-08-31 18:34:22 +0200 (Sun, 31 Aug 2008) | 1 line

merge [2750/branches/0.11]

........

r2753 | david | 2008-08-31 18:44:16 +0200 (Sun, 31 Aug 2008) | 1 line

merge [2752/branches/0.11]

........

r2754 | david | 2008-08-31 19:02:25 +0200 (Sun, 31 Aug 2008) | 1 line

update release notes with info on modules, actions, views and models

........

r2755 | felix | 2008-09-01 10:47:28 +0200 (Mon, 01 Sep 2008) | 1 line

removed passing of an exception to createSystemActionForwardContainer(), the exception does not get thrown any more

........

r2758 | david | 2008-09-02 18:59:07 +0200 (Tue, 02 Sep 2008) | 1 line

changelog for [2755], refs #835

........

r2759 | david | 2008-09-02 19:02:11 +0200 (Tue, 02 Sep 2008) | 1 line

code standards cleanup

........

r2760 | david | 2008-09-02 21:15:58 +0200 (Tue, 02 Sep 2008) | 1 line

add forgotten word from [2758] to CHANGELOG for [2755], refs #835

........

r2762 | david | 2008-09-03 10:59:44 +0200 (Wed, 03 Sep 2008) | 1 line

Fixed #836: AgaviXmlConfigXsltProcessor::transformToDoc() does not check parent return value

........

r2764 | david | 2008-09-03 12:12:02 +0200 (Wed, 03 Sep 2008) | 1 line

Fix #837: AgaviXmlConfigXsltProcessor::transformToDoc() does not throw exceptions on runtime warnings

........

r2767 | david | 2008-09-03 17:45:35 +0200 (Wed, 03 Sep 2008) | 1 line

Fixed #840: AgaviXmlConfigDomElement::getIterator() uses incorrect XPath expressions

........

r2769 | david | 2008-09-03 17:50:45 +0200 (Wed, 03 Sep 2008) | 1 line

Added AgaviXmlConfigDomElement::hasAgaviParameters(), closes #841

........

r2774 | david | 2008-09-03 18:12:27 +0200 (Wed, 03 Sep 2008) | 1 line

merge [2753:2772/branches/0.11] (ported change from [2772] to AgaviController::initializeModule(), refs #839

........

r2782 | david | 2008-09-04 14:25:59 +0200 (Thu, 04 Sep 2008) | 1 line

merging in contents from source:/branches/david-module_dot_xml_redesign@2781 (and amended CHANGELOG), closes #834

........

r2783 | david | 2008-09-04 14:29:04 +0200 (Thu, 04 Sep 2008) | 1 line

release notes for [2782], refs #834

........

r2784 | david | 2008-09-04 14:30:09 +0200 (Thu, 04 Sep 2008) | 1 line

something I forgot in [2783], refs #834

........

Add/Change #834 (Redesign module.xml completely to allow arbitrary settings)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.