"Ray Leyva" <[EMAIL PROTECTED]> writes:
> self.request().serverSidePath() > > If you inherit from WebKit.Page ... this will give you the Server Side > Path of the servlet you're currently in. A little pythonic-string magic, > and voila you can get what you need. Ah.. However, there is a problem. The method seems to rely on a internal variable that is available quite late in the process - I'd like it to be available at __init__�time for my servlets, to be able to get the configuration very early (for setting up database connections and similar). I'm able to solve it by using a variable that basically checks if there's been any requests yet - if not, it sets up my database connection after checking the path. However, I don't like this solution. \EF -- Erik Forsberg http://www.lysator.liu.se/~forsberg/ GPG/PGP Key: 1024D/0BAC89D9 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
