[Erp5-report] r40386 kazuhiko - in /erp5/trunk/products/ERP5Security: ./ tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Nov 18 17:03:58 CET 2010
Author: kazuhiko
Date: Thu Nov 18 17:03:58 2010
New Revision: 40386
URL: http://svn.erp5.org?rev=40386&view=rev
Log:
literal changes only.
Modified:
erp5/trunk/products/ERP5Security/ERP5ExternalAuthenticationPlugin.py
erp5/trunk/products/ERP5Security/tests/testERP5Security.py
Modified: erp5/trunk/products/ERP5Security/ERP5ExternalAuthenticationPlugin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Security/ERP5ExternalAuthenticationPlugin.py?rev=40386&r1=40385&r2=40386&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Security/ERP5ExternalAuthenticationPlugin.py [utf8] (original)
+++ erp5/trunk/products/ERP5Security/ERP5ExternalAuthenticationPlugin.py [utf8] Thu Nov 18 17:03:58 2010
@@ -1,14 +1,13 @@
# -*- coding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
-# Francois-Xavier Algrain <fxalgrain at tiolive.com>
+# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
+# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
+# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
@@ -55,7 +54,7 @@ def addERP5ExternalAuthenticationPlugin(
REQUEST=None):
""" Add a ERP5ExternalAuthenticationPlugin to a Pluggable Auth Service. """
- plugin = ERP5ExternalAuthenticationPlugin( id, title, user_id_key)
+ plugin = ERP5ExternalAuthenticationPlugin(id, title, user_id_key)
dispatcher._setObject(plugin.getId(), plugin)
if REQUEST is not None:
@@ -121,7 +120,7 @@ class ERP5ExternalAuthenticationPlugin(E
# IAuthenticationPlugin #
################################
security.declarePrivate('authenticateCredentials')
- def authenticateCredentials( self, credentials ):
+ def authenticateCredentials(self, credentials):
"""Authentificate with credentials"""
login = credentials.get('external_login', None)
# Forbidden the usage of the super user.
@@ -189,9 +188,9 @@ class ERP5ExternalAuthenticationPlugin(E
manage_editERP5ExternalAuthenticationPluginForm = PageTemplateFile(
'www/ERP5Security_editERP5ExternalAuthenticationPlugin',
globals(),
- __name__='manage_editERP5ExternalAuthenticationPluginForm' )
+ __name__='manage_editERP5ExternalAuthenticationPluginForm')
- security.declareProtected( ManageUsers, 'manage_editERP5ExternalAuthenticationPlugin' )
+ security.declareProtected(ManageUsers, 'manage_editERP5ExternalAuthenticationPlugin')
def manage_editERP5ExternalAuthenticationPlugin(self, user_id_key, RESPONSE=None):
"""Edit the object"""
error_message = ''
@@ -211,7 +210,7 @@ class ERP5ExternalAuthenticationPlugin(E
message = "Updated"
RESPONSE.redirect('%s/manage_editERP5ExternalAuthenticationPluginForm'
'?manage_tabs_message=%s'
- % ( self.absolute_url(), message )
+ % (self.absolute_url(), message)
)
#List implementation of class
Modified: erp5/trunk/products/ERP5Security/tests/testERP5Security.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Security/tests/testERP5Security.py?rev=40386&r1=40385&r2=40386&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Security/tests/testERP5Security.py [utf8] (original)
+++ erp5/trunk/products/ERP5Security/tests/testERP5Security.py [utf8] Thu Nov 18 17:03:58 2010
@@ -270,7 +270,7 @@ class TestUserManagement(ERP5TypeTestCas
def test_MultiplePersonReferenceConcurrentTransaction(self):
"""
Tests that it's refused to create two Persons with same reference.
- Check if both persons are created in 2 concurrent transactions.
+ Check if both persons are created in 2 concurrent transactions.
For now, just verify that serialize is called on person_module.
"""
class DummyTestException(Exception):
@@ -705,7 +705,7 @@ class TestLocalRoleManagement(ERP5TypeTe
assignment.open()
self.stepTic()
- # encrypt & decrypt works
+ # encrypt & decrypt works
key = erp5_auth_key_plugin.encrypt(reference)
self.assertNotEquals(reference, key)
self.assertEquals(reference, erp5_auth_key_plugin.decrypt(key))
@@ -717,7 +717,7 @@ class TestLocalRoleManagement(ERP5TypeTe
self.assertEqual(response.getStatus(), 302)
self.assertTrue('location' in response.headers.keys())
self.assertTrue(response.headers['location'].endswith('login_form'))
-
+
# view front page we should be logged in if we use authentication key
response = self.publish('%s?__ac_key=%s' %(base_url, key))
self.assertEqual(response.getStatus(), 200)
More information about the Erp5-report
mailing list