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

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=GROUP_TEMPLATES_R2, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

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.)