<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[14179] CalendarServer/trunk/twistedcaldav/timezonestdservice.py</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.calendarserver.org//changeset/14179">14179</a></dd>
<dt>Author</dt> <dd>cdaboo@apple.com</dd>
<dt>Date</dt> <dd>2014-11-16 14:37:12 -0800 (Sun, 16 Nov 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Update to latest tzdist spec.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#CalendarServertrunktwistedcaldavtimezonestdservicepy">CalendarServer/trunk/twistedcaldav/timezonestdservice.py</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="CalendarServertrunktwistedcaldavtimezonestdservicepy"></a>
<div class="modfile"><h4>Modified: CalendarServer/trunk/twistedcaldav/timezonestdservice.py (14178 => 14179)</h4>
<pre class="diff"><span>
<span class="info">--- CalendarServer/trunk/twistedcaldav/timezonestdservice.py        2014-11-16 22:35:52 UTC (rev 14178)
+++ CalendarServer/trunk/twistedcaldav/timezonestdservice.py        2014-11-16 22:37:12 UTC (rev 14179)
</span><span class="lines">@@ -47,6 +47,7 @@
</span><span class="cx"> from twistedcaldav.resource import ReadOnlyNoCopyResourceMixIn
</span><span class="cx"> from twistedcaldav.timezones import TimezoneException, TimezoneCache, readVTZ, \
</span><span class="cx"> addVTZ
</span><ins>+from twistedcaldav.util import bestAcceptType
</ins><span class="cx"> from twistedcaldav.xmlutil import addSubElement
</span><span class="cx">
</span><span class="cx"> from pycalendar.icalendar.calendar import Calendar
</span><span class="lines">@@ -57,6 +58,7 @@
</span><span class="cx"> import itertools
</span><span class="cx"> import json
</span><span class="cx"> import os
</span><ins>+import urllib
</ins><span class="cx">
</span><span class="cx"> log = Logger()
</span><span class="cx">
</span><span class="lines">@@ -91,9 +93,9 @@
</span><span class="cx">
</span><span class="cx"> self.formats = []
</span><span class="cx"> self.formats.append("text/calendar")
</span><del>- self.formats.append("text/plain")
</del><span class="cx"> if config.EnableJSONData:
</span><span class="cx"> self.formats.append("application/calendar+json")
</span><ins>+ self.formats.append("text/plain")
</ins><span class="cx">
</span><span class="cx">
</span><span class="cx"> def _initPrimaryService(self):
</span><span class="lines">@@ -196,68 +198,103 @@
</span><span class="cx">
</span><span class="cx"> http_PROPFIND = http_PROPFIND
</span><span class="cx">
</span><ins>+ def problemReport(self, code, description, status):
+ raise HTTPError(JSONResponse(
+ status,
+ {
+ "type": "https://datatracker.ietf.org/doc/draft-ietf-tzdist-service/",
+ "error-code": code,
+ "title": description,
+ "status": status,
+ },
+ pretty=config.TimezoneService.PrettyPrintJSON,
+ ))
+
+
</ins><span class="cx"> def http_POST(self, request):
</span><span class="cx"> raise HTTPError(StatusResponse(responsecode.NOT_ALLOWED, "Method not allowed"))
</span><span class="cx">
</span><span class="cx">
</span><ins>+ @inlineCallbacks
</ins><span class="cx"> def http_GET(self, request):
</span><span class="cx"> """
</span><span class="cx"> The timezone service GET method.
</span><span class="cx"> """
</span><span class="cx">
</span><del>- # Check authentication and access controls
- def _gotResult(_):
</del><ins>+ yield self.authorize(request, (davxml.Read(),))
</ins><span class="cx">
</span><del>- if not request.args:
- # Do normal GET behavior
- return self.render(request)
</del><ins>+ urlbits = map(urllib.unquote, request.path.strip("/").split("/")[1:])
+ child = urlbits[0] if len(urlbits) > 0 else ""
</ins><span class="cx">
</span><del>- action = request.args.get("action", ("",))
- if len(action) != 1:
- raise HTTPError(JSONResponse(
- responsecode.BAD_REQUEST,
- {
- "error": "invalid-action",
- "description": "Invalid action query parameter",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
- action = action[0]
</del><ins>+ if not child:
+ if len(request.args) != 0:
+ self.problemReport("invalid-action", "Invalid request-URI query parameters", responsecode.BAD_REQUEST)
</ins><span class="cx">
</span><del>- action = {
- "capabilities" : self.doCapabilities,
- "list" : self.doList,
- "get" : self.doGet,
- "expand" : self.doExpand,
- "find" : self.doFind,
- }.get(action, None)
</del><ins>+ # Do normal GET behavior
+ returnValue(self.render(request))
</ins><span class="cx">
</span><del>- if action is None:
- raise HTTPError(JSONResponse(
- responsecode.BAD_REQUEST,
- {
- "error": "invalid-action",
- "description": "Unknown action query parameter",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
</del><ins>+ childResponder = {
+ "capabilities" : self.childCapabilities,
+ "zones" : self.childZones,
+ "observances" : self.childObservances,
+ }.get(child, None)
</ins><span class="cx">
</span><del>- return action(request)
</del><ins>+ if childResponder is None:
+ self.problemReport("invalid-action", "Invalid action", responsecode.BAD_REQUEST)
</ins><span class="cx">
</span><del>- d = self.authorize(request, (davxml.Read(),))
- d.addCallback(_gotResult)
- return d
</del><ins>+ returnValue(childResponder(request, urlbits))
</ins><span class="cx">
</span><span class="cx">
</span><del>- def doCapabilities(self, request):
</del><ins>+ def childCapabilities(self, request, urlbits):
</ins><span class="cx"> """
</span><del>- Return a list of all timezones known to the server.
</del><ins>+ Request on {/service-prefix}/capabilities.
</ins><span class="cx"> """
</span><ins>+ if len(urlbits) != 1:
+ self.problemReport("invalid-action", "Invalid path segment", responsecode.BAD_REQUEST)
+ return self.actionCapabilities(request)
</ins><span class="cx">
</span><ins>+
+ def childZones(self, request, urlbits):
+ """
+ Request on {/service-prefix}/zones.
+ """
+ if len(urlbits) == 2:
+ return self.actionGet(request, urlbits[1])
+ elif len(urlbits) == 1:
+ pattern = request.args.get("pattern", ())
+ if len(pattern) == 0:
+ return self.actionList(request)
+ else:
+ return self.actionFind(request)
+ else:
+ self.problemReport("invalid-action", "Invalid path segment", responsecode.BAD_REQUEST)
+
+
+ def childObservances(self, request, urlbits):
+ """
+ Request on {/service-prefix}/observances.
+ """
+ if len(urlbits) == 2:
+ return self.actionExpand(request, urlbits[1])
+ elif len(urlbits) == 1:
+ self.problemReport("invalid-action", "Missing {tzid} path segment", responsecode.BAD_REQUEST)
+ else:
+ self.problemReport("invalid-action", "Invalid path segment", responsecode.BAD_REQUEST)
+
+
+ def actionCapabilities(self, request):
+ """
+ Return the capabilities of this server.
+ """
+
+ if len(request.args) != 0:
+ self.problemReport("invalid-action", "Invalid request-URI query parameters", responsecode.BAD_REQUEST)
+
</ins><span class="cx"> result = {
</span><span class="cx"> "version": "1",
</span><span class="cx"> "info" : {
</span><span class="cx"> "primary-source" if self.primary else "secondary_source": self.info_source,
</span><ins>+ "formats": self.formats,
</ins><span class="cx"> "contacts" : [],
</span><span class="cx"> },
</span><span class="cx"> "actions" : [
</span><span class="lines">@@ -274,16 +311,16 @@
</span><span class="cx"> {
</span><span class="cx"> "name": "get",
</span><span class="cx"> "parameters": [
</span><del>- {"name": "format", "required": False, "multi": False, "values": self.formats, },
- {"name": "tzid", "required": True, "multi": False, },
</del><ins>+ {"name": "start", "required": False, "multi": False},
+ {"name": "stop", "required": False, "multi": False, },
</ins><span class="cx"> ],
</span><span class="cx"> },
</span><span class="cx"> {
</span><span class="cx"> "name": "expand",
</span><span class="cx"> "parameters": [
</span><del>- {"name": "tzid", "required": True, "multi": False, },
- {"name": "start", "required": False, "multi": False, },
- {"name": "end", "required": False, "multi": False, },
</del><ins>+ {"name": "start", "required": True, "multi": False, },
+ {"name": "end", "required": True, "multi": False, },
+ {"name": "changedsince", "required": False, "multi": False, },
</ins><span class="cx"> ],
</span><span class="cx"> },
</span><span class="cx"> {
</span><span class="lines">@@ -297,44 +334,26 @@
</span><span class="cx"> return JSONResponse(responsecode.OK, result, pretty=config.TimezoneService.PrettyPrintJSON)
</span><span class="cx">
</span><span class="cx">
</span><del>- def doList(self, request):
</del><ins>+ def actionList(self, request):
</ins><span class="cx"> """
</span><span class="cx"> Return a list of all timezones known to the server.
</span><span class="cx"> """
</span><span class="cx">
</span><ins>+ if set(request.args.keys()) - set(("changedsince",)):
+ self.problemReport("invalid-action", "Invalid request-URI query parameters", responsecode.BAD_REQUEST)
+
</ins><span class="cx"> changedsince = request.args.get("changedsince", ())
</span><span class="cx"> if len(changedsince) > 1:
</span><del>- raise HTTPError(JSONResponse(
- responsecode.BAD_REQUEST,
- {
- "error": "invalid-changedsince",
- "description": "Invalid changedsince query parameter",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
</del><ins>+ self.problemReport("invalid-changedsince", "Too many changedsince request-URI query parameters", responsecode.BAD_REQUEST)
</ins><span class="cx"> if len(changedsince) == 1:
</span><span class="cx"> # Validate a date-time stamp
</span><span class="cx"> changedsince = changedsince[0]
</span><span class="cx"> try:
</span><del>- dt = DateTime.parseText(changedsince)
</del><ins>+ dt = DateTime.parseText(changedsince, fullISO=True)
</ins><span class="cx"> except ValueError:
</span><del>- raise HTTPError(JSONResponse(
- responsecode.BAD_REQUEST,
- {
- "error": "invalid-changedsince",
- "description": "Invalid changedsince query parameter",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
</del><ins>+ self.problemReport("invalid-changedsince", "Invalid changedsince request-URI query parameter value", responsecode.BAD_REQUEST)
</ins><span class="cx"> if not dt.utc():
</span><del>- raise HTTPError(JSONResponse(
- responsecode.BAD_REQUEST,
- {
- "error": "invalid-changedsince",
- "description": "Invalid changedsince query parameter - not UTC",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
</del><ins>+ self.problemReport("invalid-changedsince", "Invalid changedsince request-URI query parameter value - not UTC", responsecode.BAD_REQUEST)
</ins><span class="cx">
</span><span class="cx"> timezones = []
</span><span class="cx"> for tz in self.timezones.listTimezones(changedsince):
</span><span class="lines">@@ -350,124 +369,69 @@
</span><span class="cx"> return JSONResponse(responsecode.OK, result, pretty=config.TimezoneService.PrettyPrintJSON)
</span><span class="cx">
</span><span class="cx">
</span><del>- def doGet(self, request):
</del><ins>+ def actionGet(self, request, tzid):
</ins><span class="cx"> """
</span><span class="cx"> Return the specified timezone data.
</span><span class="cx"> """
</span><span class="cx">
</span><del>- tzids = request.args.get("tzid", ())
- if len(tzids) != 1:
- raise HTTPError(JSONResponse(
- responsecode.BAD_REQUEST,
- {
- "error": "invalid-tzid",
- "description": "Invalid tzid query parameter",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
</del><ins>+ if set(request.args.keys()) - set(("start", "end",)):
+ self.problemReport("invalid-action", "Invalid request-URI query parameters", responsecode.BAD_REQUEST)
</ins><span class="cx">
</span><del>- format = request.args.get("format", ("text/calendar",))
- if len(format) != 1 or format[0] not in self.formats:
- raise HTTPError(JSONResponse(
- responsecode.BAD_REQUEST,
- {
- "error": "invalid-format",
- "description": "Invalid format query parameter",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
- format = format[0]
</del><ins>+ accepted_type = bestAcceptType(request.headers.getHeader("accept"), self.formats)
+ if accepted_type is None:
+ self.problemReport("invalid-format", "Accept header does not match available media types", responsecode.NOT_ACCEPTABLE)
</ins><span class="cx">
</span><del>- calendar = self.timezones.getTimezone(tzids[0])
</del><ins>+ calendar = self.timezones.getTimezone(tzid)
</ins><span class="cx"> if calendar is None:
</span><del>- raise HTTPError(JSONResponse(
- responsecode.NOT_FOUND,
- {
- "error": "tzid-not-found",
- "description": "Tzid could not be found",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
</del><ins>+ self.problemReport("tzid-not-found", "Time zone identifier not found", responsecode.NOT_FOUND)
</ins><span class="cx">
</span><del>- tzdata = calendar.getText(format=format if format != "text/plain" else None)
</del><ins>+ tzdata = calendar.getText(format=accepted_type if accepted_type != "text/plain" else None)
</ins><span class="cx">
</span><span class="cx"> response = Response()
</span><span class="cx"> response.stream = MemoryStream(tzdata)
</span><del>- response.headers.setHeader("content-type", MimeType.fromString("%s; charset=utf-8" % (format,)))
</del><ins>+ response.headers.setHeader("content-type", MimeType.fromString("%s; charset=utf-8" % (accepted_type,)))
</ins><span class="cx"> return response
</span><span class="cx">
</span><span class="cx">
</span><del>- def doExpand(self, request):
</del><ins>+ def actionExpand(self, request, tzid):
</ins><span class="cx"> """
</span><span class="cx"> Expand a timezone within specified start/end dates.
</span><span class="cx"> """
</span><span class="cx">
</span><del>- tzids = request.args.get("tzid", ())
- if len(tzids) != 1:
- raise HTTPError(JSONResponse(
- responsecode.BAD_REQUEST,
- {
- "error": "invalid-tzid",
- "description": "Invalid tzid query parameter",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
</del><ins>+ if set(request.args.keys()) - set(("start", "end", "changedsince",)):
+ self.problemReport("invalid-action", "Invalid request-URI query parameters", responsecode.BAD_REQUEST)
</ins><span class="cx">
</span><del>- try:
- start = request.args.get("start", ())
- if len(start) != 1:
- raise ValueError()
- elif len(start) == 1:
</del><ins>+ start = request.args.get("start", ())
+ if len(start) == 0:
+ self.problemReport("invalid-start", "Missing start request-URI query parameter", responsecode.BAD_REQUEST)
+ if len(start) > 1:
+ self.problemReport("invalid-start", "Too many start request-URI query parameters", responsecode.BAD_REQUEST)
+ elif len(start) == 1:
+ try:
</ins><span class="cx"> if len(start[0]) != 20:
</span><span class="cx"> raise ValueError()
</span><span class="cx"> start = DateTime.parseText(start[0], fullISO=True)
</span><del>- except ValueError:
- raise HTTPError(JSONResponse(
- responsecode.BAD_REQUEST,
- {
- "error": "invalid-start",
- "description": "Invalid start query parameter",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
</del><ins>+ except ValueError:
+ self.problemReport("invalid-start", "Invalid start request-URI query parameter value", responsecode.BAD_REQUEST)
</ins><span class="cx">
</span><del>- try:
- end = request.args.get("end", ())
- if len(end) > 1:
- raise ValueError()
- elif len(end) == 1:
</del><ins>+ end = request.args.get("end", ())
+ if len(end) == 0:
+ self.problemReport("invalid-end", "Missing end request-URI query parameter", responsecode.BAD_REQUEST)
+ if len(end) > 1:
+ self.problemReport("invalid-end", "Too many end request-URI query parameters", responsecode.BAD_REQUEST)
+ elif len(end) == 1:
+ try:
</ins><span class="cx"> if len(end[0]) != 20:
</span><span class="cx"> raise ValueError()
</span><span class="cx"> end = DateTime.parseText(end[0], fullISO=True)
</span><del>- else:
- end = DateTime.getNowUTC()
- end.setDay(1)
- end.setMonth(1)
- start.setHHMMSS(0, 0, 0)
- end.offsetYear(10)
</del><ins>+ except ValueError:
+ self.problemReport("invalid-end", "Invalid end request-URI query parameter value", responsecode.BAD_REQUEST)
</ins><span class="cx"> if end <= start:
</span><del>- raise ValueError()
- except ValueError:
- raise HTTPError(JSONResponse(
- responsecode.BAD_REQUEST,
- {
- "error": "invalid-end",
- "description": "Invalid end query parameter",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
</del><ins>+ self.problemReport("invalid-end", "Invalid end request-URI query parameter value - earlier than start", responsecode.BAD_REQUEST)
</ins><span class="cx">
</span><del>- tzid = tzids[0]
</del><span class="cx"> tzdata = self.timezones.getTimezone(tzid)
</span><span class="cx"> if tzdata is None:
</span><del>- raise HTTPError(JSONResponse(
- responsecode.NOT_FOUND,
- {
- "error": "tzid-not-found",
- "description": "Tzid could not be found",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
</del><ins>+ self.problemReport("tzid-not-found", "Time zone identifier not found", responsecode.NOT_FOUND)
</ins><span class="cx">
</span><span class="cx"> # Now do the expansion (but use a cache to avoid re-calculating TZs)
</span><span class="cx"> observances = self.expandcache.get((tzid, start, end), None)
</span><span class="lines">@@ -491,21 +455,19 @@
</span><span class="cx"> return JSONResponse(responsecode.OK, result, pretty=config.TimezoneService.PrettyPrintJSON)
</span><span class="cx">
</span><span class="cx">
</span><del>- def doFind(self, request):
</del><ins>+ def actionFind(self, request):
</ins><span class="cx"> """
</span><span class="cx"> Return a list of all timezones matching a pattern.
</span><span class="cx"> """
</span><span class="cx">
</span><ins>+ if set(request.args.keys()) - set(("pattern",)):
+ self.problemReport("invalid-action", "Invalid request-URI query parameters", responsecode.BAD_REQUEST)
+
</ins><span class="cx"> pattern = request.args.get("pattern", ())
</span><del>- if len(pattern) != 1:
- raise HTTPError(JSONResponse(
- responsecode.BAD_REQUEST,
- {
- "error": "invalid-pattern",
- "description": "Invalid pattern query parameter",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
</del><ins>+ if len(pattern) == 0:
+ self.problemReport("invalid-pattern", "Missing pattern request-URI query parameter", responsecode.BAD_REQUEST)
+ elif len(pattern) > 1:
+ self.problemReport("invalid-pattern", "Too many pattern request-URI query parameters", responsecode.BAD_REQUEST)
</ins><span class="cx"> pattern = pattern[0]
</span><span class="cx">
</span><span class="cx"> def _comp_is(pattern, s):
</span><span class="lines">@@ -534,14 +496,7 @@
</span><span class="cx"> pattern = _normalize(pattern)
</span><span class="cx">
</span><span class="cx"> if not pattern:
</span><del>- raise HTTPError(JSONResponse(
- responsecode.BAD_REQUEST,
- {
- "error": "invalid-pattern",
- "description": "Invalid pattern query parameter",
- },
- pretty=config.TimezoneService.PrettyPrintJSON,
- ))
</del><ins>+ self.problemReport("invalid-pattern", "Invalid pattern request-URI query parameter value", responsecode.BAD_REQUEST)
</ins><span class="cx">
</span><span class="cx"> timezones = []
</span><span class="cx"> for tz in self.timezones.listTimezones(None):
</span></span></pre>
</div>
</div>
</body>
</html>