def to_python(self, value):
        etalon = value[list(value)[0]]
        for field in self.field.fields:
            self.assert_(value[field.name] == etalon,
                         self.error_mismatch)
        if self.required:
            self.assert_(etalon not in (None, ''), self.error_required)
        elif etalon in (None, ''):
            return None
        return etalon
dataset/ETHPy150Open SmartTeleMax/iktomi/iktomi/forms/shortcuts.py/PasswordConv.to_python/original