diff -r 52557918ec8f -r aae25d2b4464 app/soc/logic/accounts.py --- a/app/soc/logic/accounts.py Thu Nov 20 18:06:43 2008 +0000 +++ b/app/soc/logic/accounts.py Thu Nov 20 18:50:30 2008 +0000 @@ -113,17 +113,17 @@ # TODO(tlarsen): make this generic for any Linkable and move elsewhere -def getUserFromLinkNameOr404(link_name): - """Like getUserFromLinkName but expects to find a user. +def getUserFromLinkIdOr404(link_id): + """Like getUserFromLinkId but expects to find a user. Raises: out_of_band.ErrorResponse if no User entity is found """ - user = models.user.logic.getForFields({'link_name': link_name}, + user = models.user.logic.getForFields({'link_id': link_id}, unique=True) if user: return user raise out_of_band.ErrorResponse( - 'There is no user with a "link name" of "%s".' % link_name, status=404) + 'There is no user with a "link ID" of "%s".' % link_id, status=404)