Re: [Zope-dev] security.declareProtected doesn't always work?

2002-01-04 Thread Martijn Faassen
Dieter Maurer wrote: [snip] Now replace the line security.declarePublic('getTitle') with something like security.declareProtected('View', 'getTitle'), and suddenly nobody is allowed to call getTitle() on a Book object anymore. You must acquistion wrap your book objects. Otherwise,

Re: [Zope-dev] security.declareProtected doesn't always work?

2002-01-04 Thread Chris McDonough
Aah, of course, makes sense. They should put this in the developer's guide! The thing that tripped me up is that it works at all for declarePublic. :) Martijn, I can put it in the developer's guide.. maybe the next time you're through there, you can add a comment with the issue and we can

[Zope-dev] File/stream like Pdata class in Zope?

2002-01-04 Thread Niels Mache
Hi, I want to transmit the data of a (probably large) Pdata object (Zope module OSF/Image) over a TCP/IP socket using sock.send(). Is there a stream-like wrapper class for Pdata in Zope? Any thoughts? Niels ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] File/stream like Pdata class in Zope?

2002-01-04 Thread Chris McDonough
I think you're going to need to roll your own here... I know of no wrapper class for pdata that makes it appear to be streamlike... Sorry, - C - Original Message - From: Niels Mache [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, January 04, 2002 11:41 AM Subject: [Zope-dev]

[Zope-dev] LDAP on Zope 2.5.0b2

2002-01-04 Thread Peeyush Garg
Hi, Has anybody successfully installed LDAPUserFolder on Zope2.5.0b2 (on Linux). When I compile python-ldap module and install it alongwith LDAPUserFolder, it shows as a installed product in the Zope management screen, but when I try to connect to the LDAP server (openldap 2.0.18) also

Re: [Zope-dev] LDAP on Zope 2.5.0b2

2002-01-04 Thread Jens Vagelpohl
i have it running on 2.5beta3 without a problem. try upgrading your zope. jens On Friday, January 4, 2002, at 02:29 , Peeyush Garg wrote: Hi,   Has anybody successfully installed LDAPUserFolder on Zope2.5.0b2 (on Linux). When I compile python-ldap module and install it alongwith

Re: [Zope-dev] security.declareProtected doesn't always work?

2002-01-04 Thread Dieter Maurer
Martijn Faassen writes: Dieter Maurer wrote: [snip] Now replace the line security.declarePublic('getTitle') with something like security.declareProtected('View', 'getTitle'), and suddenly nobody is allowed to call getTitle() on a Book object anymore. You must acquistion wrap

Re: [Zope-dev] security.declareProtected doesn't always work?

2002-01-04 Thread John Ziniti
The basic security mechanism uses the attribute m__roles__ in order to protect m. If this attribute it None, then m is public. Otherwise, it is expected to be a sequence of roles that are allowed to use m. But, ExtensionsClass brings with it computed attributes. This allows m__roles__ to

Re: [Zope-dev] security.declareProtected doesn't always work?

2002-01-04 Thread Chris McDonough
I have added this nugget of knowledge as a comment to the ZDG. John Ziniti wrote: The basic security mechanism uses the attribute m__roles__ in order to protect m. If this attribute it None, then m is public. Otherwise, it is expected to be a sequence of roles that are allowed to use m.

[Zope-dev] FreeBSD, Zope, and Python 2.1

2002-01-04 Thread Matthew T. Kromer
For what it's worth: Today I helped Jens track down a problem under FreeBSD where Zope was crashing rendering a page which rendered successfully on other systems. It turns out that the default stack size for a thread under FreeBSD is 64K, and that's not enough stack space to render this

Re: [Zope-dev] LDAP on Zope 2.5.0b2

2002-01-04 Thread Peeyush Garg
Hi Jens, I get the same error message with installation of 2.5.0b3. Do you have the latest files checked out for python-ldap module? Any other clues? I've tried several combinations and not any luck yet. ~Peeyush. - Original Message - From: Jens Vagelpohl [EMAIL PROTECTED] To: Peeyush

Re: [Zope-dev] LDAP on Zope 2.5.0b2

2002-01-04 Thread Jens Vagelpohl
i only ever use python-ldap 1.10alpha3, that's all i test against because it's a known quantity. anything else is way too much in flux. jens On Friday, January 4, 2002, at 05:25 , Peeyush Garg wrote: Hi Jens, I get the same error message with installation of 2.5.0b3. Do you have the