summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McGrath <mmcgrath@laptop.mmcgrath.net>2008-03-15 14:29:58 (GMT)
committerMike McGrath <mmcgrath@laptop.mmcgrath.net>2008-03-15 14:29:58 (GMT)
commit96708c5d185a3305448eafbbd23d4b87854fbc49 (patch)
tree8ca46d0b6f4e9cd67a3e2ab4295e52325bbc4a3b
parent6285bd18a291739380684d6f28c0691565007be4 (diff)
downloadfedora-infrastructure-96708c5d185a3305448eafbbd23d4b87854fbc49.zip
fedora-infrastructure-96708c5d185a3305448eafbbd23d4b87854fbc49.tar.gz
fedora-infrastructure-96708c5d185a3305448eafbbd23d4b87854fbc49.tar.xz
make sure to prompt for telephone and address if they do not exist
-rw-r--r--fas/fas/cla.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fas/fas/cla.py b/fas/fas/cla.py
index 37b7225..746a160 100644
--- a/fas/fas/cla.py
+++ b/fas/fas/cla.py
@@ -24,6 +24,9 @@ class CLA(controllers.Controller):
'''Display the CLAs (and accept/do not accept buttons)'''
username = turbogears.identity.current.user_name
person = People.by_username(username)
+ if not person.telephone and not person.postal_address:
+ turbogears.flash('Postal Address and telephone number are required to complete the cla, please fill them out')
+ turbogears.redirect('/user/edit/%s' % username)
cla = CLADone(person)
return dict(cla=cla, person=person, date=datetime.utcnow().ctime())