[Zope-dev] Question: additional context for IAnnotations adapter?
Chris Withers
chris at simplistix.co.uk
Mon Mar 23 07:58:20 EDT 2009
Jacob Holm wrote:
>> Can someone confirm to me whether or not manually specifying the context
>> as I have in the example above would work, or would I need to do:
>>
>> >>> adapter1 = getAdapter(a,ISomething,context=siteA)
>> >>> adapter2 = getAdapter(b,ISomething,context=siteB)
>>
> In general, using "context=a" should give the same result as
> "context=siteA".
Why? What actually makes this work?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope-Dev
mailing list