Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 777 Bytes
1 | |
2 | module ContentState |
3 | class JustPresumedHam < PresumedHam |
4 | include Singleton |
5 | |
6 | def memento |
7 | 'ContentState::PresumedHam' |
8 | end |
9 | |
10 | def enter_hook(content) |
11 | logger.debug("#{content} entering state Content::JustPresumedHam") |
12 | content[:published] = true |
13 | content[:status_confirmed] = false |
14 | end |
15 | |
16 | def exit_hook(content, target_state) |
17 | logger.debug("#{content} leaving state Content::JustPresumedHam") |
18 | end |
19 | |
20 | def just_published? |
21 | true |
22 | end |
23 | |
24 | def just_changed_published_status? |
25 | true |
26 | end |
27 | |
28 | def send_notifications(content) |
29 | content.interested_users.each do |user| |
30 | content.send_notification_to_user(user) |
31 | end |
32 | end |
33 | |
34 | def send_pings(content) |
35 | content.really_send_pings |
36 | end |
37 | end |
38 | end |