On Thursday, December 1, 2011 5:00:53 PM UTC-8, Iain Duncan wrote: > > > [...] > > We're using the zca as the way our components interact, by instantiating > them inside adapters of request, context, and sometimes view. This is still > being done using the registry attached to request, so it's not the global > zca registry or global zca api. ie we get them by doing: > > # get the right kind of Foobar for current context & view > adapter_of_foobar = request.registry.queryAdapter(request, context, view) >
I guess we're going off on a tangent here, but how does queryAdapter know how to get the right kind of Foobar? -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/EqyPEdN-B2YJ. 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.
