Back to index

plone3  3.1.7
Classes | Functions
CMFPlone.PloneFolder Namespace Reference

Classes

class  ReplaceableWrapper
class  OrderedContainer
class  BasePloneFolder
class  PloneFolder

Functions

def safe_cmp
def addPloneFolder

Function Documentation

def CMFPlone.PloneFolder.addPloneFolder (   self,
  id,
  title = '',
  description = '',
  REQUEST = None 
)
Adds a Plone Folder.

Definition at line 372 of file PloneFolder.py.

00372 
00373 def addPloneFolder(self, id, title='', description='', REQUEST=None):
00374     """Adds a Plone Folder."""
00375     sf = PloneFolder(id, title=title)
00376     sf.description=description
00377     self._setObject(id, sf)
00378     if REQUEST is not None:
00379         REQUEST['RESPONSE'].redirect(sf.absolute_url() + '/manage_main')
def CMFPlone.PloneFolder.safe_cmp (   x,
  y 
)

Definition at line 367 of file PloneFolder.py.

00367 
00368 def safe_cmp(x, y):
00369     if callable(x): x=x()
00370     if callable(y): y=y()
00371     return cmp(x,y)

Here is the caller graph for this function: