#module: member.py # from pso import parser, form, fields, tags import login from datamodel import Member class NewForm(form.Form): def goNext(self, handler, cdata): handler.req().redirect('test.cgi') def submit(self, handler, cdata): data = self.prepareData(handler) member = Member(**data) member.save() #while we are at it lets log the bugger in. login.LoginLogout().logIn(handler, data['memberId']) class NameInput(form.Input):pass class EmailInput(fields.EmailInput):pass class StateSelect(fields.StateSelect):pass class ZipInput(fields.ZipInput):pass class MemberIdInput(fields.UserIdInput):pass class PasswordGroup(form.PasswordGroup):pass class PasswordInput(form.PasswordInput):pass class PasswordConfirmInput(form.PasswordConfirmInput):pass class Os( form.Options):pass class OsCheckBox(form.CheckBox):pass class Spam(form.Options):pass class SpamRadio(form.Radio):pass class MessageTextArea(form.TextArea):pass class PhotoFile(form.File): pass