def register_actions(actions, parent_id=None):
 _populate_defaults()
 if (parent_id is None):
  parent = None
 else:
  try:
   parent = _all_actions[parent_id]
  except KeyError:
   raise KeyError((u'%s does not correspond to a registered review request action' % parent_id))
 for action in reversed(actions):
  action.register(parent)
 if parent:
  parent.reset_max_depth()

def register_actions ( actions , parent_id = None ) : _populate_defaults ( ) if ( parent_id is None ) : parent = None else : try : parent = _all_actions [ parent_id ] except KeyError : raise KeyError ( ( u'%s does not correspond to a registered review request action' % parent_id ) ) for action in reversed ( actions ) : action . register ( parent ) if parent : parent . reset_max_depth ( )
register the given actions as children of the corresponding parent .