aboutsummaryrefslogtreecommitdiff
path: root/wqflask/flask_security/forms.py
diff options
context:
space:
mode:
authorZachary Sloan2013-10-11 14:46:52 -0500
committerZachary Sloan2013-10-11 14:46:52 -0500
commit34c6c908ac072609a2f923946d474504d3fa0331 (patch)
tree8f7635a312115419bf8ce12602fe9c46e048a92c /wqflask/flask_security/forms.py
parent51be798ef6311a86ea1ca8c5092277d727b98a5a (diff)
parent38ae30a5fb46753a361e1c7454871430d7097c3b (diff)
downloadgenenetwork2-34c6c908ac072609a2f923946d474504d3fa0331.tar.gz
Merge /home/sam/gene
Diffstat (limited to 'wqflask/flask_security/forms.py')
-rw-r--r--wqflask/flask_security/forms.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/wqflask/flask_security/forms.py b/wqflask/flask_security/forms.py
index e64e1502..54677e77 100644
--- a/wqflask/flask_security/forms.py
+++ b/wqflask/flask_security/forms.py
@@ -89,6 +89,12 @@ def valid_user_email(form, field):
class Form(BaseForm):
def __init__(self, *args, **kwargs):
+ #print "importing tracer"
+ #from wqflask import tracer
+ #tracer.turn_on()
+ #print "imported tracer"
+ print "in Form, args:", args
+ print "in Form, kwargs:", kwargs
if current_app.testing:
self.TIME_LIMIT = None
super(Form, self).__init__(*args, **kwargs)
@@ -148,10 +154,13 @@ class RegisterFormMixin():
def to_dict(form):
def is_field_and_user_attr(member):
+ print "in ifaua:", member
return isinstance(member, Field) and \
hasattr(_datastore.user_model, member.name)
+ print("green:", vars(form))
fields = inspect.getmembers(form, is_field_and_user_attr)
+ print("fields:" ,vars(form))
return dict((key, value.data) for key, value in fields)