durusmail: quixote-users: URL / _q_export / _q_lookup
URL / _q_export / _q_lookup
2004-09-27
2004-09-27
2004-09-27
2004-09-27
URL / _q_export / _q_lookup
Neil Schemenauer
2004-09-27
On Mon, Sep 27, 2004 at 06:17:05PM +0200, Jkx wrote:
> Right now, i want to do the same stuff without the _q_lookup.
> I mean. I want to have something like this
>
> -----------------------------------------------------------
> #Users.py
> class View:
>     _q_export = ['XXXX', ]
>
>     def XXXXX(self,request):
>         ...
>
> And i want to have a url like http://localhost:8080/users/Users/XXXX
> (read call the method XXXX on the View of module Users)

It's not exactly clear to me what you want.  Perhaps you want to
have a global instance.  Something like this:

    # users.py

    _q_exports = ['Users']

    class View:
        _q_exports = ['XXXXX', ]

        def XXXXX(self,request):
            ...

    Users = View()

Does that help?

  Neil

reply