def _decode_post(self, forum, thread, dct):
     if self._debug:
         print "decode_post: %r" % dct
     if not dct:
         return None
     return Post(
         id=dct.get("id"),
         forum=forum,
         thread=thread,
         created_at=parseDateClass(dct.get("created_at")),
         message=dct.get("message"),
         parent_post_id=dct.get("parent_post"),
         shown=dct.get("shown"),
         is_anonymous=dct.get("is_anonymous"),
         anonymous_author=self._decode_anonymous_author(dct.get("anonymous_author")),
         author=self._decode_author(dct.get("author")),
     )
 def _decode_thread(self, forum, dct):
     if self._debug:
         print "decode_thread: %r" % dct
     if not dct:
         return None
     return Thread(
         service=self,
         id=dct.get("id"),
         forum=forum,
         slug=dct.get("slug"),
         title=dct.get("title"),
         created_at=parseDateClass(dct.get("created_at")),
         # created_at=dct.get("created_at"),
         allow_comments=dct.get("allow_comments"),
         url=dct.get("url"),
         identifier=dct.get("identifier"),
     )