예제 #1
0
파일: mwiki.py 프로젝트: daimon99/TorCMS
 def get_by_wiki(self, citiao):
     tt = CabWiki.select().where(CabWiki.title == citiao).count()
     if tt == 0:
         return None
     else:
         self.update_view_count(citiao)
         return CabWiki.get(CabWiki.title == citiao)
예제 #2
0
 def get_by_wiki(self, citiao):
     tt = CabWiki.select().where(CabWiki.title == citiao).count()
     if tt == 0:
         return None
     else:
         self.update_view_count(citiao)
         return CabWiki.get(CabWiki.title == citiao)
예제 #3
0
파일: mwiki.py 프로젝트: daimon99/TorCMS
 def get_by_title(self, in_title):
     try:
         return CabWiki.get(CabWiki.title == in_title)
     except:
         return None
예제 #4
0
파일: mwiki.py 프로젝트: daimon99/TorCMS
 def get_by_id(self, in_uid):
     tt = CabWiki.select().where(CabWiki.uid == in_uid).count()
     if tt == 0:
         return None
     else:
         return CabWiki.get(CabWiki.uid == in_uid)
예제 #5
0
 def get_by_title(self, in_title):
     try:
         return CabWiki.get(CabWiki.title == in_title)
     except:
         return None
예제 #6
0
 def get_by_id(self, in_uid):
     tt = CabWiki.select().where(CabWiki.uid == in_uid).count()
     if tt == 0:
         return None
     else:
         return CabWiki.get(CabWiki.uid == in_uid)