7 messages in com.googlegroups.pylons-discussAccessing controller name and action ...
FromSent OnAttachments
Matt Feifarek24 Aug 2006 23:20 
yi huang25 Aug 2006 00:38 
Matt Feifarek25 Aug 2006 00:48 
Ben Bangert25 Aug 2006 08:15 
Matt Feifarek25 Aug 2006 10:31 
Ian Bicking25 Aug 2006 10:37 
Matt Feifarek25 Aug 2006 15:16 
Subject:Accessing controller name and action name from myghty
From:Matt Feifarek (matt@gmail.com)
Date:08/24/2006 11:20:55 PM
List:com.googlegroups.pylons-discuss

Hello.

I'm really enjoying using Pylons for my first non-Webkit python web-app.

I am finding the framework fanstastic; I'm really excited about this; most I've been excited about making web sites in about 5 years. Thanks.

I am finding the tutorials very very good, but am really missing more reference docs. I know that I can look in the source, but it's pretty hard to find the right bit of source if one doesn't know how the whole thing is hooked together.

My current question is about finding some context/state from within a template. I know about the g and c objects, and am using them to good effect. I know that variables that routes eats are put into the c variable, but it doesn't seem that the controller name or action name (method) are put into the c object.

I'm sure that these bits of information are available somewhere, but I can't find them. I tried p-printing various objects to the console, looking for clues, but haven't had much luck.

Thanks again for what seems to be an extraordinarily well-thought-out and elegant piece of work.

-- Matt