def s3_store_last_record_id(tablename, record_id):
 session = current.session
 try:
  record_id = long(record_id)
 except ValueError:
  return False
 if (RCVARS not in session):
  session[RCVARS] = Storage({tablename: record_id})
 else:
  session[RCVARS][tablename] = record_id
 return True

def s3_store_last_record_id ( tablename , record_id ) : session = current . session try : record_id = long ( record_id ) except ValueError : return False if ( RCVARS not in session ) : session [ RCVARS ] = Storage ( { tablename : record_id } ) else : session [ RCVARS ] [ tablename ] = record_id return True
stores a record id for a resource in a session .