durusmail: quixote-users: Why class 'Session' has no method get_user() ?
Why class 'Session' has no method get_user() ?
2005-03-17
2005-03-17
2005-03-17
2005-03-17
2005-03-17
Why class 'Session' has no method get_user() ?
2005-03-17
Why class 'Session' has no method get_user() ?
2005-03-17
2005-03-17
2005-03-17
2005-03-17
2005-03-17
2005-03-17
Why class 'Session' has no method get_user() ?
Why class 'Session' has no method get_user() ?
Why class 'Session' has no method get_user() ?
2005-03-18
Why class 'Session' has no method get_user() ?
2005-03-18
Why class 'Session' has no method get_user() ?
2005-03-18
Why class 'Session' has no method get_user() ?
2005-03-18
Why class 'Session' has no method get_user() ?
"Template" components. Was: Why class 'Session' has no method get_user()?
2005-03-19
"Template" components. Was: Why class 'Session' has no method get_user()?
2005-03-19
Why class 'Session' has no method get_user() ?
2005-03-17
2005-03-17
2005-03-17
2005-03-17
2005-03-17
2005-03-17
Why class 'Session' has no method get_user() ?
Ioan Coman
2005-03-17
> On Mar 17, 2005, at 12:52 PM, Ioan Coman wrote:
>> But quixote.get_user()    should move to    Session.get_user()
>> quixote.get_session()      should move to    RootDirectory.session
>> quixote.get_request()      should move to   RootDirectory.request
>>
>> with RootDirectory derived from Directory
>
> Currently, the publisher is the real root of all of this information.
> If you import get_publisher(), you can get to everything without
> importing anything else.
> The other functions are all abbreviations of calls that start with
> get_publisher().
>

I just checked (with print "set request"    and     print "get request"):
When http server start first is called
            publish.process_request
and second my method from RootDirectory
(That is obvious, of course, but I checked)

I changed publish.process_request to include
            self.root_directory.request=request
in line 273 of publish.py

Doing this now I have request (as attribute not as function)
and request gives me 'response' and 'session'; That's all I need!

How about to have 'request' available inside 'root_directory' ?


reply