Changes between Version 2 and Version 3 of GROUP_TEMPLATES_R2


Ignore:
Timestamp:
07/08/09 15:59:00 (16 years ago)
Author:
jani
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GROUP_TEMPLATES_R2

    v2 v3  
    66 
    77= Analysis = 
    8 ^(Give as much as possible of the needed information for designing and implementing the task in the following sections.)^ 
    98 
    109== Overview == 
    11 ^(Provide a brief overview of the whole task in its first revision. Stick to the current revision of the task, but keep an eye to the whole task progress, and stay alert for possible smells.)^ 
     10 * Templates and resources are not independent, so they should be somewhat integrated to each other. 
     11 * Book templates should behave in such a way that when it is edited, the created book should reflect the changes. 
    1212 
    1313== Task requirements == 
    14 ^(List the necessary requirements that the task must fulfill.)^ 
     14 * The goal of this revision is to integrate templates with resources. 
     15 * Book templates should also be refactored. 
    1516 
    1617== Task result == 
    17 ^(List the end product of the task (for example "Source code", "Wiki page", etc.))^ 
     18 * The result of this task should be source code. 
    1819 
    1920== Implementation idea == 
    20 ^(Provide some rough implementation idea(s).)^ 
     21 * Consider adding a property template() to the Resource class. Thus, each resource can have a template which is a ResourceRef. 
     22 * Non-resource classes can calculate the value of their properties through the parent() property, if it is a resource, or through the parent's parent, and so on. 
     23 * Creating a book from a book template can be described like this: for each page in the template, create a page that has the original page as a template. 
    2124 
    2225== Related == 
    23 ^(Add links to related tasks that could be useful or helpful.)^ 
     26 * book model: [source:/trunk/sophie2-platform/modules/org.sophie2.base.model.book] 
     27 * [wiki:GROUP_TEMPLATES_R0] 
     28 * [wiki:GROUP_TEMPLATES_R1] 
    2429 
    2530== How to demo == 
    26 ^(Provide instructions for demonstration of the task.)^ 
     31 * Start Sophie2. 
     32 * Create a book from a book template. 
     33 * Open and edit the template. 
     34 * Show that the new book also changed. 
    2735 
    2836= Design =