durusmail: quixote-users: _q_resolve vs direct call of method
_q_resolve vs direct call of method
2005-04-20
2005-04-20
2005-04-20
2005-04-20
2005-04-20
_q_resolve vs direct call of method (re-post)
2005-04-20
_q_resolve vs direct call of method
Mike Orr
2005-04-20
Jason Sibre wrote:

> Note that even with _q_lookup, you generally want to return the
> reference that
>
>should be called, not the result of that call..
>i.e.:
>  return dotestconvert
>rather than
>  return dotestconvert(get_request())
>
>

"Generally want to"?  Why is that?  Sometimes you naturally have a
function to return; other times not.  The main time I've used ._q_lookup
is to return a sub-directory, but sometimes you can calcuate the answer
all in the same method.

>The publisher, seeing it got a callable back, will call it for you.
>
>

That's ._q_traverse in Quixote 2.

reply