[albatross-users] Welcome to Albatross-users

Dave Cole djc at object-craft.com.au
Mon Mar 4 18:46:16 EST 2002


>>>>> "Tim" == Tim Churches <tchur at optushome.com.au> writes:

Tim> One thing which almost every application requires is
Tim> logging. Would it be possible to add some hooks into Albatross so
Tim> that a logging class is called automatically at given points in
Tim> teh processing?

I will let Ben reply to this - he has been doing some stuff in that
area.

Tim> Would it be possible to incorporate the nifty cgitb (CGI
Tim> traceback) module which is now standard in python 2.2 into
Tim> Albatross 9it is available for early versions of Python - see
Tim> http://www.python.org/doc/current/lib/module-cgitb.html)?

That looks like a good thing.  Without actually trying it out ('cos
I'm a lazy bugger), something like this should do something close to
what you want:

import cgitb
from albatross import SimpleApp

class MyApp(SimpleApp):
    def handle_exception(self, req):
        cgitb.handler()

Tim> Sounds good. Will the file-based session server support
Tim> "migration" of user sessions from one server to another eg if
Tim> there is a "farm" of Web app servers each accessing a shared
Tim> file-based session server, then a round-robin DNS can be used to
Tim> route each HTTP request to the next server and that server will
Tim> load the correct application state.  Possible?

One of the advantages of using a session server is that it allows
sessions to work transparently across multiple front end web serving
machines.

- Dave

-- 
http://www.object-craft.com.au




More information about the Albatross-users mailing list