【发布时间】:2015-05-10 11:48:00
【问题描述】:
如何在 python 中验证 GAE 的 no sql "ndb" 模型?
是否有这种模式。假设我有一个名为 BreadCrumb 的模型
class BreadCrumb_Ndb(ndb.Model):
""" A model for building breadcrumbs on the site """
item_prop = ndb.StringProperty()
item_type = ndb.StringProperty()
href = ndb.StringProperty()
我想验证属性 href 以确保其使用正则表达式的 url 格式。
【问题讨论】:
-
数据从何而来?表格?
-
最终是的,它将来自一个表单。
标签: python google-app-engine google-cloud-datastore app-engine-ndb