Back to index

plone3  3.1.7
Classes | Functions
kss.demo.helpers Namespace Reference

Classes

class  NoVerifyPasteFolder
class  FiveTraversableFolder

Functions

def add_and_edit
def manage_addNoVerifyPasteFolder
def manage_addFiveTraversableFolder

Function Documentation

def kss.demo.helpers.add_and_edit (   self,
  id,
  REQUEST 
)
Helper function to point to the object's management screen if
'Add and Edit' button is pressed.
id -- id of the object we just added

Definition at line 20 of file helpers.py.

00020 
00021 def add_and_edit(self, id, REQUEST):
00022     """Helper function to point to the object's management screen if
00023     'Add and Edit' button is pressed.
00024     id -- id of the object we just added
00025     """
00026     if REQUEST is None:
00027         return
00028     try:
00029         u = self.DestinationURL()
00030     except:
00031         u = REQUEST['URL1']
00032     if REQUEST.has_key('submit_edit'):
00033         u = "%s/%s" % (u, urllib.quote(id))
00034     REQUEST.RESPONSE.redirect(u+'/manage_main')
00035 

Here is the caller graph for this function:

def kss.demo.helpers.manage_addFiveTraversableFolder (   container,
  id,
  title = '' 
)

Definition at line 56 of file helpers.py.

00056 
00057 def manage_addFiveTraversableFolder(container, id, title=''):
00058     container._setObject(id, FiveTraversableFolder())
00059     folder = container[id]
00060     folder.id = id
00061     folder.title = title
00062 
def kss.demo.helpers.manage_addNoVerifyPasteFolder (   container,
  id,
  title = '' 
)

Definition at line 45 of file helpers.py.

00045 
00046 def manage_addNoVerifyPasteFolder(container, id, title=''):
00047     container._setObject(id, NoVerifyPasteFolder())
00048     folder = container[id]
00049     folder.id = id
00050     folder.title = title