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)) )
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)
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)