[Zope-dev] ImapAdapter fails with 1.11.0.pr11

Michel Pelletier michel@digicool.com
Thu, 6 May 1999 10:46:02 -0400


> -----Original Message-----
> From: Brad Clements [mailto:bkc@murkworks.com]
> Sent: Wednesday, May 05, 1999 7:52 PM
> To: zope-dev@zope.org
> Subject: [Zope-dev] ImapAdapter fails with 1.11.0.pr11
> 
> 
>   File E:\Zope\Zope\lib\python\ZPublisher\Publish.py, line 255, in 
> publish_module
>   File E:\Zope\Zope\lib\python\ZPublisher\Publish.py, line 
> 145, in publish
>   File E:\Zope\Zope\lib\python\ZPublisher\BaseRequest.py, 
> line 398, in 
> traverse
>   File lib/python/Products/IMAPAdapter/IMAPAdapter.py, line 208, in 
> validate
>     (Object: acl_users)
> AttributeError: __getslice__
> 

I'll try to reproduce this

> in ImapAdapter, Validate I'm getting an attribute error on 
> __getslice__  
> on line  208
> 
> 	if string.lower(auth[:6])!='basic ':
>            	 return None
> 
> Looking through the trace, I think baserequest is passing in None for 
> auth, so I added..
> 
>         # Only do basic authentication
>         if auth = None :
>             return None
> 
> This however gives me a new traceback..
> 
>   Sorry, the requested Zope resource does not exist.<p>Check the URL 
> and try again.<p>
> <!--
> 
> <!--
> NotMail instance at 00EB59C0
> -->
> -->
> 
>   File E:\Zope\Zope\lib\python\ZPublisher\Publish.py, line 255, in 
> publish_module
>   File E:\Zope\Zope\lib\python\ZPublisher\Publish.py, line 
> 163, in publish
>   File E:\Zope\Zope\lib\python\ZPublisher\HTTPResponse.py, line 289, 
> in setBody
>   File E:\Zope\Zope\lib\python\ZPublisher\HTTPResponse.py, line 499, 
> in notFoundError
> NotFound: (see above)
> 
> 

I suspect the IMAPAdapter module is not well formed when you changed it.

Try going to lib/python, running python and doing a:

import BoboPOS
import Products.IMAPAdapter


If this doesn't fail, it's an IMAPAdapter bug.  If it does fail, it'll
tell you why.  For me, it's usualy a syntax error.

> Oh well, I've been trying to get NotMail to work since the 
> beginning, and 
> never seem to be able to get the correct combination of components to 
> make it work.. :-(
> 

Due to extreme Linux expo pressure, I haven't even had the chance to
glance at IMAPAdapter.  But I will be putting more effort into it after
the show.

-Michel