Skip to content
synpey edited this page Sep 13, 2010 · 6 revisions

CLASS

Py2chdler

  • settings
    • base_dir
    • bbsmenu_url
  • init()
  • get_boards(board_names)
  • get_board(board_name)
  • get_threads(thread_ids)
  • get_thread(thread_id)
  • get_reses(start,end)
  • get_res(res’s id)
  • get_new_reses()

libpy2chdler.Base

  • http_get(url, mtime=None, size=None, compress=None)
  • donwnload(url, filepath)
  • write_file(filepath, data, add=False)
  • read_file(filepath)
  • read_raw_file(filepath)
  • copy_file(from_filepath)
  • convert_time_format(inp_time, change_tz=True)
  • set_mtime(filepath, mtime)

libpy2chdler.Bbsmenu

  • settings
  • filepath
  • filepath_old
  • url
  • init()
  • read()
  • read_raw()

libpy2chdler.Board

  • bbsmenu
  • name
  • name_alphabet
  • url
  • filepath
  • filepath_old
  • dir_path
  • init()
  • read()
  • read_raw()

libpy2chdler.Thread

  • board
  • id
  • url
  • filepath
  • filepath_old
  • init(board, thread_id, title)
  • read()
  • read_raw()

libpy2chdler.Res

  • thread
  • id
  • username
  • email
  • posted_raw
  • posted_epoc
  • user_id
  • content
  • new
  • init(thread, id, username, posted, user_id, content)