Exemple #1
0
    def post(self):
        id = self.get_argument('id')
        name = self.get_argument('name', None)
        pic = self.get_argument('pic', None)
        career_id_list = map(int, self.get_arguments('career', ()))

        admin_id = self.current_user.id
        user = Zsite.mc_get(id)

        if career_id_list:
            for career_id in career_id_list:
                career_rm(career_id, int(id))
            from model.zsite_verify import zsite_verify_ajust
            zsite_verify_ajust(user)
        if name:
            zsite_name_rm(id)
        if pic:
            from model.ico import ico
            pic_no(ico.get(id), admin_id)
        return self.redirect("/zsite/verify/next/%s" % id)
Exemple #2
0
 def post(self, id):
     from model.career import career_rm
     current_user_id = self.current_user_id
     career_rm(id, current_user_id)
     self.finish('{}')
Exemple #3
0
 def post(self, id):
     from model.career import career_rm
     current_user_id = self.current_user_id
     career_rm(id, current_user_id)
     self.finish('{}')