def convert_StringProperty(model, prop, kwargs):
 if prop.multiline:
  kwargs['validators'].append(validators.length(max=500))
  return f.TextAreaField(**kwargs)
 else:
  return get_TextField(kwargs)

def convert_StringProperty ( model , prop , kwargs ) : if prop . multiline : kwargs [ 'validators' ] . append ( validators . length ( max = 500 ) ) return f . TextAreaField ( ** kwargs ) else : return get_TextField ( kwargs )
returns a form field for a db .