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:
- 943 Bytes
1 | module ContentState |
2 | class JustPublished < Published |
3 | include Singleton |
4 | |
5 | # We need to save the state as 'Published', but we need after_save |
6 | # to be handled by JustPublished. So, JustPublished tells Rails that |
7 | # it's *actually* Published and all shall be well. |
8 | def memento |
9 | 'ContentState::Published' |
10 | end |
11 | |
12 | def just_published? |
13 | true |
14 | end |
15 | |
16 | def just_changed_published_status? |
17 | true |
18 | end |
19 | |
20 | def published?(content) |
21 | true |
22 | end |
23 | |
24 | # def enter_hook(content) |
25 | # super |
26 | # end |
27 | |
28 | # def set_published_at(content, new_time) |
29 | # super |
30 | # end |
31 | |
32 | def send_notifications(content) |
33 | content.interested_users.each do |user| |
34 | content.send_notification_to_user(user) |
35 | end |
36 | end |
37 | |
38 | def send_pings(content) |
39 | content.really_send_pings |
40 | end |
41 | |
42 | def withdraw(content) |
43 | content[:published_at] = nil |
44 | content.state = Factory.new(:draft) |
45 | end |
46 | end |
47 | end |