• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python models.Sporocilo类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中models.Sporocilo的典型用法代码示例。如果您正苦于以下问题:Python Sporocilo类的具体用法?Python Sporocilo怎么用?Python Sporocilo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Sporocilo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: post

    def post(self):
        sporocilo = self.request.get("vnos")

        sporocilo_v_bazi = Sporocilo(besedilo=sporocilo)
        sporocilo_v_bazi.put()

        return self.write("Vpisal si: " + sporocilo)
开发者ID:jO-Osko,项目名称:snit-edit-delete,代码行数:7,代码来源:main.py


示例2: post

    def post(self):
        rezultat = self.request.get("vnos")

        sporocilo = Sporocilo(vnos=rezultat)
        sporocilo.put()

        self.write(rezultat)
开发者ID:TomazLipuscek,项目名称:Prenos-na-bazo-Google-App-Engine-,代码行数:7,代码来源:main.py


示例3: post

 def post(self):
     dodatno = "Uporabnik je vpisal: "
     rezultat = self.request.get("vnos")
     skupaj = dodatno + rezultat  # zdruzimo zgornja dva stringa v enega
     params = {"vnos" : skupaj }
     sporocilo = Sporocilo(vnos=rezultat)
     sporocilo.put()
     return self.render_template("hello.html" , params=params)
开发者ID:igorpodobnik,项目名称:gaepostigor,代码行数:8,代码来源:main.py


示例4: post

 def post(self):
     imeM = self.request.get("ime")
     priimekM = self.request.get("priimek")
     emailM = self.request.get("email")
     sporociloM = self.request.get("sporociloV")
     sporocilo = Sporocilo(ime=imeM, priimek=priimekM, email=emailM, sporocilo=sporociloM)
     sporocilo.put()
     self.write("Posiljanje uspesno")
开发者ID:TomazLipuscek,项目名称:Test-Bootstrap-GAE-Python,代码行数:8,代码来源:main.py


示例5: post

    def post(self):
        tekst = self.request.get("sporocilo")
        prejemnik1 = self.request.get("prejemnik")
        sporocilo = Sporocilo(vnos=tekst, prejemnik=prejemnik1)  #prejemnik je iz models
        sporocilo.put()

        params = {"sporocilo": sporocilo}
        self.redirect_to("main")
开发者ID:MarijaZ,项目名称:Zakljucni_projekt_Bmail,代码行数:8,代码来源:main.py


示例6: post

    def post(self):
        user_name = self.request.get("user_name")
        user_email = self.request.get("user_email")
        user_message = self.request.get("user_message")

        message = Sporocilo(ime = user_name, email = user_email, sporocilo= user_message)
        message.put()
        return self.render_template("message-sent.html")
开发者ID:patt19823,项目名称:filton_poslji_sporocilo,代码行数:8,代码来源:main.py


示例7: post

    def post(self):
        sporocilo = self.request.get('sporocilo')

        sporocilo = Sporocilo(sporocilo=sporocilo)
        potrditev = "Hvala za tvoje sporocilo :)"
        sporocilo.put()
        params = {'potrditev':potrditev}
        return self.render_template('contact.html', params=params)
开发者ID:uroscokl,项目名称:PythonGAE,代码行数:8,代码来源:site_handlers.py


示例8: post

    def post(self):
        sender = self.request.get("Posiljatelj")
        recipient = self.request.get("Naslovnik")
        message_ = self.request.get("Message")

        sporocilo = Sporocilo(Posiljatelj = sender, Naslovnik = recipient, Message = message_)
        sporocilo.put()

        self.write("Sporocilo je bilo uspesno poslano")
开发者ID:marusa15,项目名称:Bmail,代码行数:9,代码来源:main.py


示例9: post

    def post(self):
        uporabnikovo_ime = self.request.get("ime")
        uporabnikovo_sporocilo = self.request.get("sporocilo")
        uporabnikov_email = self.request.get("email")

        sporocilo = Sporocilo(ime=uporabnikovo_ime, tekst=uporabnikovo_sporocilo, email = uporabnikov_email)
        sporocilo.put()

        return self.render_template("sporocilo-poslano.html")
开发者ID:patt19823,项目名称:poslji_uredi_izbrisi_sporocilo,代码行数:9,代码来源:main.py


示例10: post

    def post(self):

        name = self.request.get("name")
        mail = self.request.get("mail")
        text = self.request.get("text")

        sporocilo = Sporocilo(name=name, mail=mail, text=text)
        sporocilo.put()

        self.render_template("rezultat.html")
开发者ID:MihaGasper,项目名称:GuestBook,代码行数:10,代码来源:main.py


示例11: post

    def post(self):
        uporabnikovo_ime = self.request.get("ime")
        uporabnikovo_sporocilo = self.request.get("sporocilo")
        uporabnikovo_ime = cgi.escape(uporabnikovo_ime)
        uporabnikovo_sporocilo = cgi.escape(uporabnikovo_sporocilo)


        sporocilo = Sporocilo(ime=uporabnikovo_ime, tekst=uporabnikovo_sporocilo)
        sporocilo.put()

        self.redirect("/prikazi-sporocila")
开发者ID:patt19823,项目名称:patriciin_chat_remove_add_msg,代码行数:11,代码来源:main.py


示例12: post

    def post(self):
        usr_ime = self.request.get("usr_ime")
        usr_email = self.request.get("usr_email")
        usr_sporocilo = self.request.get("usr_sporocilo")

        if usr_ime == "":
            usr_ime = "unknown"

        sporocilo = Sporocilo(ime=usr_ime, email=usr_email, message=usr_sporocilo)
        sporocilo.put()

        return self.render_template("message.html")
开发者ID:brishewatts,项目名称:GuestBOOK,代码行数:12,代码来源:main.py


示例13: post

    def post(self):
        ime = self.request.get("ime")
        email = self.request.get("email")
        sporocilo = self.request.get("sporocilo")

        if ime == "":
            ime = "Neznanec"

        if email == "":
            email = "Neizpolnjen"

        sporocilo1 = Sporocilo(ime=ime, email=email, sporocilo=sporocilo)
        sporocilo1.put()

        self.render_template("poslano.html")
开发者ID:Kocl9262,项目名称:GuestBook,代码行数:15,代码来源:main.py


示例14: get

    def get(self, sporocilo_id):
        sporocilo = Sporocilo.get_by_id(int(sporocilo_id))

        params = {"sporocilo": sporocilo}

        return self.render_template("izbrisi_sporocilo.html",
                                    params=params)
开发者ID:jO-Osko,项目名称:snit-edit-delete,代码行数:7,代码来源:main.py


示例15: get

 def get(self):
     uporabnik = users.get_current_user()
     if uporabnik:
         seznam_sporocil = Sporocilo.query().order(-Sporocilo.nastanek).fetch()
         params = {'seznam': seznam_sporocil, 'uporabnik':uporabnik}
         return self.render_template('admin.html', params=params)
     else:
         self.redirect_to('prijava')
开发者ID:jpirih,项目名称:Homepage,代码行数:8,代码来源:handlers.py


示例16: post

    def post(self):
        zadeva = self.request.get("zadeva")
        tekst = self.request.get("tekst")
        email_prejemnika = self.request.get("email_prejemnika")
        zadeva = cgi.escape(zadeva)
        tekst = cgi.escape(tekst)

        cookie_value = self.request.cookies.get("uid")
        uporabnik_id, _, _ = cookie_value.split(":")
        uporabnik_id = int(uporabnik_id)

        prejemnik = Uporabnik.gql("WHERE email='"+ email_prejemnika +"'").get()
        prejemnik_id= prejemnik.key.id()
        sporocilo = Sporocilo(uporabnik_id=uporabnik_id, prejemnik_id=prejemnik_id, email_prejemnika=email_prejemnika ,zadeva=zadeva, tekst=tekst)
        sporocilo.put()

        self.redirect("/prikazi-sporocila")
开发者ID:patt19823,项目名称:koncni_projekt,代码行数:17,代码来源:main.py


示例17: get

    def get(self):

        cookie_value = self.request.cookies.get("uid")
        uporabnik_id, _, _ = cookie_value.split(":")
        uporabnik_id = int(uporabnik_id)

        #uporabnik = Uporabnik.get_by_id(int(uporabnik_id))

        prejeta_sporocila = Sporocilo.gql("WHERE prejemnik_id="+ str(uporabnik_id)).order(-Sporocilo.nastanek).fetch()
        poslana_sporocila = Sporocilo.gql("WHERE uporabnik_id="+ str(uporabnik_id)).order(-Sporocilo.nastanek).fetch()

        view_vars = {
            "prejeta_sporocila": prejeta_sporocila,
            "poslana_sporocila": poslana_sporocila,
        }

        return self.render_template("prikazi_sporocila.html", view_vars)
开发者ID:patt19823,项目名称:koncni_projekt,代码行数:17,代码来源:main.py


示例18: get

    def get(self, sporocilo_id):
        sporocilo = Sporocilo.get_by_id(int(sporocilo_id))

        view_vars = {
            "sporocilo": sporocilo
        }

        return self.render_template("izbrisi_sporocilo.html", view_vars)
开发者ID:patt19823,项目名称:patriciin_chat_remove_add_msg,代码行数:8,代码来源:main.py


示例19: post

    def post(self):
        uporabnik = users.get_current_user()
        vzdevek = uporabnik.nickname()
        email = uporabnik.email()
        msg = self.request.get('sporocilo')
        danes = datetime.datetime.now()
        datum = self.trenutni_datum_cas()
        sporocilo = Sporocilo(sporocilo=msg, vzdevek=vzdevek, email=email, nastanek=datum)
        potrditev = "Hvala za tvoje sporocilo :)"
        sporocilo.put()

        # sporocila iz kontaktnega obrazca dobim na mail
        e_posta = mail.EmailMessage(sender=email,
                                    to='[email protected]',
                                    subject="Kontakt sporocilo iz domace strani od %s" % vzdevek,
                                    body=msg)
        e_posta.send()

        params = {'potrditev':potrditev, 'uporabnik':uporabnik}
        return self.render_template('contact.html', params=params)
开发者ID:jpirih,项目名称:Homepage,代码行数:20,代码来源:site_handlers.py


示例20: post

    def post(self):
        search_query = self.request.get("search_parameter")
        seznam = Sporocilo.query(Sporocilo.izbrisan == False).fetch()
        logging.info(seznam)
        filtered_list = []

        for name in seznam:
            person_name = name.vnos
            if person_name.startswith(search_query):
                filtered_list.append(name)

        params = {"seznam": filtered_list}
        self.render_template("seznam_sporocil.html", params=params)
开发者ID:ZeroCool51,项目名称:smartninja,代码行数:13,代码来源:main.py



注:本文中的models.Sporocilo类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python models.SqlHandler类代码示例发布时间:2022-05-27
下一篇:
Python models.SpeakerForm类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap