Gets the ``Id`` of the resource who took or is taking this assessment.

        return: (osid.id.Id) - the resource ``Id``
        *compliance: mandatory -- This method must be implemented.*
198500
def get_taker_id(self):
        
        if self._my_map['takerId']:
            return Id(self._my_map['takerId'])
        else:
            return Id(self._my_map['takingAgentId'])
1364004
def get(self, id):
        
        with rconnect() as conn:
            if id is None:
                raise ValueError

            if isinstance(id, uuid.UUID):
                id = str(id)

            if type(id) != str and type(id) != unicode:
                raise ValueError

            try:
                query = self._base().get(id)
                log.debug(query)
                rv = query.run(conn)
            except ReqlOpFailedError as e:
                log.warn(e)
                raise
            except Exception as e:
                log.warn(e)
                raise
            if rv is not None:
                return self._model(rv)

            return None
158281
def get_bank(self):
        
        if self._lookup_session is None:
            mgr = get_provider_manager('ASSESSMENT', runtime=self._runtime, proxy=self._proxy)
            self._lookup_session = mgr.get_bank_lookup_session(proxy=getattr(self, "_proxy", None))
        return self._lookup_session.get_bank(Id(self._my_map['id']))
993926
def get_level(self):
        
        # Implemented from template for osid.resource.Resource.get_avatar_template
        if not bool(self._my_map['levelId']):
            raise errors.IllegalState('this Assessment has no level')
        mgr = self._get_provider_manager('GRADING')
        if not mgr.supports_grade_lookup():
            raise errors.OperationFailed('Grading does not support Grade lookup')
        lookup_session = mgr.get_grade_lookup_session(proxy=getattr(self, "_proxy", None))
        lookup_session.use_federated_gradebook_view()
        osid_object = lookup_session.get_grade(self.get_level_id())
        return osid_object
841837
def _get_one(self, id):
        
        try:
            return self._to_dict(models.User.objects.get(pk=id))
        except models.User.DoesNotExist:
            raise errors.NotFound()
520883
def id(self):
        
        if not hasattr(self, '_id'):
            self._id = str(threading.current_thread().ident + id(self))[-6:]
        return self._id
236581
def get_score_system_id(self):
        
        # Implemented from template for osid.resource.Resource.get_avatar_template
        if not bool(self._my_map['scoreSystemId']):
            raise errors.IllegalState('this AssessmentTaken has no score_system')
        mgr = self._get_provider_manager('ID')
        if not mgr.supports_id_lookup():
            raise errors.OperationFailed('Id does not support Id lookup')
        lookup_session = mgr.get_id_lookup_session(proxy=getattr(self, "_proxy", None))
        lookup_session.use_federated_no_catalog_view()
        osid_object = lookup_session.get_id(self.get_score_system_id())
        return osid_object
1004817
def get_grade_system_id(self):
        
        # Implemented from template for osid.learning.Activity.get_objective_id
        if not bool(self._my_map['gradeSystemId']):
            raise errors.IllegalState('grade_system empty')
        return Id(self._my_map['gradeSystemId'])
472600
def get_id(self):
        
        return hash(str(self.title) + str(self.best_score()) + str(self.hit_def))
466365
def getIndividual(self, id_):
        
        if id_ not in self._individualIdMap:
            raise exceptions.IndividualNotFoundException(id_)
        return self._individualIdMap[id_]
1240431
def _get_assessment_taken(self, assessment_taken_id):
        """"""
        if assessment_taken_id not in self._assessments_taken:
            mgr = self._get_provider_manager('ASSESSMENT')
            lookup_session = mgr.get_assessment_taken_lookup_session(proxy=self._proxy)  # Should this be _for_bank?
            lookup_session.use_federated_bank_view()
            self._assessments_taken[assessment_taken_id] = (
                lookup_session.get_assessment_taken(assessment_taken_id))
        return self._assessments_taken[assessment_taken_id]
70908
def get_assessment_metadata(self):
        
        # Implemented from template for osid.resource.ResourceForm.get_group_metadata_template
        metadata = dict(self._mdata['assessment'])
        metadata.update({'existing_id_values': self._my_map['assessmentId']})
        return Metadata(**metadata)
43367
def get_assessments_metadata(self):
        
        # Implemented from template for osid.learning.ActivityForm.get_assets_metadata_template
        metadata = dict(self._mdata['assessments'])
        metadata.update({'existing_assessments_values': self._my_map['assessmentIds']})
        return Metadata(**metadata)
755511
def get_qualifier_id(self):
        
        # Implemented from template for osid.learning.Activity.get_objective_id
        if not bool(self._my_map['qualifierId']):
            raise errors.IllegalState('qualifier empty')
        return Id(self._my_map['qualifierId'])
666675
def _get_id(self):
        """"""
        id = self._options.get('id')
        if id:
            return id

        id = uuid.uuid4().hex
        self.update_options(id=id)
        return id
725456
def id(self):
        
        h = hashlib.new('sha512')
        for value in (self.machine.name, self.machine.os, self.user, self.application.name,
                      self.application.path, self.event.report_type, self.event.type,
                      self.event.time.isoformat()):
            h.update(str(value).encode('utf-8'))
        for parameter in sorted(self.parameters, key=lambda k: getattr(k, 'id')):
            h.update(parameter.value.encode('utf-8'))
        return h.hexdigest()
811570
def get(self, id=None):
        
        if id is None:
            res = self._get('department/list')
        else:
            res = self._get('department/list', params={'id': id})
        return res['department']