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:
- 760 Bytes
1 | class TypoWebService < ActionWebService::Base |
2 | attr_accessor :controller |
3 | |
4 | def initialize(controller) |
5 | @controller = controller |
6 | end |
7 | |
8 | def this_blog |
9 | controller.send(:this_blog) |
10 | end |
11 | |
12 | protected |
13 | |
14 | def authenticate(name, args) |
15 | method = self.class.web_service_api.api_methods[name] |
16 | |
17 | # Coping with backwards incompatibility change in AWS releases post 0.6.2 |
18 | begin |
19 | h = method.expects_to_hash(args) |
20 | raise "Invalid login" unless @user=User.authenticate(h[:username], h[:password]) |
21 | rescue NoMethodError |
22 | username, password = method[:expects].index(:username=>String), method[:expects].index(:password=>String) |
23 | raise "Invalid login" unless @user = User.authenticate(args[username], args[password]) |
24 | end |
25 | end |
26 | end |