当前位置: 首页>>代码示例>>Python>>正文


Python SubscriptionForm.is_valid方法代码示例

本文整理汇总了Python中eventex.subscriptions.forms.SubscriptionForm.is_valid方法的典型用法代码示例。如果您正苦于以下问题:Python SubscriptionForm.is_valid方法的具体用法?Python SubscriptionForm.is_valid怎么用?Python SubscriptionForm.is_valid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在eventex.subscriptions.forms.SubscriptionForm的用法示例。


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

示例1: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
 def make_validated_form(self, **kwargs):
     valid = dict(name='Hiarison Gigante', cpf='12345678901',
                  email='[email protected]', phone='+55 21 9900 9900')
     data = dict(valid, **kwargs)
     form = SubscriptionForm(data)
     form.is_valid()
     return form
开发者ID:gigante,项目名称:eventex,代码行数:9,代码来源:test_form_subscription.py

示例2: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
	def make_validated_form(self, **kwargs):
		data = dict(name='Henrique Bastos', email='[email protected]', cpf='12345678901', phone='21-96186180')
		data.update(kwargs)
		form = SubscriptionForm(data)
		form.is_valid()

		return form
开发者ID:nassif,项目名称:eventex,代码行数:9,代码来源:test_forms.py

示例3: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
 def make_validated_form(self,**kwargs):
     valid = dict(name='Gabriel Pedorso', cpf='12345678910',
             email='[email protected]', phone='11-111111111')
     data = dict(valid, **kwargs)
     form = SubscriptionForm(data)
     form.is_valid()
     return form
开发者ID:gpedroso,项目名称:wttd,代码行数:9,代码来源:test_form_subscription.py

示例4: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
 def make_validated_form(self, **kwargs):
     data = dict(name='Darlene Medeiros', email='[email protected]',
                 cpf='12345678901', phone_0='21', phone_1='91911919')
     data.update(kwargs)
     form = SubscriptionForm(data)
     form.is_valid()
     return form
开发者ID:darlenedms,项目名称:EventeX,代码行数:9,代码来源:test_forms.py

示例5: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
 def make_validated_form(self, **kwargs):
     valid = dict(name='Matheus Fernandes', cpf='12345678901',
                 email="[email protected]", phone="14-996055972")
     data = dict(valid, **kwargs)
     form = SubscriptionForm(data)
     form.is_valid()
     return form
开发者ID:matpfernandes,项目名称:eventex,代码行数:9,代码来源:test_form_subscription.py

示例6: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
 def make_validated_form(self, **kwargs):
     data = dict(name='Dyego Cantu', email='[email protected]', \
             cpf='12345678901', phone_0='21', phone_1='96186180')
     data.update(kwargs)
     form = SubscriptionForm(data)
     form.is_valid()
     return form
开发者ID:dyegocantu,项目名称:eventex-old,代码行数:9,代码来源:test_forms.py

示例7: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
 def make_validated_form(self, **kwargs):
      valid = dict(name='Jasiel Serra', cpf='12345678901',
           email='[email protected]', phone='75-9915787887')
      data = dict(valid, **kwargs)
      form = SubscriptionForm(data)
      form.is_valid()
      return form
开发者ID:jasielserra,项目名称:eventex,代码行数:9,代码来源:test_form_subscription.py

示例8: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
 def make_validated_form(self, **kwargs):
     data = dict(name='Felipe Scampini', email='[email protected]', cpf='12345678901'
                 , phone_0='21', phone_1='81066625')
     data.update(kwargs)
     form = SubscriptionForm(data)
     form.is_valid()
     return form
开发者ID:fscampini,项目名称:scampiniwttd,代码行数:9,代码来源:test_forms.py

示例9: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
 def make_validated_form(self, **kwargs):
     valid = dict(name='lucas farias', email='[email protected]',
                 cpf='12345678901', phone='71-991625771')
     data = dict(valid, **kwargs)
     form = SubscriptionForm(data)
     form.is_valid()
     return form
开发者ID:lffsantos,项目名称:eventex,代码行数:9,代码来源:test_form_subscription.py

示例10: make_validated_forms

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
	def make_validated_forms(self, **kwargs):
		data = dict(name='Dyesten Paulon', email='[email protected]', cpf='11144477735', phone_0='31', phone_1='88994477')
		data.update(kwargs)
		form = SubscriptionForm(data)
		form.is_valid()

		return form
开发者ID:dyesten,项目名称:wttd,代码行数:9,代码来源:tests_forms.py

示例11: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
	def make_validated_form(self, **kwargs):
		data = dict(name='Fernando Chimi', email='[email protected]',
			cpf='40090038800', phone_0='16', phone_1='91515651')
		data.update(kwargs)
		form = SubscriptionForm(data)
		form.is_valid()
		return form
开发者ID:fernandochimi,项目名称:wttd,代码行数:9,代码来源:test_forms.py

示例12: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
 def make_validated_form(self, **kwargs):
     data = dict(name='Victor Hugo Novais', email='[email protected]',
                 cpf='12345678910', phone='21-9999-9999')
     data.update(**kwargs)
     form = SubscriptionForm(data)
     form.is_valid()
     return form
开发者ID:nicolasteodosio,项目名称:wttd-1,代码行数:9,代码来源:test_forms.py

示例13: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
 def make_validated_form(self, **kwargs):
     data = dict(name='Diego Tolentino', email='[email protected]',
                 cpf='12345678901', phone='62-39201997')
     data.update(kwargs)
     form = SubscriptionForm(data)
     form.is_valid()
     return form
开发者ID:diegotolentino,项目名称:eventex,代码行数:9,代码来源:test_forms.py

示例14: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
	def make_validated_form(self, **kwargs):
		data = dict(name='Fellipe Pinheiro', email='[email protected]',
					cpf='12345678901', phone_0='21', phone_1='12345678')
		data.update(kwargs)
		form = SubscriptionForm(data)
		form.is_valid()
		return form
开发者ID:delete,项目名称:wttd,代码行数:9,代码来源:test_forms.py

示例15: make_validated_form

# 需要导入模块: from eventex.subscriptions.forms import SubscriptionForm [as 别名]
# 或者: from eventex.subscriptions.forms.SubscriptionForm import is_valid [as 别名]
 def make_validated_form(self, **kwargs):
     valid = dict(name='Lucas Rangel Cezimbra', cpf='12345678901',
                email='[email protected]', phone='(51)82100596')
     data = dict(valid, **kwargs)
     form = SubscriptionForm(data)
     form.is_valid()
     return form
开发者ID:Lrcezimbra,项目名称:wttd-eventex,代码行数:9,代码来源:test_form_subscription.py


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