Slide 32
Slide 32 text
#PloneConf
class IFakeBrainView(Interface):
"""Utility methods for updating the Wiki fake brains.
"""
def getFakeBrainId(url):
"""Generate an id based on the provided URL. The id is always the same
for an item.
"""
def updateFakeBrain(type, title, description, date, url):
"""Parameters:
* Content type
* Title
* Description
* Date
* URL to the item
Grab the id of the item using getFakeBrainId. If the item already
exists, we update it, otherwise we create it.
"""
def deleteFakeBrain(id):
"""Given an item id, delete it from the catalog."""
def processUpdate():
"""Accept a POST and dispatch appropriately."""