Re: [Zope3-Users] LoginPassword error

2010-01-12 Thread Simon Elbaz
After adding zope.login to configure.zcml, all is fine.
Thanks Baiju.

Baiju M wrote:
> On Mon, Jan 11, 2010 at 6:45 PM, Simon Elbaz  wrote:
>   
>> Hi,
>> I've been quietly working with zope3 until I recently launched a buildout.
>> Now, the following error occurs when trying to access the ZMI.
>> 
>
> I can see that you are using 2.12.0 version of zope.publisher
> which has some changes related to authentication:
> http://pypi.python.org/pypi/zope.publisher#id1
>
> >From CHANGES.txt:
>
> Reverted change done in 3.6.2. The zope.authentication dependency has
> been removed again. The BasicAuthAdapter and FTPAuth adapters are now
> found in the new zope.login package.
>
> So, it looks like you need to include "zope.login" as dependency and it's 
> ZCML.
>
> BTW, do you pin your versions in version.cfg ?
> This might be useful: http://wiki.zope.org/bluebream/PinningVersionsInBuildout
>
> Regards,
> Baiju M
>
>   

___
Zope3-users mailing list
Zope3-users@zope.org
https://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] LoginPassword error

2010-01-10 Thread Baiju M
On Mon, Jan 11, 2010 at 6:45 PM, Simon Elbaz  wrote:
> Hi,
> I've been quietly working with zope3 until I recently launched a buildout.
> Now, the following error occurs when trying to access the ZMI.

I can see that you are using 2.12.0 version of zope.publisher
which has some changes related to authentication:
http://pypi.python.org/pypi/zope.publisher#id1

>From CHANGES.txt:

Reverted change done in 3.6.2. The zope.authentication dependency has
been removed again. The BasicAuthAdapter and FTPAuth adapters are now
found in the new zope.login package.

So, it looks like you need to include "zope.login" as dependency and it's ZCML.

BTW, do you pin your versions in version.cfg ?
This might be useful: http://wiki.zope.org/bluebream/PinningVersionsInBuildout

Regards,
Baiju M
___
Zope3-users mailing list
Zope3-users@zope.org
https://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] LoginPassword error

2010-01-10 Thread Simon Elbaz
Hi,
I've been quietly working with zope3 until I recently launched a buildout.
Now, the following error occurs when trying to access the ZMI.
Thanks for your help
Simon


2010-01-11T14:11:15 ERROR SiteError http://localhost:9060/@@login.html
Traceback (most recent call last):
  File 
"/home/simon/.buildout/eggs/zope.publisher-3.12.0-py2.5.egg/zope/publisher/publish.py",
 
line 134, in publish
result = publication.callObject(request, obj)
  File 
"/home/simon/.buildout/eggs/zope.app.publication-3.10.2-py2.5.egg/zope/app/publication/zopepublication.py",
 
line 205, in callObject
return mapply(ob, request.getPositionalArguments(), request)
  File 
"/home/simon/.buildout/eggs/zope.publisher-3.12.0-py2.5.egg/zope/publisher/publish.py",
 
line 109, in mapply
return debug_call(obj, args)
   - __traceback_info__: >
  File 
"/home/simon/.buildout/eggs/zope.publisher-3.12.0-py2.5.egg/zope/publisher/publish.py",
 
line 115, in debug_call
return obj(*args)
  File 
"/home/simon/.buildout/eggs/zope.app.security-3.7.5-py2.5.egg/zope/app/security/browser/auth.py",
 
line 64, in login
self.request.principal.id, self.request)
  File 
"/home/simon/.buildout/eggs/zope.principalregistry-3.7.0-py2.5.egg/zope/principalregistry/principalregistry.py",
 
line 82, in unauthorized
a = ILoginPassword(request)
TypeError: ('Could not adapt', http://localhost:9060/@@login.html>, )

___
Zope3-users mailing list
Zope3-users@zope.org
https://mail.zope.org/mailman/listinfo/zope3-users