ftrack_connect_pipeline.log¶
- class ftrack_connect_pipeline.log.ResultEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)[source]¶
Bases:
JSONEncoder
JSON encoder for handling non serializable objects in plugin result
- default(obj)[source]¶
Implement this method in a subclass such that it returns a serializable object for
o
, or calls the base implementation (to raise aTypeError
).For example, to support arbitrary iterators, you could implement default like this:
def default(self, o): try: iterable = iter(o) except TypeError: pass else: return list(iterable) # Let the base class default method raise the TypeError return JSONEncoder.default(self, o)
- class ftrack_connect_pipeline.log.LogDB(host_id, db_name=None, table_name=None)[source]¶
Bases:
object
Log database class
- database_expire_grace_s = 604800¶
- __init__(host_id, db_name=None, table_name=None)[source]¶
Initializes a new persistent local log database having database name db_name on disk and table_name table name.
- db_name = 'pipeline-{}.db'¶
- table_name = 'LOGMGR'¶
- property connection¶