Code Repositories xandikos / 87f0025
Fix style. Jelmer Vernooń≥ 2 years ago
4 changed file(s) with 4 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
826826 for propstat_el in webdav.propstat_as_xml(propstat):
827827 ret.append(propstat_el)
828828 return webdav._send_xml_response(
829 start_response, '201 Created', ret, DEFAULT_ENCODING)
829 start_response, '201 Created', ret, webdav.DEFAULT_ENCODING)
830830 else:
831831 start_response('201 Created', [])
832832 return []
1919 from wsgiref.util import setup_testing_defaults
2020
2121 from xandikos import caldav
22 from xandikos.webdav import Backend, Property, WebDAVApp, ET
22 from xandikos.webdav import Property, WebDAVApp, ET
2323
2424 from xandikos.tests import test_webdav
2525
6969 code, headers, contents = self.mkcalendar(app, '/resource/bla')
7070 self.assertEqual('201 Created', code)
7171 self.assertEqual(b'', contents)
72
73
779779 ])
780780 self.register_methods([
781781 caldav.MkcalendarMethod(),
782 ])
782 ])
783783
784784
785785 class WellknownRedirector(object):
16291629 OptionsMethod(),
16301630 GetMethod(),
16311631 HeadMethod(),
1632 ])
1632 ])
16331633
16341634 def _get_resource_from_environ(self, environ):
16351635 path = path_from_environ(environ, 'PATH_INFO')