Re: [Zope3-Users] Adapting a builtin?

2005-12-06 Thread Michael Howitz
On Tue, 2005-12-06 at 18:44 -0500, Paul Winkler wrote: > Hi, > > Is it possible to register an adapter for a builtin type > such as str? All the adapter examples I see use an interface for the > "for" attribute. > > Something like: > >provides=".interfaces.IHTTPConnection" > factory

Re: [Zope3-Users] logout feature with zope3

2005-12-06 Thread Jing Song
Thanks Dominik and Alec for your inputs.  Now I implement the authentication adapter using browser cookies with customized form and it works.But I'm having another trouble. We use ldap authentication to store the user information.  How could that work with cookies to do login and logout

[Zope3-Users] Adapting a builtin?

2005-12-06 Thread Paul Winkler
Hi, Is it possible to register an adapter for a builtin type such as str? All the adapter examples I see use an interface for the "for" attribute. Something like: This doesn't seem to work, although it doesn't give any errors. I'm using five in a Zope 2 trunk sandbox. Later I'll dig throug

Re: [Zope3-Users] Catalog for newbies

2005-12-06 Thread Alen Stanisic
Hi Frank On Tue, 2005-12-06 at 14:36 +0100, Frank Burkhardt wrote: [...] > 2. Documents are added to the index only when they are added to the ZODB. >Is there a Way to "scan" the entire ZODB to index all objects >matching the indices interface constraints? ZODB objects created before Un

Re: [Zope3-Users] logout feature with zope3

2005-12-06 Thread Dominik Huber
The global PrincipalRegistry does not provide any logout mechanism (regular principals registered within zcml). The PAU provides the logout mechanism invoking the configured credential plugin. One simple way to get the logout mechanism is to use the 'Session Credentials'-plugin. (The basic HTT

Re: [Zope3-Users] logout feature with zope3

2005-12-06 Thread Alec Munro
Hi Jane, I'm not an expert, but having run into a similar situation myself, you may be out of luck. The HTTP Auth (what generates the popup window) is almost entirely separate from other browser functionality, and once the authentication is complete, I don't know of any way you could access the pa

[Zope3-Users] logout feature with zope3

2005-12-06 Thread Jing Song
Hi,   I have problems to implement my zope logout feature. Since the Basic HTTP Authentication does not funcition properly, I'm trying to work around by using Philipp's cookie based authentication solution showing in the Worldcookery example. But if I only use the default pop-up login window wi

Re: [Zope3-Users] Catalog for newbies

2005-12-06 Thread Jeff Shell
On 12/6/05, Frank Burkhardt <[EMAIL PROTECTED]> wrote: > Hi, > > after adding a "Unique Id utility", "Catalog" and some field + text indices > I successfully added documents which seem to be added to the catalog > (as shown in the catalog's "Advanced"-tab). > > However I've got two question now: >

[Zope3-Users] Catalog for newbies

2005-12-06 Thread Frank Burkhardt
Hi, after adding a "Unique Id utility", "Catalog" and some field + text indices I successfully added documents which seem to be added to the catalog (as shown in the catalog's "Advanced"-tab). However I've got two question now: 1. How do I search the catalog? 2. Documents are added to the index

[Zope3-Users] Problems building Zope3

2005-12-06 Thread John Poltorak
Can anyone tell me what may have gone wrong here? /usr/bin/python.exe install.py -q build Traceback (most recent call last): File "install.py", line 28, in ? context.initialize() File "G:/ux2bs/workdir/Zope-3.1.0/Support/zpkgsetup/setup.py", line 83, in initialize self.scan(self._pkg