devtools/testlib.py
changeset 10468 3f27669634d2
parent 10363 e1ebf3d12098
child 10562 0c492a2720f1
equal deleted inserted replaced
10467:73ea636a5562 10468:3f27669634d2
   722             for field, value in field_dict.items():
   722             for field, value in field_dict.items():
   723                 _add_entity_field(entity, field, value)
   723                 _add_entity_field(entity, field, value)
   724             if entity_fields:
   724             if entity_fields:
   725                 form[eid_param('_cw_entity_fields', entity.eid)] = ','.join(entity_fields)
   725                 form[eid_param('_cw_entity_fields', entity.eid)] = ','.join(entity_fields)
   726         if fields:
   726         if fields:
   727             form['_cw_fields'] = ','.join(fields)
   727             form['_cw_fields'] = ','.join(sorted(fields))
   728         return form
   728         return form
   729 
   729 
   730     @deprecated('[3.19] use .admin_request_from_url instead')
   730     @deprecated('[3.19] use .admin_request_from_url instead')
   731     def req_from_url(self, url):
   731     def req_from_url(self, url):
   732         """parses `url` and builds the corresponding CW-web request
   732         """parses `url` and builds the corresponding CW-web request