Back to index

plone3  3.1.7
Classes | Functions
Marshall.marshaller Namespace Reference

Classes

class  ControlledMarshaller

Functions

def getContext

Function Documentation

def Marshall.marshaller.getContext (   obj,
  REQUEST = None 
)

Definition at line 30 of file marshaller.py.

00030 
00031 def getContext(obj, REQUEST=None):
00032     context = getattr(obj, 'aq_parent', None)
00033     if context is not None or REQUEST is None:
00034         return obj
00035     return REQUEST['PARENTS'][0]

Here is the caller graph for this function: