Hi, First of all, despite what it says in the documentation, routes.url_for is indeed available as h.url_for in my templates on v0.9.7. I haven't touched a thing in lib/helpers.py. Is this now "fixed" in v1.0? If not, when can we expect to have to start manually adding helpers per the documentation?
I ask because I am interested in *programatically* adding some helper functions to h for use in my templates. I'm writing a module that will live in myproject/lib and I'd like to have this module's __init__.py make the functions available without any further intervention from module users, e.g., without them having to edit lib/helpers.py. In the past, this would have been as easy as <code> from pylons import h h.a_helpful_fn = my_helpful_fn </code> but apparently this is bad practice. Can anybody recommend an alternative? Cheers! ~br -- 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.
