Forum OpenACS Development: Re: ad_page_contract to be used on includes

Collapse
Posted by Jun Yamog on
Hi Tom,

Thanks for lesson in using a wrapper.  But I think it would be nice to just have just parent and child only.  Don't you think so?

Also it would be nice to have wrapped-child to say.  Hey caller I am expecting "var".  Or maybe when wrapped-child is called directly.  Hey request I am expecting "var".

Collapse
Posted by Robert Locke on
<blockquote> Also it would be nice to have wrapped-child to say.  Hey
caller I am expecting "var".
</blockquote>

I agree, Jun.  But I don't think we should overload ad_page_contract for that purpose.  Having ad_page_contract change its behavior based on context sounds like trouble to me.

I vote for a switch.  Maybe -form (default), -vars (just check in namespace), and -both (check in both (but in what order?)).