equal
deleted
inserted
replaced
21 '"Todd Larsen" <tlarsen@google.com>', |
21 '"Todd Larsen" <tlarsen@google.com>', |
22 ] |
22 ] |
23 |
23 |
24 |
24 |
25 import re |
25 import re |
26 import logging |
|
27 |
26 |
28 from google.appengine.api import users |
27 from google.appengine.api import users |
29 from google.appengine.ext import db |
28 from google.appengine.ext import db |
30 |
29 |
31 from soc.logic import out_of_band |
30 from soc.logic import out_of_band |
134 return True |
133 return True |
135 else: |
134 else: |
136 return False |
135 return False |
137 |
136 |
138 def isIdUser(id=None): |
137 def isIdUser(id=None): |
139 """Returns True if a Google Account has it's soc.models.user.User entity in datastore. |
138 """Returns True if a Google Account has it's User entity in datastore. |
140 |
139 |
141 Args: |
140 Args: |
142 id: a Google Account (users.User) object; if id is not supplied, |
141 id: a Google Account (users.User) object; if id is not supplied, |
143 the current logged-in user is checked |
142 the current logged-in user is checked |
144 """ |
143 """ |