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
Jkx
2004-09-27
On Monday 27 September 2004 21:40, Neil Schemenauer wrote:
> On Mon, Sep 27, 2004 at 09:04:59PM +0200, Jkx wrote:
> > Another drawback, is that, this will bloat the load time, because i will
> > need to create a bunch of global page, and this is'nt the way quixote
> > usually works ..
>
>     # Users.py
>
>     _q_exports = ['something']
>
>     class View:
>         def something(self, request):
>             ...
>
>     something = View().something
>
> Better?

Yes, Better but not perfect, because the _q_export is on the module
but it should be on the View ?

In fact, I don't really understand why _q_lookup use instances, and
_q_exports is a module level. This is strange, I hope to manage
the Views used by _q_lookup, and _q_exports to be the same way.
But it's not the default behaviour, and doesn't make a lot of sense for
me. (But i've being hacking the publisher for too long right now to
have a clear vue)


Bye Bye.


reply