def _decompose_liveaction(liveaction_db):
 decomposed = {'liveaction': {}}
 liveaction_api = vars(LiveActionAPI.from_model(liveaction_db))
 for k in liveaction_api.keys():
  if (k in LIVEACTION_ATTRIBUTES):
   decomposed['liveaction'][k] = liveaction_api[k]
  else:
   decomposed[k] = getattr(liveaction_db, k)
 return decomposed

def _decompose_liveaction ( liveaction_db ) : decomposed = { 'liveaction' : { } } liveaction_api = vars ( LiveActionAPI . from_model ( liveaction_db ) ) for k in liveaction_api . keys ( ) : if ( k in LIVEACTION_ATTRIBUTES ) : decomposed [ 'liveaction' ] [ k ] = liveaction_api [ k ] else : decomposed [ k ] = getattr ( liveaction_db , k ) return decomposed
splits the liveaction into an actionexecution compatible dict .