How is EmailProperty different from StringProperty ? Consider these two examples:
EmailProperty
StringProperty
# example 1: store an e-mail address in an EmailProperty class MyModel(db.Model): email_address = db.EmailProperty() m = MyModel() m.email_address = db.Email(" larry@example.com ") # example 2: store an e-mail address in a StringProperty class MyModel(db.Model): email_address = db.StringProperty() m = MyModel() m.email_address = " larry@example.com "
If you call entity.to_xml() , EmailProperty will return as gd: email in your personβs Atom view.
entity.to_xml()
Please note that using EmailProperty does not automatically check the formatting of email addresses.
Source: https://habr.com/ru/post/1315976/More articles:nServiceBus and security: what is best practice? - securityTips for creating an Android service that checks a web service for a bad connection - androidPHP: date analysis of any format (especially: 2008-10-20, 2008/10/20, 2008.10.20, November 20/08) - phpGit Rehab Lesson Trees - gitusing regex to trim the last few digits - .netHow to use <> in Visual Studio comments? - visual-studioBackspace, if the characters from the cursor to the beginning of the line are tabs / spaces, return one level of indentation - vimchange source variable from ruby ββblock? - ruby ββ| fooobar.comDisable CE Window Animation? - c #Jar works with standalone Hadoop, but not on the cluster itself (java.lang.ClassNotFoundException: org.jfree.data.xy.XYDataset) - classpathAll Articles