def register_writer(data_format, data_class, function, force=False):
 if ((not ((data_format, data_class) in _writers)) or force):
  _writers[(data_format, data_class)] = function
 else:
  raise IORegistryError(u"Writer for format '{0}' and class '{1}' is already defined".format(data_format, data_class.__name__))
 if (data_class not in _delayed_docs_classes):
  _update__doc__(data_class, u'write')

def register_writer ( data_format , data_class , function , force = False ) : if ( ( not ( ( data_format , data_class ) in _writers ) ) or force ) : _writers [ ( data_format , data_class ) ] = function else : raise IORegistryError ( u"Writer for format '{0}' and class '{1}' is already defined" . format ( data_format , data_class . __name__ ) ) if ( data_class not in _delayed_docs_classes ) : _update__doc__ ( data_class , u'write' )
register a table writer function .