durusmail: quixote-users: .../foo vs. .../foo/
.../foo vs. .../foo/
2003-12-29
2003-12-29
2003-12-29
.../foo vs. .../foo/
Kevin Smith
2003-12-29
After turning on some debugging information, I figured out what the
problem was.  The object that was returning the instance 'foo' was an
instance method.  Quixote was looking at this method for a property
called '_q_exports' instead of the instance that the method returned.
This seems strange to me.  I would have expected it to call the
instance method and use the result of that call for the namespace.  I
suppose I could just change the quixote code, but I would hate to do
that.  Is there any way to get this behavior through some option, or
maybe I'm just the only one who expects this type of behavior...

On Dec 29, 2003, at 1:26 PM, Kevin Smith wrote:

> I have a discrepancy that I'm trying to resolve between URLs formatted
> like .../foo vs. URLs formatted like .../foo/.  In this case, 'foo' is
> a class instance.  I would like for quixote to call the _q_index
> method in either case.  However, it's not calling it in either one.
> If I do '.../foo', the __str__ method of my instance is called.  If I
> do '.../foo/', I get a 'link does not exist' message.  How can I get
> the behavior that I want?
>
> Kevin Smith
> Kevin.Smith@sas.com
>
>
> _______________________________________________
> Quixote-users mailing list
> Quixote-users@mems-exchange.org
> http://mail.mems-exchange.org/mailman/listinfo/quixote-users
>
Kevin Smith
Kevin.Smith@sas.com



reply