app/soc/logic/site/id_user.py
changeset 230 cb2c7ae5424d
parent 229 a46c238be8db
child 245 b14c2c4d3484
equal deleted inserted replaced
229:a46c238be8db 230:cb2c7ae5424d
   146 
   146 
   147 def findNearestUsersOffset(width, id=None, link_name=None):
   147 def findNearestUsersOffset(width, id=None, link_name=None):
   148   """Finds offset of beginning of a range of Users around the nearest User.
   148   """Finds offset of beginning of a range of Users around the nearest User.
   149   
   149   
   150   Args:
   150   Args:
   151     limit: the width of the "found" window around the nearest User found 
   151     width: the width of the "found" window around the nearest User found 
   152     id: a Google Account (users.User) object, or None
   152     id: a Google Account (users.User) object, or None
   153     link_name: link name input in the Lookup form or None if not supplied.
   153     link_name: link name input in the Lookup form or None if not supplied.
   154     
   154     
   155   Returns:
   155   Returns:
   156     an offset into the list of Users that is width/2 less than the
   156     an offset into the list of Users that is width/2 less than the