def InitNewsList(self, datalist): reslist = [] if datalist: for data in datalist: if not data: continue data.createtime = Util.GetGamTime(data.createtime, True) data.content = Util.trimHtmlTag(data.content) reslist.append(data) return reslist
def InitEducationList(self, datalist): reslist = [] if datalist: for data in datalist: if not data: continue data.createtime = Util.GetGamTime(data.createtime, True) data.description = Util.trimHtmlTag(data.description) reslist.append(data) return reslist
def InitCourseList(self, datalist): reslist = [] if datalist: for data in datalist: if not data: continue data.createtime = Util.GetGamTime(data.createtime, True) data.description = Util.trimHtmlTag(data.description) if data.imagepath: data.imagepath = Util.getFileUrl(data.imagepath) reslist.append(data) return reslist
def InitCourseList(self, datalist): reslist = [] if datalist: for data in datalist: if not data: continue data.createtime = Util.GetGamTime(data.createtime, True) data.description = Util.trimHtmlTag(data.description) if data.imagepath: data.imagepath = Util.getFileUrl( data.imagepath) reslist.append(data) return reslist
def InitActivityList(self, datalist): reslist = [] if datalist: for data in datalist: if not data: continue if data.activity_date_start: data.activity_date_start = data.activity_date_start.strftime('%Y-%m-%d') if data.activity_date_end: data.activity_date_end = data.activity_date_end.strftime('%Y-%m-%d') data.description = Util.trimHtmlTag(data.description) reslist.append(data) #分页 return reslist
def InitActivityList(self, datalist): reslist = [] if datalist: for data in datalist: if not data: continue if data.activity_date_start: data.activity_date_start = data.activity_date_start.strftime( '%Y-%m-%d') if data.activity_date_end: data.activity_date_end = data.activity_date_end.strftime( '%Y-%m-%d') data.description = Util.trimHtmlTag(data.description) reslist.append(data) #分页 return reslist