def valueIsInRequest(self, obj, request, name): languages = self.getAttribute(obj, 'languages') if len(languages) == 1: return Field.valueIsInRequest(self, obj, request, name) # Is is sufficient to check that at least one of the language-specific # values is in the request. return request.has_key('%s_%s' % (name, languages[0]))