MCPcopy Create free account
hub / github.com/datapane/datapane / forms

Method forms

python-client/src/datapane/_vendor/bottle.py:1236–1246  ·  view source on GitHub ↗

Form values parsed from an `url-encoded` or `multipart/form-data` encoded POST or PUT request body. The result is returned as a :class:`FormsDict`. All keys and values are strings. File uploads are stored separately in :attr:`files`.

(self)

Source from the content-addressed store, hash-verified

1234
1235 @DictProperty('environ', 'bottle.request.forms', read_only=True)
1236 def forms(self):
1237 """ Form values parsed from an `url-encoded` or `multipart/form-data`
1238 encoded POST or PUT request body. The result is returned as a
1239 :class:`FormsDict`. All keys and values are strings. File uploads
1240 are stored separately in :attr:`files`. """
1241 forms = FormsDict()
1242 forms.recode_unicode = self.POST.recode_unicode
1243 for name, item in self.POST.allitems():
1244 if not isinstance(item, FileUpload):
1245 forms[name] = item
1246 return forms
1247
1248 @DictProperty('environ', 'bottle.request.params', read_only=True)
1249 def params(self):

Callers

nothing calls this directly

Calls 2

FormsDictClass · 0.85
allitemsMethod · 0.80

Tested by

no test coverage detected