Hi Edgar You normally add the imports you want to helpers.py, which then makes them available as "h.some_import". For example, I use the following line to get the url_for() function:
from routes import url_for Cheers ........................ JD 2009/3/17 edgarsmolow <[email protected]> > > I recently began development with Pylons 0.9.7. The online docs > suggest using a function called url_for that should be in > myproject.lib.helpers.py. But, the file is essentially empty. > > Is helpers.py supposed to come with any functions at all, or are we > supposed to write url_for (and any others mentioned in the docs)? > > Thanks. > Edgar > > > > -- /Angle-parked in a parallel universe.../ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
