예제 #1
0
파일: mlink.py 프로젝트: hitrustnet/TorCMS
    def __init__(self):
        self.tab = CabLink
        try:

            CabLink.create_table()

            self.tab.create_table()

        except:
            pass
예제 #2
0
    def __init__(self):
        self.tab = CabLink
        try:

            CabLink.create_table()

            self.tab.create_table()

        except:
            pass
예제 #3
0
    def update(self, uid, post_data, update_time=False):

        if update_time:

            entry = CabLink.update(
                name=post_data['name'][0],
                link=post_data['link'][0],
                order=post_data['order'][0],
            ).where(CabLink.uid == uid)
        else:
            entry = CabLink.update(
                name=post_data['name'][0],
                link=post_data['link'][0],
                order=post_data['order'][0],
            ).where(CabLink.uid == uid)
        entry.execute()
예제 #4
0
파일: mlink.py 프로젝트: iicc/TorCMS
 def update(self, uid, post_data, update_time=False):
     entry = CabLink.update(
             name=post_data['name'][0],
             link=post_data['link'][0],
             order=post_data['order'][0],
             logo = post_data['logo'][0],
         ).where(CabLink.uid == uid)
     entry.execute()