예제 #1
0
def manage_following_post_(request):
    form = request.web_input(userid="", submit="", collect="", char="", stream="", journal="")

    watch_settings = followuser.WatchSettings()
    watch_settings.submit = bool(form.submit)
    watch_settings.collect = bool(form.collect)
    watch_settings.char = bool(form.char)
    watch_settings.stream = bool(form.stream)
    watch_settings.journal = bool(form.journal)
    followuser.update(request.userid, define.get_int(form.userid), watch_settings)

    raise HTTPSeeOther(location="/manage/following")
예제 #2
0
파일: settings.py 프로젝트: weykent/weasyl
    def POST(self):
        form = web.input(userid="",
                         submit="",
                         collect="",
                         char="",
                         stream="",
                         journal="")

        watch_settings = followuser.WatchSettings()
        watch_settings.submit = bool(form.submit)
        watch_settings.collect = bool(form.collect)
        watch_settings.char = bool(form.char)
        watch_settings.stream = bool(form.stream)
        watch_settings.journal = bool(form.journal)
        followuser.update(self.user_id, define.get_int(form.userid),
                          watch_settings)

        raise web.seeother("/manage/following")