我们从Python开源项目中,提取了以下50个代码示例,用于说明如何使用wtforms.fields.BooleanField()。
def conv_Boolean(self, field_args, **extra): return f.BooleanField(**field_args)
def convert_BooleanProperty(model, prop, kwargs): """Returns a form field for a ``db.BooleanProperty``.""" return f.BooleanField(**kwargs)
def convert_BooleanProperty(self, model, prop, kwargs): """Returns a form field for a ``ndb.BooleanProperty``.""" return f.BooleanField(**kwargs)
def conv_Boolean(self, field_args, **extra): return wtforms_fields.BooleanField(**field_args)
def conv_Boolean(self, model, field, kwargs): return f.BooleanField(**kwargs)
def coerce(self, field_type): coercions = { "IntField": int, "BooleanField": bool, "FloatField": float, "DecimalField": decimal.Decimal, "ObjectIdField": ObjectId } if sys.version_info >= (3, 0): return coercions.get(field_type, str) else: return coercions.get(field_type, unicode)
def convert_bool(self, field, field_args): """ ???????????? ????????? ??? ???? Bool :param field: ???? Bool LightMagic :param field_args: ????????? WTF """ return wtforms_fields.BooleanField(**field_args)