#1081: can't access stdvars while in a py:def block in kid
---------------------+------------------------------------------------------
 Reporter:  mgaiman  |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  1.0b1    
Component:  Kid      |     Version:  0.9a6    
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 I'm defining a new kid template via py:def.  In it I'd like to use some of
 the code in stdvars (via tg.<blah>).  In doing so I get a NameError saying
 tg is not defined.  The same code works outside of the py:def section.

 I'm using 0.9a9.


 As a workaround, I'm passing in tg as an argument when I call the function
 defined by the py:def and that works, but isn't pretty.

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1081>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to