Exemple #1
0
 def download_contents(self,idx):
     # if post was not totally retrieved yet, fetch all data
     # only call this function if you have posts
     if BLOG.posts[idx].has_key('description') == False:
         self.lock_ui(LABELS.loc.pt_info_downld_post)
         ok = BLOG.get_post(idx)
         self.unlock_ui()
         if not ok:
             note(LABELS.loc.pt_err_cant_pst_cont, "error")
             return False
         
     return True