Why? I think you just need a function and call it from auth.settings.register_onvalidation auth.settings.profile_onvalidation
On Jun 6, 3:57 am, Jason Brower <encomp...@gmail.com> wrote: > Yes. > But i end up having to do that about 15 times in my document. And we all know > programs creat ways to do everything once. > > ----- Original message ----- > > Sounds like you got it. > > > if not record.image: > > if record.sex == "male": > > return "male.jpg" > > else: > > return "female.jpg" > > else: > > return record.image > > > -- > > Thadeus > > > On Sat, Jun 5, 2010 at 12:22 PM, Jason Brower <encomp...@gmail.com> > > wrote: > > > I need the avatar (IS_IMAGE) in my authentication table to have a > > > default if nothing is entered. Is this easily possible? I was > > > thinking of having it controller side and just check if it was > > > blank... if so, default it. > > > The image would be based on the auth_user tables .sex value. Any ideas > > > how to accomplish this? > > > Best Regards, > > > Jason Brower