Beispiel #1
0
 def index(self, *args, **kwargs):
     tags = SystemInfoModel.getAllTagList()
     tagList = []
     for tag in tags:
         if tag['count'] > 12:
             tag['size'] = 12
         else:
             tag['size'] = tag['count']
         tagList.append(tag)
     return self.renderTemplate('tags/index.html', tagList=tagList)
Beispiel #2
0
 def index(self, *args, **kwargs):
     tags = SystemInfoModel.getAllTagList()
     tagList = []
     for tag in tags:
         if tag['count'] > 12:
             tag['size'] = 12
         else:
             tag['size'] = tag['count']
         tagList.append(tag)
     return self.renderTemplate('tags/index.html', tagList=tagList)
Beispiel #3
0
def testReq():
    tagList = SystemInfoModel.getAllTagList()[:5]
    shared.tagList = tagList