ProcessTable¶
- class igwn_ligolw.lsctables.ProcessTable(attrs=None)¶
Bases:
TableAttributes Summary
Methods Summary
get_ids_by_program(program)Return a set containing the process IDs from rows whose program string equals the given program.
Utility to help retrieve a sensible value for the current username.
Attributes Documentation
- constraints = 'PRIMARY KEY (process_id)'¶
- next_id = 0¶
- tableName = 'process'¶
- validcolumns = {'comment': 'lstring', 'cvs_entry_time': 'int_4s', 'cvs_repository': 'lstring', 'domain': 'lstring', 'end_time': 'int_4s', 'ifos': 'lstring', 'is_online': 'int_4s', 'jobid': 'int_4s', 'node': 'lstring', 'process_id': 'int_8s', 'program': 'lstring', 'start_time': 'int_4s', 'unix_procid': 'int_4s', 'username': 'lstring', 'version': 'lstring'}¶
Methods Documentation
- get_ids_by_program(program)¶
Return a set containing the process IDs from rows whose program string equals the given program.
- static get_username()¶
Utility to help retrieve a sensible value for the current username. First the environment variable LOGNAME is tried, if that is not set the environment variable USERNAME is tried, if that is not set the password database is consulted (only on Unix systems, if the import of the pwd module succeeds), finally if that fails KeyError is raised.