def getcfgitem(self, cfgname):
        if cfgname not in self.cfg:
            return None
        else:
            return self.cfg[cfgname]
Returns a lookup value prepared to be used in queryset filtering.
dataset/ETHPy150Open coreemu/core/daemon/core/session.py/Session.getcfgitem--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/admin/util.py/prepare_lookup_value