def get_raw(self, name):
        """Obtain the raw text for an object.

        :param name: sha for the object.
        :return: tuple with numeric type and object contents.
        """
        try:
            obj = Objs.objects.only('type', 'data')\
                              .get(repo=self._repo, oid=self._to_hexsha(name))
        except Objs.DoesNotExist:
            # last resort fallback, this exception will cause a retry
            raise ObjectMissing(name)
        else:
            return obj.type, obj.data
Obtain the raw text for an object.

        :param name: sha for the object.
        :return: tuple with numeric type and object contents.
        
portia_server/db_repo/repo.py