def test_sort(): show_news_create_time() global x local_news = x.get_all_info() news = Documents.sort_news_by_time(local_news) print '____________________________________________________' for i in news: print i.get_create_time() #do not new.get here
def test_sort(): show_news_create_time() global x local_news = x.get_all_info() news = Documents.sort_news_by_time(local_news); print '____________________________________________________' for i in news: print i.get_create_time()#do not new.get here