Пример #1
0
def get_users_by_page_by_order(account, offset, limit, order_by, asc = "ASC"):
  """
  Retrieve chunks of users from users table by specifying offset
  """
  logging.info("Retrieving users for account: " + account.email + " and ordering by: " + order_by)
  users = Users.gql("WHERE accountRef = :1 ORDER BY " + order_by + " " + asc, account).fetch(limit, offset)
  
  return users
Пример #2
0
def get_users_by_page_by_order(account, offset, limit, order_by, asc="ASC"):
    """
  Retrieve chunks of users from users table by specifying offset
  """
    logging.info("Retrieving users for account: " + account.email +
                 " and ordering by: " + order_by)
    users = Users.gql("WHERE accountRef = :1 ORDER BY " + order_by + " " + asc,
                      account).fetch(limit, offset)

    return users