def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def archlib(self):
        """Relative location of architecture-specific libraries"""
        return join_path('platforms', self.foam_arch, 'lib')