RE: [Zope] how to change the 'Zope' realm/resource??

2000-09-15 Thread Dimitrios Andrakakis

--- Dieter Maurer <[EMAIL PROTECTED]> wrote:
> [various interesting stuff]

Ok, I've *got* to ask this: Isn't it somewhere in the
code ?
I know, I know... few people are willing to recompile
just
for this (let alone the ones that have used the .rpm
way).
But if I want to, I *suppose* it'll just take a lot of
grepping
right ?

But then, as is usually the case with computers,
there's 
lots of difference between supposing and implementing.
Would it be otherwise, ISPs would be admin'd by CEOs
:-)

Dimitris

__
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] how to change the 'Zope' realm/resource??

2000-09-13 Thread Dieter Maurer

Brian Lloyd writes:
 > The realm is currently an attribute of the RESPONSE object. 
 > 
 > Note that wouldn't help with "per folder" realm changing. 
 > I'm open to suggestions on that. One way I suppose would 
 > be to subclass Folder and implement an extended version 
 > of __bobo_traverse__ that changed the realm upon traversal.
Or (ab)use the SiteAccess product (an external method
as AccessRule setting the RESPONSE's realm attribute.


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] how to change the 'Zope' realm/resource??

2000-09-13 Thread Brian Lloyd


> Steve Drees wrote:
> > WHat if we want to change the realm dependent on the folder?
> > 
> > I.e. Is there a way to change this at run-time?
> 
> I'd love to know the answer to this one too :-)
> 
> Chris

The realm is currently an attribute of the RESPONSE object. 
There is a 'realm' class attribute which provides the 
default realm - you could either somehow change this as 
needed (which may be sort of hard, especially since 
unauthorized usually gets raised before user code ever 
gets run), or change the default class attribute.

You could change the default class attribute by either:

  - hacking the code (bleah)

  - or maybe better, create a "product" in your lib/python/Products
(say RealmHack). The product dir would only have an __init__.py 
file that looked like:

import ZPublisher.HTTPResponse

ZPublisher.HTTPResponse.HTTPResponse.realm='whatever'

...which would allow you change the default class attr 
without hacking the code itself. When your product gets 
imported (at startup time), your realm would be used.

Note that wouldn't help with "per folder" realm changing. 
I'm open to suggestions on that. One way I suppose would 
be to subclass Folder and implement an extended version 
of __bobo_traverse__ that changed the realm upon traversal.

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Mail problem ([Zope] how to change the 'Zope' realm/resource?? (fwd))

2000-09-13 Thread Geir Bækholt

on Wednesday, September 13, 2000 Oleg Broytmann wrote :
OB> Hi!

OB>Is it only me? I am getting most (but not all) message twice.

OB> Oleg.


me too !


--
Geir Bækholt
web-developer/designer
[EMAIL PROTECTED]
http://www.funcom.com



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Mail problem ([Zope] how to change the 'Zope' realm/resource?? (fwd))

2000-09-13 Thread Oleg Broytmann

Hi!

   Is it only me? I am getting most (but not all) message twice.

Oleg.
 
 Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.

-- Forwarded message --
Received: from (zope.codeit.com) [209.67.167.110] 
by fep132.fep.ru with esmtp (Exim 2.05 #1 (Debian))
id 13Z92d-0002EM-00; Wed, 13 Sep 2000 13:41:19 +0400
Received: from www.zope.org (localhost [127.0.0.1])
by zope.codeit.com (8.9.2/8.8.7) with ESMTP id CAA04134;
Wed, 13 Sep 2000 02:10:44 -0700 (PDT)
Received: from mail.nipltd.com ([EMAIL PROTECTED] [194.193.44.1])
by zope.codeit.com (8.9.2/8.8.7) with ESMTP id CAA04112
for <[EMAIL PROTECTED]>; Wed, 13 Sep 2000 02:10:40 -0700 (PDT)
Received: from chrisw.nipltd.com ([194.193.44.115] helo=nipltd.com)
by mail.nipltd.com with asmtp (AMailer 1.3.16 #2)
id 13Z8Yu-0001Ej-00; Wed, 13 Sep 2000 10:10:36 +0100
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 13 Sep 2000 10:08:54 +0100
From: Chris Withers <[EMAIL PROTECTED]>
Organization: New Information Paradigms
X-Mailer: Mozilla 4.74 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Steve Drees <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: [Zope] how to change the 'Zope' realm/resource??
References: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]
X-Mailman-Version: 1.0b8
Precedence: bulk
List-Id: Users of the Z Object Publishing Environment 
X-BeenThere: [EMAIL PROTECTED]

Steve Drees wrote:
> WHat if we want to change the realm dependent on the folder?
> 
> I.e. Is there a way to change this at run-time?

I'd love to know the answer to this one too :-)

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] how to change the 'Zope' realm/resource??

2000-09-13 Thread Chris Withers

Steve Drees wrote:
> WHat if we want to change the realm dependent on the folder?
> 
> I.e. Is there a way to change this at run-time?

I'd love to know the answer to this one too :-)

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )