On Wed, Jan 7, 2009 at 12:54 PM, Christoph Zwerschke <[email protected]> wrote: > > In TG 1.x you could use the following: > > turbogears.validators.IPhoneNumberValidator > > This fails of you upgrade to the latest FormEncode version, since > formencode.IPhoneNumberValidator has been moved to > formencode.national.InternationalPhoneNumber. > > I think we should make the formencode.national validators available > again under turbogears.validators. > > The question is, do we want to make them available on the top level of > turbogears.validators, i.e. merge them with the other validators, or as > turbogears.validators.national? > > Let me know what you think is better. I'll patch turbogears.validators > then, and I will also make turbogears.validators.IPhoneNumberValidator > available again (maybe with a deprecation message that tells you to use > the new name, as you get when you import it directly from formencode). >
I think we should keep upstream "national" separation. I also agree that a deprecation warning should be in place. For the record in tg2 the warning for this type of thing is displayed by TW's call for it, so this is already solved there. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
