Comment 1 for bug 742649

Revision history for this message
Forest Bond (forest-bond) wrote :

Hi Raphaël,

pytagsfs already has a base class similar to what you describe. It's called "MetaStore" and it's defined in metastore/__init__.py.

You can implement support for storing and retrieving source filesystem extended attributes by sub-classing MetaStore and implementing the "get" and "set" methods. I would be happy to review such a contribution for inclusion in pytagsfs.

You can tell pytagsfs to use your MetaStore implementation with command-line option "-o metastores=pytagsfs.metastore.foo.FooMetaStore" (i.e. use a full Python dotted path specifying where to load the class from).

Hope this helps.

Thanks,
Forest