[Zope-CMF] call invokeFactory on an object different of the context

seb bacon seb@jamkit.com
Wed, 06 Nov 2002 15:23:23 +0000


Pascal Samuzeau wrote:
> context.invokeFactory('Factory',id=id, and_so_on...)      

> How can I construct a "new" context just before to call the           
> invokeFactory ?                                                       

something like

   pathA = "a/b/c/a"
   location = context.restrictedTraverse(pathA, default=context)
   location.invokeFactory(...)

seb