Esempio n. 1
0
 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]))
Esempio n. 2
0
 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]))