Back to index

plone3  3.1.7
Namespaces | Variables
addtoFavorites.py File Reference

Go to the source code of this file.

Namespaces

namespace  addtoFavorites

Variables

 addtoFavorites.RESPONSE = context.REQUEST.RESPONSE
tuple addtoFavorites.homeFolder = context.portal_membership.getHomeFolder()
tuple addtoFavorites.state = context.restrictedTraverse("@@plone_context_state")
string addtoFavorites.view_url = '%s/%s'
list addtoFavorites.addable_types = ['Favorite']
 addtoFavorites.favs = homeFolder.Favorites
 addtoFavorites.targetFolder = homeFolder.Favorites
string addtoFavorites.new_id = 'fav_'
tuple addtoFavorites.myPath = context.portal_url.getRelativeUrl(context)
tuple addtoFavorites.fav_id = targetFolder.invokeFactory('Favorite', id=new_id, title=context.TitleOrId(), remote_url=myPath)
tuple addtoFavorites.favorite = getattr(targetFolder, fav_id, None)
tuple addtoFavorites.msg