* Tests/Integration/config.py.in: New config parameter: webCalendarURL

* Tests/Integration/webdavlib.py(HTTPPOST,HTTPGET):
  Allow cookies in post and get requests.
  * Tests/Integration/test-ui-posts.py: New test class
  Currently contains only one test case which exercises addWebCalendar

  * SoObjects/Appointments/GNUmakefile:
  use -Wl,--no-as-needed when linking. Fixes #1863

Monotone-Parent: 080d411d52272c158ce60ea0bab6ba8eb9d9aa2a
Monotone-Revision: 8ce46d6fa7b1d1a9d12069cee3ba796d99d668d2

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-07-18T20:22:54
This commit is contained in:
Jean Raby
2012-07-18 20:22:54 +00:00
parent 1abc40c127
commit aeef968c4e
5 changed files with 104 additions and 1 deletions
+17
View File
@@ -136,6 +136,14 @@ class HTTPSimpleQuery:
class HTTPGET(HTTPSimpleQuery):
method = "GET"
cookie = None
def prepare_headers (self):
headers = HTTPSimpleQuery.prepare_headers(self)
if self.cookie:
headers["Cookie"] = self.cookie
return headers
class HTTPOPTIONS(HTTPSimpleQuery):
method = "OPTIONS"
@@ -168,6 +176,15 @@ class HTTPPUT(HTTPQuery):
class HTTPPOST(HTTPPUT):
method = "POST"
cookie = None
def prepare_headers (self):
headers = HTTPPUT.prepare_headers(self)
if self.cookie:
headers["Cookie"] = self.cookie
return headers
class WebDAVQuery(HTTPQuery):
method = None