[Zope] Acquiring/accessing a dotted name

Andrew Athan zope_list_replies@memeplex.com
Wed, 6 Nov 2002 13:44:02 -0500


I have a Python (Script) object which needs to return the rendering of a
page template called 'foo.html'

return context.foo.html()

will obviously not work.  What will?

I have tried various forms of the aq_acquire() call, but context does not
seem to implement this.  Importing the Acquisition module is not
allowed--and it doesn't feel right to have to create a special security
context for it.

I must be missing something simple here, and yet it is incredibly difficult
to find the answer I need from the various documentation I've looked at.

Thanks
aathan <Andrew Athan>