Logo Search packages:      
Sourcecode: zope-cmfplone version File versions

def zope-cmfplone-2.0.4::NavigationTool::NavigationTool::getNext (   self,
  context,
  script,
  status,
  trace = [],
  kwargs 
)

Perform the next action specified by in
portal_properties.navigation_properties.  Get the object that
will perform the next action, then call the object to perform
the next action.

context - the current context

script - the script/template currently being called

status - 'success' or 'failure' strings used in calculating destination

kwargs - additional keyword arguments are passed to subsequent
pages either in the REQUEST or as GET parameters if a
redirection needs to be done

trace - navigation trace for internal use

Definition at line 39 of file NavigationTool.py.

00039                                                                   :

        """ Perform the next action specified by in
        portal_properties.navigation_properties.  Get the object that
        will perform the next action, then call the object to perform
        the next action.

        context - the current context

        script - the script/template currently being called

        status - 'success' or 'failure' strings used in calculating destination

        kwargs - additional keyword arguments are passed to subsequent
        pages either in the REQUEST or as GET parameters if a
        redirection needs to be done

        trace - navigation trace for internal use
        """
        try:
            trace.append(('Getting next object for %s.%s.%s'
                          ) % (context, script, status))
            (obj, kwargs) = self.getNextObject(context, script,
                                               status, trace, **kwargs)
            return apply(obj, (), {'REQUEST':context.REQUEST})
        except ConflictError:
            raise
        except:
            self.logTrace(trace)
            raise


    security.declarePublic('getNextObject')
    def getNextObject(self, context, script, status, trace=[], **kwargs):


Generated by  Doxygen 1.6.0   Back to index