def get_monitor_id(trans, monitor_email):
 monitor_user_id = None
 monitor_row = trans.sa_session.query(trans.model.User.table.c.id).filter((trans.model.User.table.c.email == monitor_email)).first()
 if (monitor_row is not None):
  monitor_user_id = monitor_row[0]
 return monitor_user_id

def get_monitor_id ( trans , monitor_email ) : monitor_user_id = None monitor_row = trans . sa_session . query ( trans . model . User . table . c . id ) . filter ( ( trans . model . User . table . c . email == monitor_email ) ) . first ( ) if ( monitor_row is not None ) : monitor_user_id = monitor_row [ 0 ] return monitor_user_id
a convenience method to obtain the monitor job id .