Пример #1
0
def updateTimelineData(_article):
	timelineData = operatorDB.getTimelineData()
	startDate = time.strftime('%Y,%m,%d',time.localtime(_article._add_time))
	headline = _article._title
	text = '%s --- %sdetailpost/%s' % (_article._category,setting.BASE_URL,_article._id)
	_data = '%s,{"startDate":"%s","headline":"%s","text":"%s","asset":{"media":"","credit":"","caption":""}}' % (timelineData.timeline_data,startDate,headline,text)
	operatorDB.saveTimelineData(_data,timelineData.id)
Пример #2
0
def updateTimelineData(_article):
	timelineData = operatorDB.getTimelineData()
	startDate = time.strftime('%Y,%m,%d',time.localtime(_article._add_time))
	headline = _article._title
	text = '%s --- %sdetailpost/%s' % (_article._category,setting.BASE_URL,_article._id)
	_data = '%s,{"startDate":"%s","headline":"%s","text":"%s","asset":{"media":"","credit":"","caption":""}}' % (timelineData.timeline_data,startDate,headline,text)
	operatorDB.saveTimelineData(_data,timelineData.id)
Пример #3
0
def _timeline():
	_data = operatorDB.getTimelineData()
	rs = u'{"timeline":{"headline":"c-house的时间线","type":"default","text":"始于2012年7月","date": [%s]}}' % _data.timeline_data
	return render_template('timeline.html',rs=rs,coms=operatorDB.get_comments_new(),tags = operatorDB.get_all_tag_name(),cats=operatorDB.get_all_cat_name(),links=operatorDB.get_all_links())
Пример #4
0
def _timeline():
	_data = operatorDB.getTimelineData()
	rs = u'{"timeline":{"headline":"c-house的时间线","type":"default","text":"始于2012年7月","date": [%s]}}' % _data.timeline_data
	return render_template('timeline.html',rs=rs,coms=operatorDB.get_comments_new(),tags = operatorDB.get_all_tag_name(),cats=operatorDB.get_all_cat_name(),links=operatorDB.get_all_links())