def _base_map(self, no_owner=False, no_privs=False):
        dct = self.__dict__.copy()
        for key in self.keylist:
            del dct[key]
        if self.description is None:
            del dct['description']
        if no_owner or self.owner is None:
            del dct['owner']
        if len(self.privileges) == 0 or no_privs:
            del dct['privileges']
        else:
            dct['privileges'] = self.map_privs()
        return dct
Return a base map, i.e., copy of attributes excluding keys
dataset/ETHPy150Open perseas/Pyrseas/pyrseas/dbobject/__init__.py/DbObject._base_map