[Zope] How to use ZPT with ad-hoc context?

Hedley Roos hedleyroos at gmail.com
Mon May 4 15:18:52 EDT 2009

>> __allow_access_to_unprotected_subobjects__ = 1
> That indeed works, thanks!
>> You probably should not use that line too often :)
> I would prefer doing it correctly/safely, but is there a way? Because
> it even exposes the unprotected subobjects of the acquired objects...
> sounds a bit scary to me.

I don't know what your use case is, but you could either:
1) Expose attributes through methods on your Adhoc class
2) Use a browser view, which is what I'd do.


More information about the Zope mailing list