From d7069b5a2e7859ab14c5a909d5e5fc6bc84b80cb Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Thu, 3 Jan 2013 07:41:53 +0000 Subject: Improve app hosting management app, restructure UI and refactor REST services and data model to use an SQL database. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1428193 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/hosting/server/authn.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sca-cpp/trunk/hosting/server/authn.py') diff --git a/sca-cpp/trunk/hosting/server/authn.py b/sca-cpp/trunk/hosting/server/authn.py index 4d4f34b9fb..02c24a2852 100644 --- a/sca-cpp/trunk/hosting/server/authn.py +++ b/sca-cpp/trunk/hosting/server/authn.py @@ -16,7 +16,6 @@ # under the License. # User authenticator implementation -from time import strftime from util import * # Convert a particular user id to an authentication id @@ -26,7 +25,7 @@ def authnid(id): # Get a user's authentication def get(id, cache): authn = cache.get(authnid(id)) - if isNil(authn) or authn is None: + if isNil(authn): return None return authn -- cgit v1.2.3