RE: [Webware-discuss] Architecture question

2002-01-17 Thread Ian Bicking
On Thu, 2002-01-17 at 18:22, Richard Gordon wrote: > At 2:33 PM -0500 1/17/02, Geoffrey Talvola wrote: > >The usual suggestion when you want a "singleton" object that is shared > >across all servlet instances is to just store it in a global variable at > >module level. You can either put this var

RE: [Webware-discuss] Architecture question

2002-01-17 Thread Richard Gordon
At 2:33 PM -0500 1/17/02, Geoffrey Talvola wrote: >The usual suggestion when you want a "singleton" object that is shared >across all servlet instances is to just store it in a global variable at >module level. You can either put this variable directly into the module >that contains your servlet,

Re: [Webware-discuss] Easiest way to grab HTTP_HOST from page

2002-01-17 Thread Tavis Rudd
On Thursday 17 January 2002 14:16, Ben Parker wrote: > self.request()._environ['HTTP_HOST'] That should be: self.request.environ()['HTTP_HOST'] Underscored attributes are internal implementation details that are not guarenteed to remain as they are. > assuming self is a subclass of WebKit.Page

Re: [Webware-discuss] Architecture question

2002-01-17 Thread Brian Brown
Thanks you for the replies! I will try it at the module level and see what happens! thanks, Brian --On Thursday, January 17, 2002 02:15:53 PM -0800 Tavis Rudd <[EMAIL PROTECTED]> wrote: > On Thursday 17 January 2002 12:48, Mike Orr wrote: >> On Thu, Jan 17, 2002 at 02:33:52PM -0500, Geoffrey

RE: [Webware-discuss] Easiest way to grab HTTP_HOST from page

2002-01-17 Thread Ian Bicking
On Thu, 2002-01-17 at 16:16, Ben Parker wrote: > self.request()._environ['HTTP_HOST'] > > assuming self is a subclass of WebKit.Page More properly, you should use self.request().environ()['HTTP_HOST'] Ian ___ Webware-discuss mailing list [EMAIL P

RE: [Webware-discuss] Easiest way to grab HTTP_HOST from page

2002-01-17 Thread Ben Parker
self.request()._environ['HTTP_HOST'] assuming self is a subclass of WebKit.Page -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Rolf Hanson Sent: Thursday, January 17, 2002 5:08 PM To: [EMAIL PROTECTED] Subject: [Webware-discuss] Easiest way to grab HTTP

[Webware-discuss] Easiest way to grab HTTP_HOST from page

2002-01-17 Thread Rolf Hanson
In my SitePage class, what is the easiest way to grab the HTTP_HOST field from my http request? Rolf ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Re: [Webware-discuss] OneShot.cgi on Win NT

2002-01-17 Thread John Holland
I've fought with this for a while, on PWS and IIS, and decided to give up on MS web servers and Webware. It works fine with Apache on Windows, so I can use it with that. On Thu, Jan 17, 2002 at 02:41:32PM -0500, Geoffrey Talvola wrote: > Look in OneShot.cgi and in OneShotAdapter.py. In both file

RE: [Webware-discuss] Determine Context

2002-01-17 Thread Geoffrey Talvola
> -Original Message- > From: Luke Opperman [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 17, 2002 4:05 PM > To: Webware Discuss > Subject: [Webware-discuss] Determine Context > > > How can a Servlet determine the name of the context it is > in at runtime? self.request().contextNa

[Webware-discuss] Determine Context

2002-01-17 Thread Luke Opperman
How can a Servlet determine the name of the context it is in at runtime? Thanks, Luke = -- Reference Counting Garbage Collection: Look out philosophy majors, things really DO cease to exist when no one is looking at them! -- _

Re: [Webware-discuss] Architecture question

2002-01-17 Thread Tavis Rudd
On Thursday 17 January 2002 12:48, Mike Orr wrote: > On Thu, Jan 17, 2002 at 02:33:52PM -0500, Geoffrey Talvola wrote: > > The usual suggestion when you want a "singleton" object that is > > shared across all servlet instances is to just store it in a > > global variable at module level. You can

Re: [Webware-discuss] Architecture question

2002-01-17 Thread Mike Orr
On Thu, Jan 17, 2002 at 02:33:52PM -0500, Geoffrey Talvola wrote: > The usual suggestion when you want a "singleton" object that is shared > across all servlet instances is to just store it in a global variable at > module level. You can either put this variable directly into the module > that co

RE: [Webware-discuss] OneShot.cgi on Win NT

2002-01-17 Thread Geoffrey Talvola
Look in OneShot.cgi and in OneShotAdapter.py. In both files there are exception handlers that attempt to log to sys.stderr. Perhaps you can temporarily modify those places so that they instead log to a file that you've opened, and see if the whole traceback shows up in the file. Just search for

RE: [Webware-discuss] Architecture question

2002-01-17 Thread Geoffrey Talvola
> -Original Message- > From: Brian Brown [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 17, 2002 1:26 PM > To: [EMAIL PROTECTED] > Subject: [Webware-discuss] Architecture question > > > Greetings all, > > It's been a long route to get here -> Perl CGI -> ASP -> Zope > -> WebWar

RE: [Webware-discuss] OneShot.cgi alternative; Reloading SitePage on Demand

2002-01-17 Thread Geoffrey Talvola
> -Original Message- > From: Jason Hildebrand [mailto:[EMAIL PROTECTED]] > > On Thu, 2002-01-17 at 12:54, Roger wrote: > > While debugging a silly mistake, I discovered a convenient > way to reload > > my SitePage to incorporate coding changes during my testing. > > I also find OneShot.

Re: [Webware-discuss] IRC channel?

2002-01-17 Thread Stefan Schwarzer
Hello Rolf On Thu, 17 Jan 2002, Rolf Hanson wrote: > Take a look at http://www.openprojects.net/irc_servers.html for a list of > servers by geographic location. I just noted that it's .shtml, not .html . Stefan ___ Webware-discuss mailing list [EMAI

Re: [Webware-discuss] OneShot.cgi alternative; Reloading SitePageon Demand

2002-01-17 Thread Jason Hildebrand
On Thu, 2002-01-17 at 12:54, Roger wrote: > While debugging a silly mistake, I discovered a convenient way to reload > my SitePage to incorporate coding changes during my testing. I also find OneShot.cgi to be too slow for testing, perhaps because I have a relatively slow machine. In any case, I

[Webware-discuss] OneShot.cgi alternative; Reloading SitePage on Demand

2002-01-17 Thread Roger
While debugging a silly mistake, I discovered a convenient way to reload my SitePage to incorporate coding changes during my testing. 1. SitePage must be located in your Context directory, possibly a bad practice. 2. Optional, In a convenient page, add something similar to: Reload Sit

[Webware-discuss] Architecture question

2002-01-17 Thread Brian Brown
Greetings all, It's been a long route to get here -> Perl CGI -> ASP -> Zope -> WebWare (over the course of many years :), and so far, IMHO, Webware is a dream come true, just like Python :) Now on to my question: I am querying Jabber entities for information an presenting that on my web site

Re: [Webware-discuss] OneShot.cgi on Win NT

2002-01-17 Thread John Holland
Unfortunately I can't. this is all I get (in the web browser, if anyone knows any log file that will have it let me know). On Thu, Jan 17, 2002 at 10:52:38AM -0500, Geoffrey Talvola wrote: > It looks like the traceback got chopped off, so it's hard to tell what's > going wrong. Could you includ

RE: [Webware-discuss] OneShot.cgi on Win NT

2002-01-17 Thread Geoffrey Talvola
It looks like the traceback got chopped off, so it's hard to tell what's going wrong. Could you include the whole traceback? - Geoff > -Original Message- > From: John Holland [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 16, 2002 3:55 PM > To: webware discuss > Subject: Re: [We

[Webware-discuss] IRC channel?

2002-01-17 Thread Rolf Hanson
Is anyone interested in setting up a Webware IRC channel on the open projects network? IRC is a useful method of getting quick answers to configuration problems. I'll sit around on #webware to see if anyone else shows up. Take a look at http://www.openprojects.net/irc_servers.html for a list of s

Re: [Webware-discuss] Start long-running process from web request?

2002-01-17 Thread Mike Orr
On Thu, Jan 17, 2002 at 03:00:16PM +0530, Aditya Gilra wrote: > If a client opens my site and AppServer isn't running, WebKit.cgi should > start it. i.e I want WebKit.cgi to start up the appserver if it's not running > already from just a client request and without my intervention. If it's > al

Re: [Webware-discuss] Start long-running process from web request?

2002-01-17 Thread Aditya Gilra
||Shriharih|| God-Remembrance. Thanks for the prompt replies. On Thursday 17 January 2002 09:25, Ben Parker wrote: > I need some help understanding this question: How can you complete the > Webware installation on this external box? I'm assuming you can't get to a > prompt on the machine, othe