On May 12, 2007, at 8:52 PM, baus wrote:
> > I'm having a strange problem. I created a pylons project on Windows > using python 2.4. When I copied the site up to my linux server I got > some strange errors when importing _ > > The following line in lib/base.py fails > > from pylons.helpers import abort, redirect_to, etag_cache, _ > > The following line in lib/helpers.py fails > > from pylons.helpers.import _, log, set_lang, get_lang > > To make it work on Linux I changed it to > > from pylons.helpers import log > > Of course when I tried it on my Windows box it didn't work. > > Any ideas? > _ as well as set_lang/get_lang should be imported from pylons.i18n in the latest Pylons. Are you using an older version, or upgrading? Those functions used to reside in pylons.util but they're still be available there for importing, albeit officially deprecated. Maybe you're confusing pylons.helpers with pylons.util? -- Philip Jenvey --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
