Re: [Zope3-Users] Pluggable authentication, a newbie's question

2007-02-01 Thread Alexei Ustyuzhaninov
Stephan Richter пишет: On Sunday 28 January 2007 11:44, Alexei Ustyuzhaninov wrote: This code is contained in the file mypackage/__init__.py, mypackage in turn is loaded via ZCML. This is bad form. You should have that code in another module. Both plugins and PAU are registered successfully

Re: [Zope3-Users] Pluggable authentication, a newbie's question

2007-01-30 Thread Alexei Ustyuzhaninov
David Johnson пишет: On Jan 29, 2007, at 5:30 PM, Alexei Ustyuzhaninov wrote: David Johnson пишет: What do you mean by Your authenticator is registered as a Plugin in a PAU in your current site? I registered the authenticator as a utility and assigned the utility name to the

Re: [Zope3-Users] Pluggable authentication, a newbie's question

2007-01-30 Thread Stephan Richter
On Monday 29 January 2007 11:30, Alexei Ustyuzhaninov wrote: Aha, seems that I see where is my problem. I didn't manage site through ZMI. Is it possible to do this manipulation programmatically? Yes, we do it only this way. The site management API is very easy. See IComponents. Regards,

Re: [Zope3-Users] Pluggable authentication, a newbie's question

2007-01-30 Thread Stephan Richter
On Monday 29 January 2007 16:06, David Johnson wrote: Aha, seems that I see where is my problem. I didn't manage site   through ZMI. Is it possible to do this manipulation programmatically? That I don't know. Probably.   Why you would want to is another   question. There is a lot of

Re: [Zope3-Users] Pluggable authentication, a newbie's question

2007-01-29 Thread David Johnson
I'll try. Your authenticator is registered as a Plugin in a PAU in your current site? I'm not sure the cause without more details, but when I see this happen I've usually neglected one of the following: 1. The credentials plugin is not selected and added. 2. The authenticator plugin is not

Re: [Zope3-Users] Pluggable authentication, a newbie's question

2007-01-29 Thread Alexei Ustyuzhaninov
Hi, David! Thank you for the help. David Johnson пишет: I'll try. Your authenticator is registered as a Plugin in a PAU in your current site? I'm not sure the cause without more details, but when I see this happen I've usually neglected one of the following: What do you mean by Your

Re: [Zope3-Users] Pluggable authentication, a newbie's question

2007-01-29 Thread David Johnson
On Jan 29, 2007, at 5:30 PM, Alexei Ustyuzhaninov wrote: David Johnson пишет: What do you mean by Your authenticator is registered as a Plugin in a PAU in your current site? I registered the authenticator as a utility and assigned the utility name to the authenticatorPlugins attribute of

[Zope3-Users] Pluggable authentication, a newbie's question

2007-01-28 Thread Alexei Ustyuzhaninov
Hello, I try to create a plugin, which could authenticate users against an external database. Here is the code: from zope.component import provideUtility from zope.app.authentication import PluggableAuthentication from zope.app.authentication.interfaces import\ ICredentialsPlugin,