Ejemplo n.º 1
0
 def GET(self,pagenum):
     #listdata = [] #init listdata
     #i = 0
     #listdata.append(ListDataLite(i,'Index','2010-10-04 21:43:00'))
     #i=i+1
     #listdata.append(ListDataLite(i,'About this site','2010-10-05 10:58:00','/webpy/about'))
     #i=i+1
     #listdata.append(ListDataLite(i,'Shi','2010-10-05 16:47:10','/webpy/index'))
     #params = {'pagenum':int(pagenum),'listdata':listdata}
     #return themerender.render('list','archiveslist','','',params)
     contentslite = cms_sqlite_model.get_all_contents_lite()
     params = {'listdata':contentslite}
     return themerender.render('list','list','','',params)
Ejemplo n.º 2
0
 def GET(self):
     #get all cms content lite
     contentslite = cms_sqlite_model.get_all_contents_lite()
     params = {'listdata':contentslite}
     return cms_themerender.render('/cms/index','cms_alllist',
     'cms',cmssidebar,params)