def get_parent_context(liveaction_db):
 context = getattr(liveaction_db, 'context', None)
 if (not context):
  return None
 return context.get('parent', None)

def get_parent_context ( liveaction_db ) : context = getattr ( liveaction_db , 'context' , None ) if ( not context ) : return None return context . get ( 'parent' , None )
returns context of the parent execution .