Thank you. That worked like a charm. On Jan 13, 1:10 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > Try > > form.accepts(flexItem,formname=None) > > On Jan 13, 12:06 pm, Dane <dane.schnei...@gmail.com> wrote: > > > Hello, > > > I've been learning Web2Py and liking it a lot. Thanks for your hard > > work Mossimo. I want to use it as a backend for a site that will > > mostly be in Flex. I've gotten the RPC working smoothly, and now I'm > > onto validation. I'll be doing client-side validation on forms, but I > > know serverside is also required for security and a second layer. I > > first tried using form = crud.create(db.item) and then passing a > > dictionary with keys corresponding to the item's model fields into the > > form (i.e. form.accepts(flexItem) ), but this wasn't successful. I > > tried accessing the form.errors to see what was wrong, but there > > didn't seem to be any data contained here. I then switched to using > > db.item.insert for insertion, and this added my item to the db, but > > didn't perform any validation based on my model definition. I know I > > could just write out the validation for each field manually, but I'm > > wondering if there's a DRY method I could use instead. Thanks! > > > -Dane > >
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.