Example #1
0
  def create(self,op):

    data = {
        "op" : op,
        "id" : self.thread,
        "board" : self.board,
        "subject" : op.get("subject"),
    }

    self.cache = Cache.create("thread", self.board, self.thread)
    self.cache.data = render_template("thread.html", 
        thread = data,
	threads = [data],
        board = self.board,
        board_name = NAMES.get(self.board) or get_config("aib",
          "default_name"),
        boards = get_config("aib", "boardlist"), # context?
    )
Example #2
0
  def load(self,):
    self.cache = Cache.load("thread", self.board, self.thread)

    if not self.cache:
      self.cache = Cache.create("thread", self.board, self.thread)