From a7a8f4f9c9bbbd3bd16605235440dec29f581ad7 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 28 May 2012 16:49:36 +0000 Subject: Improvements to the hosted composite management app. Simplify and optimize the Web UI a bit. Add test cases and fix some of the logic in the management components. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1343316 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/hosting/server/accounts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sca-cpp/trunk/hosting/server/accounts.py') diff --git a/sca-cpp/trunk/hosting/server/accounts.py b/sca-cpp/trunk/hosting/server/accounts.py index 4415c69e62..3587f5fb65 100644 --- a/sca-cpp/trunk/hosting/server/accounts.py +++ b/sca-cpp/trunk/hosting/server/accounts.py @@ -16,17 +16,18 @@ # under the License. # Accounts collection implementation +from time import strftime from util import * # Convert a particular user id to an account id def accountid(user): - return ("accounts", user.id(), "user.account") + return ('accounts', user.get(()), 'user.account') # Get the current user's account def get(id, user, cache): account = cache.get(accountid(user)) if isNil(account) or account is None: - return () + return (("'entry", ("'title", user.get(())), ("'id", user.get(())), ("'updated", strftime('%b %d, %Y'))),) return account # Update the user's account -- cgit v1.2.3