diff options
Diffstat (limited to 'sca-cpp/trunk/hosting/server/accounts.py')
-rw-r--r-- | sca-cpp/trunk/hosting/server/accounts.py | 5 |
1 files changed, 3 insertions, 2 deletions
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 |