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 <[email protected]> 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
>
>
>