def setdefault(self, key, default):
        if key not in self:
            self.keyOrder.append(key)
        return super(SortedDict, self).setdefault(key, default)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/utils/datastructures.py/SortedDict.setdefault/original