Example #1
0
 def process_formdata(self, valuelist):
     if is_preprocessed_formdata(valuelist):
         self.data = valuelist[0]
     elif valuelist:
         self.data = json.loads(valuelist[0])
         if self.uuid_field:
             for item in self.data:
                 if self.uuid_field not in item:
                     item[self.uuid_field] = unicode(uuid.uuid4())
Example #2
0
 def process_formdata(self, valuelist):
     if is_preprocessed_formdata(valuelist):
         self.data = valuelist[0]
     if valuelist:
         self.data = json.loads(valuelist[0])
         # Preserve dict data, because the self.data can be modified by a subclass
         self.serialized_data = json.loads(valuelist[0])
         if self.uuid_field and not self.uuid_field_opaque:
             for item in self.data:
                 if self.uuid_field not in item:
                     item[self.uuid_field] = unicode(uuid.uuid4())
Example #3
0
 def process_formdata(self, valuelist):
     if is_preprocessed_formdata(valuelist):
         self.data = valuelist[0]
     if valuelist:
         self.data = json.loads(valuelist[0])
         # Preserve dict data, because the self.data can be modified by a subclass
         self.serialized_data = json.loads(valuelist[0])
         if self.uuid_field and not self.uuid_field_opaque:
             for item in self.data:
                 if self.uuid_field not in item:
                     item[self.uuid_field] = unicode(uuid.uuid4())
Example #4
0
 def process_formdata(self, valuelist):
     if is_preprocessed_formdata(valuelist):
         self.data = valuelist[0]
     elif valuelist:
         self.data = json.loads(valuelist[0])
Example #5
0
 def process_formdata(self, valuelist):
     if is_preprocessed_formdata(valuelist):
         self.data = valuelist[0]
     elif valuelist:
         self.data = json.loads(valuelist[0])