Hi, I'm trying to create a form in which some of the select field defaults are set from values obtaied from a user's identity. So for example to default a country selection to the user's default country from their profile.
Because I only have access to the user's identity within my Page classes I'm currently creating a fields class, which i then insert additional values into within my Page class before creating the form widget and returning that. This way I can set the default values appropriately at the time the widget is created. Doing this however, the form widget can't be used in a validate decorator on my save method as it's not in the global scope. Is there a way to do this so that I can have the benefits of a validation decorator and set the defaults from the identity? Alex --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

