Пример #1
0
    def post(self):
        o = self.json
        o.__dict__.update(is_del=DEL_FLAG.TRUE)
        News.news_upsert(o)

        self.finish()
Пример #2
0
    def post(self):
        o = self.json
        News.news_upsert(o)

        self.finish(o.__dict__)