Re: [Myghty-users] Transitioning to Mako
Brought to you by:
zzzeek
From: Michael B. <mi...@my...> - 2007-03-13 21:27:48
|
On Mar 13, 2007, at 5:13 PM, Deron Meranda wrote: > > However I'm trying to figure out how I can eventually get off of > Myghty, and there's things that Mako seems to be missing > (probably intentionally ?). One of my biggest issues is I NEED to > be able to run on top of mod_python. This is because I have a > lot of "raw" mod_python handlers running at different Apache > request and filter phases (not just the content or "handler" phase). > And my Myghty apps communicate with them via the low-level > req object. I just don't see how to do that yet. im running with mod_python using the mod_python WSGI adapter (available off the mod_python FAQ) , linked to the run_wsgi.py script thats included in mako/examples. you can modify the run_wsgi.py to propigate the apache req object (i was doing that too). > There's other things as well that I know I need to change > (such as a reliance on the dhandler stuff), but they don't perplex > me as much (yet). yah, use controllers now for dhandler-like functionality. > Is there any additional information someplace to describe in > more detail strategies for migrating from Myghty to Mako, or > whatever else might be needed? There seems to be about a > million different Python+Web projects and very few are documented > in any basic way so that an outsider can even determine what it > is that they "do" before being dumped right into the API docs. not much docs for that. most of Mako syntax is close enough to Myghty that its not so difficult. theres also an "autohandler" extension with Mako which I havent doc'ed yet but i just put a usage example on the mako mailing list. some features of Myghty havent really carried over (like <%attr>), so its best to be somewhat "clean slate" about it when making the switch (as opposed to line-by-line conversion). > > So, is Mako even supposed to be a Myghty successor, or the > key component of one? And is this the place to ask these > questions, or the Mako mailing lists, or cross-posted? just go to the mako list. we're all over there now.....(yes its the successor). |