]> git.zarvox.org Git - wp3.git/commitdiff
Make no default dorm, to keep people from accidently ignoring the field.
authorDrew Fisher <drew.m.fisher@gmail.com>
Sun, 19 Jul 2009 04:16:47 +0000 (21:16 -0700)
committerDrew Fisher <drew.m.fisher@gmail.com>
Sun, 19 Jul 2009 04:16:47 +0000 (21:16 -0700)
pagecommit.py
pagenewuserdata.py

index 0da3d59971d42d5b9df85ca3304e576544d965c5..46aadc40d348aa92d13a02111f909f1a3b1e2ed0 100644 (file)
@@ -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)) )
index 30e2463833a535e51bd0c072a011eb0c7811bb04..b2c7e5decacade8ac3f04e6338c96be9bd7313b1 100644 (file)
@@ -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)