[Zope-CMF] Weirdness with Favorites.

Boddy Stephen Stephen.Boddy@btcellnet.net
Fri, 4 May 2001 18:10:22 +0100


Here's the symptoms...

A normal member (member C) creates a file which is published.

A manager member (member M) views that file, and clicks Add to Favorites.

Member C has no Favorites directory
	A link is created in member M's Favorites, creating the directory if
necessary.

Member C has a Favorites directory, member M has a Favorites
	A link is created in member M's Favorites.

Member C has a Favorites directory, Member M has no Favorites
	A link is created in member C's Favorites.

A normal member (member N) views that file, and clicks Add to Favorites.
Regardless of who does and doesn't have a Favorites folder, first of all on
/view (which is what a search sends you to) the member actionbox is replaced
with the guest actionbox. If I remove the /view from the address bar the
actionbox is back to the member actionbox. Then, clicking on Add to
Favorites, I'm presented with the following error and traceback:
	Error Type: AttributeError
	Error Value: 'None' object has no attribute 'manage_addPortalFolder'
	Traceback (innermost last):
	  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 223,
in publish_module
	  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187,
in publish
	  File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
	    (Object: DynamicType)
	  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171,
in publish
	  File
/home/sboddy/zope_09/work/Zope-2.3.1-src/lib/python/ZPublisher/mapply.py,
line 160, in mapply
	    (Object: addtoFavorites)
	  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112,
in call_object
	    (Object: addtoFavorites)
	  File
/usr/local/Zope-2.3.1/lib/python/Products/CMFCore/FSDTMLMethod.py, line 218,
in __call__
	    (Object: addtoFavorites)
	  File
/home/sboddy/zope_09/work/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_Stri
ng.py, line 538, in __call__
	    (Object: addtoFavorites)
	  File
/home/sboddy/zope_09/work/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_Let.
py, line 147, in render
	    (Object: homeFolder="portal_membership.getHomeFolder()")
	  File
/home/sboddy/zope_09/work/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_Util
.py, line 334, in eval
	    (Object: homeFolder.manage_addPortalFolder( id='Favorites'
	                                                      ,
title='Favorites'))
	    (Info: homeFolder)
	  File <string>, line 0, in ?
	  File
/home/sboddy/zope_09/work/Zope-2.3.1-src/lib/python/DocumentTemplate/DT_Util
.py, line 127, in careful_getattr
	AttributeError: (see above)
Even when the folder exists it seems to be trying to create one and failing.

Any suggestions?
Regards
Steve



**********************************************************************
This email and any attachments may be confidential and the subject of 
legal professional privilege.  Any disclosure, use, storage or copying 
of this email without the consent of the sender is strictly prohibited.
Please notify the sender immediately if you are not the intended 
recipient and then delete the email from your inbox and do not 
disclose the contents to another person, use, copy or store the 
information in any medium. 
**********************************************************************