Re: [Zope3-Users] how to know which port zope is runnning on?

2006-11-30 Thread Stephan Richter
On Thursday 30 November 2006 05:10, Chris Withers wrote: > Well, I'd be looking to dig into the config info provided by zope.conf. > > In Zope 2, this is done with: > > from App.config import getConfiguration > config = getConfiguration() > config.whatever.etc > > ...Zope 3 likely has something sim

Re: [Zope3-Users] how to know which port zope is runnning on?

2006-11-30 Thread Chris Withers
Shailesh Kumar wrote: I have 2 different zope applications running (on different machines) and they would be talking to each other, one is a master application and there may be multiple instances of the other one (on different machines). I need the port number information for registing one with a

Re: [Zope3-Users] how to know which port zope is runnning on?

2006-11-29 Thread Shailesh Kumar
I have 2 different zope applications running (on different machines) and they would be talking to each other, one is a master application and there may be multiple instances of the other one (on different machines). I need the port number information for registing one with another programmatically

Re: [Zope3-Users] how to know which port zope is runnning on?

2006-11-29 Thread Chris Withers
Shailesh Kumar wrote: Thanx for the hint. I still don't know how to programmatically access the event log. will try to figure it out. Why do you need to know programmatically? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

Re: [Zope3-Users] how to know which port zope is runnning on?

2006-11-28 Thread Shailesh Kumar
Thanx for the hint. I still don't know how to programmatically access the event log. will try to figure it out. With regards, -shailesh On 11/28/06, Chris Withers <[EMAIL PROTECTED]> wrote: Shailesh Kumar wrote: > Thanx Tom, but I was looking for the general case, not in the context of a >

Re: [Zope3-Users] how to know which port zope is runnning on?

2006-11-28 Thread Chris Withers
Shailesh Kumar wrote: Thanx Tom, but I was looking for the general case, not in the context of a request. Like say during application startup I want to know the port number. Is it possible? This is surely in the event log, why don't you look there? Chris -- Simplistix - Content Management,

Re: [Zope3-Users] how to know which port zope is runnning on?

2006-11-28 Thread Shailesh Kumar
Thanx Tom, but I was looking for the general case, not in the context of a request. Like say during application startup I want to know the port number. Is it possible? With regards, -shailesh On 11/28/06, Tom Gross <[EMAIL PROTECTED]> wrote: Hi Shailesh, try request.get('SERVER_PORT').

Re: [Zope3-Users] how to know which port zope is runnning on?

2006-11-28 Thread Tom Gross
Hi Shailesh, try request.get('SERVER_PORT'). Cheers -Tom Shailesh Kumar wrote: Hi, Is it possible for the application code to figure out the port number on which zope is running? What is the suitable api for that? With regards, -shailesh -

[Zope3-Users] how to know which port zope is runnning on?

2006-11-28 Thread Shailesh Kumar
Hi, Is it possible for the application code to figure out the port number on which zope is running? What is the suitable api for that? With regards, -shailesh ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3