durusmail: quixote-users: Use of _q_index in instance methods
Use of _q_index in instance methods
2004-08-03
2004-08-03
2004-08-05
2004-08-03
2004-08-04
2004-08-04
2004-08-05
2004-08-05
Use of _q_index in instance methods
A.M. Kuchling
2004-08-03
On Mon, Aug 02, 2004 at 08:08:24PM -0400, Steven Zatz wrote:
> class MyClass:
>    def _q_index(self, request):
>        request.response.set_content_type("text/plain")
>        return "Why doesn't this workl\n"

Your class definition needs to have a _q_exports attribute.

class MyClass:
    _q_exports = []
    def _q_index(self, request):...

You can get a more verbose error message for debugging purposes by
setting SECURE_ERRORS to False in your application's configuration
file.

--amk

reply