wiki:GROUP_TEMPLATES_R2
Last modified 3 years ago Last modified on 07/08/09 15:59:00

Pages linking to GROUP_TEMPLATES_R2:
GROUP_TEMPLATES_R3

Ticket Summary Owner Status Type Component Priority Effort Importance
#1767 GROUP_TEMPLATES_R2 jani closed unplanned_task BASE_BOOK_MODEL major 55

Reported by jani, 3 years ago.

Description

GROUP_TEMPLATES_R2

Analysis_score

0

Design_score

0

Imp._score

0

Test_score

0

Ticket Summary Owner Status Type Component Priority Effort Importance
No tickets found

Analysis

Overview

  • Templates and resources are not independent, so they should be somewhat integrated to each other.
  • Book templates should behave in such a way that when it is edited, the created book should reflect the changes.

Task requirements

  • The goal of this revision is to integrate templates with resources.
  • Book templates should also be refactored.

Task result

  • The result of this task should be source code.

Implementation idea

  • Consider adding a property template() to the Resource class. Thus, each resource can have a template which is a ResourceRef.
  • 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.
  • 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.

How to demo

  • Start Sophie2.
  • Create a book from a book template.
  • Open and edit the template.
  • Show that the new book also changed.

Design

(Describe your design here.)

Implementation

(Describe and link the implementation results here (from the wiki or the repository).)

Testing

(Place the testing results here.)

Comments

(Write comments for this or later revisions here.)