Associate an identifier function with a specific table type.
Parameters : | table_format : str
identifier : function
force : bool
|
---|
Examples
To set the identifier based on extensions, for formats that take a filename as a first argument, you can do for example:
>>> register_identifier('ipac', lambda args, kwargs: isinstance(args[0], basestring) and args[0].endswith('.tbl'))