コード例 #1
0
ファイル: mpost_hist.py プロジェクト: daimon99/TorCMS
    def insert_data(self, raw_data):

        uid = tools.get_uuid()
        try:
            CabPostHist.create(
                uid=uid,
                title=raw_data.title,
                date=raw_data.date,
                post_id=raw_data.uid,
                time_create=raw_data.time_create,
                user_name=raw_data.user_name,
                cnt_md=raw_data.cnt_md,
                time_update=raw_data.time_update,
                id_spec=raw_data.id_spec,
                logo=raw_data.logo,
            )
            return (uid)
        except:
            return False
コード例 #2
0
    def insert_data(self, raw_data):

        uid = tools.get_uuid()
        try:
            CabPostHist.create(
                uid=uid,
                title=raw_data.title,
                date=raw_data.date,
                post_id=raw_data.uid,
                time_create=raw_data.time_create,
                user_name=raw_data.user_name,
                cnt_md=raw_data.cnt_md,
                time_update=raw_data.time_update,
                id_spec=raw_data.id_spec,
                logo=raw_data.logo,
            )
            return (uid)
        except:
            return False
コード例 #3
0
ファイル: mpost_hist.py プロジェクト: Geoion/TorCMS
 def insert_data(self, raw_data):
     print('============')
     print(raw_data.uid)
     print('--------------')
     uid = str(uuid.uuid1())
     entry = CabPostHist.create(
         uid=uid,
         title=raw_data.title,
         date=raw_data.date,
         post_id=raw_data.uid,
         time_create=raw_data.time_create,
         user_name=raw_data.user_name,
         cnt_md=raw_data.cnt_md,
         time_update=raw_data.time_update,
         id_spec=raw_data.id_spec,
         logo=raw_data.logo,
     )
     return (uid)
コード例 #4
0
ファイル: mpost_hist.py プロジェクト: wang12xishan/TorCMS
 def insert_data(self, raw_data):
     print('============')
     print(raw_data.uid)
     print('--------------')
     uid = str(uuid.uuid1())
     entry = CabPostHist.create(
         uid=uid,
         title=raw_data.title,
         date=raw_data.date,
         post_id=raw_data.uid,
         time_create=raw_data.time_create,
         user_name=raw_data.user_name,
         cnt_md=raw_data.cnt_md,
         time_update=raw_data.time_update,
         id_spec=raw_data.id_spec,
         logo=raw_data.logo,
     )
     return (uid)