Well if it's a view callable then it the most reasonable thing to do is probably modify the request object to a state that view_b is expecting. If you really need to special case something so that view_b knows it's not serving a real request then it should probably be refactored into a separate function.
That being said, you can shove anything into the request object that you want. On Dec 7, 2011 7:29 PM, "H.T. Wei" <kkman...@gmail.com> wrote: > Hi, > > I am a newbie to Pyramid and have a question about passing variable > between callable like this one: > > def callable_a(request): > id = 1 > ... > return dict( ... ) > > def callable_b(request): > # get id from callable_a > > Is there a best way for getting 'id' defined in "callable_a" in > "callable_b"? Any example or document? > > Thanks, > > HT > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to pylons-discuss@googlegroups.com. > To unsubscribe from this group, send email to > pylons-discuss+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.