Пример #1
0
 def get(self, path):
     # Type checks: web.py interfaces convert argument values to
     # unicode strings (by default, but see also decode_argument).
     # In httpserver.py (i.e. self.request.arguments), they're left
     # as bytes.  Keys are always native strings.
     for key in self.request.arguments:
         assert type(key) == str, repr(key)
         for value in self.request.arguments[key]:
             assert type(value) == bytes_type, repr(value)
         for value in self.get_arguments(key):
             assert type(value) == unicode, repr(value)
     assert type(path) == unicode, repr(path)
     self.write(dict(path=path,
                     args=recursive_unicode(self.request.arguments)))
Пример #2
0
 def get(self, path):
     # Type checks: web.py interfaces convert argument values to
     # unicode strings (by default, but see also decode_argument).
     # In httpserver.py (i.e. self.request.arguments), they're left
     # as bytes.  Keys are always native strings.
     for key in self.request.arguments:
         assert type(key) == str, repr(key)
         for value in self.request.arguments[key]:
             assert type(value) == bytes_type, repr(value)
         for value in self.get_arguments(key):
             assert type(value) == unicode, repr(value)
     assert type(path) == unicode, repr(path)
     self.write(
         dict(path=path, args=recursive_unicode(self.request.arguments)))
Пример #3
0
 def get(self):
     self.write(recursive_unicode(self.request.arguments))
Пример #4
0
 def get(self):
     self.write(recursive_unicode(self.request.arguments))