Back to index

plone3  3.1.7
Public Member Functions
GenericSetup.browser.utils.AddWithPresettingsViewBase Class Reference

Copyright (c) 2005 Zope Corporation and Contributors. More...

List of all members.

Public Member Functions

def title
def __call__

Detailed Description

Copyright (c) 2005 Zope Corporation and Contributors.

All Rights Reserved.

This software is subject to the provisions of the Zope Public License, Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.

Base class for add views with selectable presettings.

Definition at line 18 of file utils.py.


Member Function Documentation

def GenericSetup.browser.utils.AddWithPresettingsViewBase.__call__ (   self,
  add_input_name = '',
  settings_id = '',
  submit_add = '' 
)

Definition at line 26 of file utils.py.

00026 
00027     def __call__(self, add_input_name='', settings_id='', submit_add=''):
00028         if submit_add:
00029             obj = self.klass('temp')
00030             if settings_id:
00031                 ids = settings_id.split('/')
00032                 profile_id = ids[0]
00033                 obj_path = ids[1:]
00034                 if not add_input_name:
00035                     self.request.set('add_input_name', obj_path[-1])
00036                 self._initSettings(obj, profile_id, obj_path)
00037             self.context.add(obj)
00038             self.request.response.redirect(self.context.nextURL())
00039             return ''
00040         return self.index()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 23 of file utils.py.

00023 
00024     def title(self):
00025         return u'Add %s' % self.klass.meta_type

Here is the caller graph for this function:


The documentation for this class was generated from the following file: