Back to index

plone3  3.1.7
getPersonalFolderFor.py
Go to the documentation of this file.
00001 ## Script (Python) "getPlonePersonalFolderFor"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=member=None
00008 ##title=
00009 ##
00010 
00011 #NOTE
00012 #This script is here because when you use a 3rd party
00013 #portal_membership there are places in plone (personalize_form)
00014 #that look for this method.  If the tool doesnt support it
00015 #this script is acquired.
00016 
00017 context.plone_log("The getPersonalFolderFor script is deprecated and will be "
00018                   "removed in Plone 4.0.")
00019 
00020 folder=context.portal_membership.getHomeFolder(member)
00021 return getattr(folder,'.personal', None)