On Thu, Oct 9, 2008 at 1:46 AM, Michael van Tellingen <[EMAIL PROTECTED]> wrote: > Hi all, > > The recent change (http://pylonshq.com/hg/pylons-dev/rev/3c601ae9ef0b) to > not attach the action arguments automagically to the c variable is imo not a > really good one :-) > I'm always setting strict_c to catch any errors early but I do like the fact > that I can access the action arguments of the controller without explicitly > setting them in my controller. > > It is possible to add perhaps an additional flag for this use-case ? like > strict_c = True, c_attach_args = True?
I tend to agree. I always set strict_c, and though I haven't used c.action I do sometimes use routing variables (c.id) in validators. I haven't seen anybody complain that these auto-assigned variables have messed up any application, so why drop the feature? People have sometimes needed to know the controller or action name in templates. -- Mike Orr <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
