app/soc/logic/accounts.py
changeset 2345 f78caf12f32d
parent 1619 66f944747562
--- a/app/soc/logic/accounts.py	Mon May 25 22:59:33 2009 +0200
+++ b/app/soc/logic/accounts.py	Mon May 25 22:59:56 2009 +0200
@@ -35,6 +35,13 @@
   return normalizeAccount(account) if (account and normalize) else account
 
 
+def getCurrentUserId():
+  """Returns a unique id of the current user.
+  """
+
+  return users.get_current_user().user_id()
+
+
 def normalizeAccount(account):
   """Returns a normalized version of the specified account.
   """
@@ -46,6 +53,7 @@
 
   return users.User(email=normalized)
 
+
 def denormalizeAccount(account):
   """Returns a denormalized version of the specified account.
   """
@@ -58,6 +66,7 @@
 
   return users.User(email=denormalized)
 
+
 def isDeveloper(account=None):
   """Returns True if a Google Account is a Developer with special privileges.