From: Drew Fisher Date: Sun, 19 Jul 2009 04:16:47 +0000 (-0700) Subject: Make no default dorm, to keep people from accidently ignoring the field. X-Git-Url: http://git.zarvox.org/static/%7B%7B%20url_for%28%27main.signup_page%27%29%20%7D%7D?a=commitdiff_plain;h=8cb2b167551b3be61cf4bff912971f2cd6945ceb;p=wp3.git Make no default dorm, to keep people from accidently ignoring the field. --- diff --git a/pagecommit.py b/pagecommit.py index 0da3d59..46aadc4 100644 --- a/pagecommit.py +++ b/pagecommit.py @@ -29,7 +29,7 @@ class PageCommit(QWizardPage): q.bindValue(":birthday", QVariant(bday.toString(Qt.ISODate)) ) q.bindValue(":phone", self.field("phone") ) q.bindValue(":major", self.field("major") ) - q.bindValue(":dorm", QVariant(QString(["Clements","Lechner","McFadden"][self.field("dorm").toInt()[0]])) ) + q.bindValue(":dorm", QVariant(QString(["","Clements","Lechner","McFadden"][self.field("dorm").toInt()[0]])) ) q.bindValue(":room", self.field("room") ) q.bindValue(":createtime", QVariant(QDateTime.currentDateTime().toString(Qt.ISODate)) ) q.bindValue(":mtime", QVariant(QDateTime.currentDateTime().toString(Qt.ISODate)) ) diff --git a/pagenewuserdata.py b/pagenewuserdata.py index 30e2463..b2c7e5d 100644 --- a/pagenewuserdata.py +++ b/pagenewuserdata.py @@ -37,7 +37,7 @@ class PageNewUserData(QWizardPage): years = QStringList(["1983","1984","1985","1986","1987","1988","1989","1990","1991","1992","1993","1994"]) months = QStringList(["January","February","March","April","May","June","July","August","September","October","November","December"]) days = QStringList(["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"]) - dorms = QStringList(["Clements","Lechner","McFadden"]) + dorms = QStringList(["","Clements","Lechner","McFadden"]) self.year.addItems(years) self.month.addItems(months) self.day.addItems(days) @@ -53,7 +53,7 @@ class PageNewUserData(QWizardPage): self.registerField("phone", self.phone) self.registerField("email*", self.email) self.registerField("major", self.major) - self.registerField("dorm", self.dorm) + self.registerField("dorm*", self.dorm) self.registerField("room*", self.room) self.registerField("year", self.year) self.registerField("month", self.month)