Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFDiffTool.ChangeSet Namespace Reference

Classes

class  BaseChangeSet
class  ChangeSet

Functions

def manage_addChangeSet

Variables

tuple logger = logging.getLogger('CMFDiffTool')
tuple factory_type_information

Function Documentation

def CMFDiffTool.ChangeSet.manage_addChangeSet (   self,
  id,
  title = '',
  REQUEST = None 
)
Creates a new ChangeSet object 

Definition at line 29 of file ChangeSet.py.

00029 
00030 def manage_addChangeSet(self, id, title='', REQUEST=None):
00031     """Creates a new ChangeSet object """
00032     id=str(id)
00033     if not id:
00034         raise "Bad Request", "Please specify an ID."
00035 
00036     self=self.this()
00037     cs = ChangeSet(id, title)
00038     self._setObject(id, cs)
00039 
00040     if REQUEST is not None:
00041         REQUEST['RESPONSE'].redirect(self.absolute_url()+'/manage_main')
00042 

Here is the caller graph for this function:


Variable Documentation

Initial value:
00001 (
00002     {'id': 'ChangeSet',
00003      'content_icon': 'changeset.png',
00004      'meta_type': 'Change Set',
00005      'description': ('A collection of changes between two objects'),
00006      'product': 'CMFDiffTool',
00007      'global_allow':0,
00008      'factory': 'manage_addChangeSet',
00009      'filter_content_types' : 0,
00010      'immediate_view': 'changeset_edit_form',
00011      'actions': ({'id': 'view',
00012                   'name': 'View Changes',
00013                   'action': 'changeset_view',
00014                   'permissions': (View,),
00015                   'visible':1},
00016                  {'id': 'edit',
00017                   'name': 'Edit Change set',
00018                   'action': 'changeset_edit_form',
00019                   'permissions': (ModifyPortalContent,),
00020                   'visible':1},
00021                  )
00022      },
00023     )

Definition at line 43 of file ChangeSet.py.

tuple CMFDiffTool.ChangeSet.logger = logging.getLogger('CMFDiffTool')

Definition at line 27 of file ChangeSet.py.