Beispiel #1
0
 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
Beispiel #2
0
 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
Beispiel #3
0
 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
Beispiel #4
0
 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
Beispiel #5
0
 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
Beispiel #6
0
 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
Beispiel #7
0
 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
Beispiel #8
0
 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