Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 955 Bytes
1 | module ContentState |
2 | class New < Base |
3 | include Reloadable |
4 | include Singleton |
5 | class << self |
6 | def derivable_from(content) |
7 | content.new_record? && |
8 | !content.published && |
9 | content.published_at.nil? |
10 | end |
11 | end |
12 | |
13 | def serialize_on(content) |
14 | content[:published] = false |
15 | content[:published_at] = nil |
16 | true |
17 | end |
18 | |
19 | def before_save(content) |
20 | super |
21 | content.state = Draft.instance |
22 | end |
23 | |
24 | def change_published_state(content, boolean) |
25 | content[:published] = boolean |
26 | if content.published |
27 | content.state = JustPublished.instance |
28 | end |
29 | end |
30 | |
31 | def set_published_at(content, new_time) |
32 | content[:published_at] = new_time |
33 | return if new_time.nil? |
34 | if new_time <= Time.now |
35 | content.state = JustPublished.instance |
36 | else |
37 | content.state = PublicationPending.instance |
38 | end |
39 | end |
40 | |
41 | def draft? |
42 | true |
43 | end |
44 | end |
45 | end |