Back to index

plone3  3.1.7
Classes | Functions | Variables
kupu.zope2 Namespace Reference

Classes

class  KupuEditor
class  KupuEditorSurrogate

Functions

def initialize
def createKupuEditor
def manage_addKupuEditor

Variables

tuple manage_addKupuEditorForm = PageTemplateFile('addKupuEditor.pt', globals())

Function Documentation

def kupu.zope2.createKupuEditor (   parent,
  filepath,
  id = None 
)
Adds either a DirectoryView or a derivative object.

Definition at line 72 of file __init__.py.

00072 
00073 def createKupuEditor(parent, filepath, id=None):
00074     """Adds either a DirectoryView or a derivative object.
00075     """
00076     info = _dirreg.getDirectoryInfo(filepath)
00077     if info is None:
00078         raise ValueError('Not a registered directory: %s' % filepath)
00079     if not id:
00080         id = path.split(filepath)[-1]
00081     else:
00082         id = str(id)
00083     ob = KupuEditor(id, filepath)
00084     parent._setObject(id, ob)

Here is the call graph for this function:

Here is the caller graph for this function:

def kupu.zope2.initialize (   context)

Definition at line 30 of file __init__.py.

00030 
00031 def initialize(context):
00032     context.registerClass(
00033         KupuEditorSurrogate,
00034         constructors=(('manage_addKupuEditorForm', manage_addKupuEditorForm),
00035                       manage_addKupuEditor
00036                       ),
00037         icon='kupu_icon.gif'
00038     )
00039 
#_dirreg = DirectoryRegistry()
def kupu.zope2.manage_addKupuEditor (   self,
  filepath = "Products/kupu/common",
  id = None,
  REQUEST = None 
)
Adds either an kupu editor object

Definition at line 86 of file __init__.py.

00086 
00087                          id=None, REQUEST=None):
00088     """Adds either an kupu editor object
00089     """
00090     createKupuEditor(self, filepath, id)
00091     if REQUEST is not None:
00092         return self.manage_main(self, REQUEST)

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

tuple kupu.zope2.manage_addKupuEditorForm = PageTemplateFile('addKupuEditor.pt', globals())

Definition at line 70 of file __init__.py.