Michele Cella wrote: > > > > > I'd like someone to comment on the SubmitButton thing... I'm not > > entirely sure but I think the test is deprecated. Apart from that, I > > think 2 is ready for the trunk... > > > > Trac down... :-( > > That's unfortunate... anyway what's the difference between the > NullValidator and the StringValidator? > > Ciao > Michele
Trac up now... 1) The submit test is not deprecated is a wanted behavior, we don't need the submit value in input unless stated otherwise by naming that widget: http://trac.turbogears.org/turbogears/ticket/358 2) I was under the impression we could do this easily by using something like this in the Widget base class: def __init__(...): if not validator: self.validator = NullValidator() / StringValidator() this way we easily do that for buttons: def __init__(...): super() self.validator = None this way we don't need the can_add_field thing I think, am I wrong? Ciao Michele --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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-trunk -~----------~----~----~----~------~----~------~--~---
