Merge lp:~stefanor/ibid/ibid-plugin-authenticate into lp:~ibid-core/ibid/old-trunk-1.6

Proposed by Stefano Rivera
Status: Merged
Approved by: Stefano Rivera
Approved revision: 1019
Merged at revision: 1023
Proposed branch: lp:~stefanor/ibid/ibid-plugin-authenticate
Merge into: lp:~ibid-core/ibid/old-trunk-1.6
Diff against target: 23 lines (+7/-1)
1 file modified
scripts/ibid-plugin (+7/-1)
To merge this branch: bzr merge lp:~stefanor/ibid/ibid-plugin-authenticate
Reviewer Review Type Date Requested Status
Max Rabkin Approve
Jonathan Hitchcock Approve
Review via email: mp+51460@code.launchpad.net

Commit message

Add an authenticate function to FakeAuth

To post a comment you must log in.
Revision history for this message
Max Rabkin (max-rabkin) :
review: Approve
Revision history for this message
Jonathan Hitchcock (vhata) :
review: Approve
Revision history for this message
Ibid Branch Auto-Lander (ibid-tarmac) wrote :

Attempt to merge into lp:ibid failed due to conflicts:

text conflict in scripts/ibid-plugin

Revision history for this message
Ibid Branch Auto-Lander (ibid-tarmac) wrote :

There are additional revisions which have not been approved in review. Please seek review and approval of these new revisions.

Revision history for this message
Max Rabkin (max-rabkin) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'scripts/ibid-plugin'
2--- scripts/ibid-plugin 2010-10-26 12:04:19 +0000
3+++ scripts/ibid-plugin 2011-03-15 10:01:24 +0000
4@@ -1,5 +1,5 @@
5 #!/usr/bin/env python
6-# Copyright (c) 2009-2010, Michael Gorven, Stefano Rivera, Max Rabkin
7+# Copyright (c) 2009-2011, Michael Gorven, Stefano Rivera, Max Rabkin
8 # Released under terms of the MIT/X/Expat Licence. See COPYING for details.
9
10 from locale import getpreferredencoding
11@@ -48,6 +48,12 @@
12 def authorise(self, event, permission):
13 return True
14
15+ def authenticate(self, event, credential=None):
16+ return True
17+
18+ def drop_caches(self):
19+ return
20+
21 ibid.auth = FakeAuth()
22 logging.basicConfig(level=logging.DEBUG)
23 ibid.config = FileConfig("ibid.ini")

Subscribers

People subscribed via source and target branches