def verify(self):
    if (self.type not in LOT_SETTINGS):
        return False
    verify_setting = LOT_SETTINGS[self.type]
    duration = verify_setting.get('duration', None)
    verify_func = verify_setting.get('verify-func', (lambda x: True))
    if (not verify_func(self)):
        return False
    if (duration is None):
        return True
    return ((now() - self.created).total_seconds() < duration)
def verify(self):
    if (self.type not in LOT_SETTINGS):
        return False
    verify_setting = LOT_SETTINGS[self.type]
    duration = verify_setting.get('duration', None)
    verify_func = verify_setting.get('verify-func', (lambda x: True))
    if (not verify_func(self)):
        return False
    if (duration is None):
        return True
    return ((now() - self.created).total_seconds() < duration)