(self, read_only)
Return the default user role for this database.
Return the default user role for this database.
Return the default user role for this database .
def _default_role(self, read_only):
        """Return the default user role for this database."""
        if self.name == "admin":
            if read_only:
                return "readAnyDatabase"
            else:
                return "root"
        else:
            if read_only:
                return "read"
            else:
                return "dbOwner"
def _default_role ( self , read_only ) : if self . name == "admin" : if read_only : return "readAnyDatabase" else : return "root" else : if read_only : return "read" else : return "dbOwner"