Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFDefault.Favorite Namespace Reference

Classes

class  Favorite

Functions

def addFavorite
def handleFavoriteAddedEvent

Variables

tuple FavoriteFactory = Factory(Favorite)

Function Documentation

def CMFDefault.Favorite.addFavorite (   self,
  id,
  title = '',
  remote_url = '',
  description = '' 
)
Add a Favorite.

Definition at line 39 of file Favorite.py.

00039 
00040 def addFavorite(self, id, title='', remote_url='', description=''):
00041     """Add a Favorite.
00042     """
00043     o = Favorite(id, title, remote_url, description)
00044     self._setObject(id, o)
00045 

Event subscriber.

Definition at line 178 of file Favorite.py.

00178 
00179 def handleFavoriteAddedEvent(obj, event):
00180     """Event subscriber.
00181     """
00182     if obj.remote_url:
00183         obj.edit(obj.remote_url)

Variable Documentation

Definition at line 174 of file Favorite.py.