Utils Python Module

Group of utility functions.

Used in various parts of the archive interface.

pacifica.archiveinterface.archive_utils.bytes_type(unicode_obj)[source]

Convert the unicode object into bytes.

pacifica.archiveinterface.archive_utils.file_status(status, response)[source]

Response for when file is on the hpss system.

pacifica.archiveinterface.archive_utils.get_http_modified_time(env)[source]

Get the modified time from the request in unix timestamp.

Returns current time if no time was passed.

pacifica.archiveinterface.archive_utils.un_abs_path(path_name)[source]

Remove absolute path piece.