Exemplo n.º 1
0
    def post(self):
        submit = self.request()
        notice = ProjectNotice.add(submit)

        if submit.__contains__("send_mail") \
                and submit["send_mail"]:
            Mail().to(notice)
        return self.succ()
Exemplo n.º 2
0
 def get(self, page=0, pre_page=None):
     notices = ProjectNotice.select(page, pre_page)
     return self.succ(notices)