mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
Monotone-Parent: a79adaa6f36ea178ca12ab0e347e8def006787cc
Monotone-Revision: ad7209d4c578d84bbeceb61506c1e6ed592106da Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-06-02T16:47:07 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2010-06-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* Tests/Integration/utilities.py (TestACLUtility.setupRights): we
|
||||
excape the value for the "user" attribute with
|
||||
xml.sax.saxutils.escape.
|
||||
|
||||
* Tests/Integration/webdavlib.py (HTTPPUT.__init__): added the
|
||||
"content_type" and "exclusive" optional parameters. The latter
|
||||
implies the use of the "if-none-match" header.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
import unittest
|
||||
import webdavlib
|
||||
import xml.sax.saxutils
|
||||
|
||||
class TestUtility():
|
||||
def __init__(self, test, client, resource = None):
|
||||
@@ -69,7 +70,7 @@ class TestACLUtility(TestUtility):
|
||||
aclQuery = ("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||
+ "<acl-query"
|
||||
+ " xmlns=\"urn:inverse:params:xml:ns:inverse-dav\">"
|
||||
+ "<set-roles user=\"%s\">%s</set-roles>" % (username,
|
||||
+ "<set-roles user=\"%s\">%s</set-roles>" % (xml.sax.saxutils.escape(username),
|
||||
rights_str)
|
||||
+ "</acl-query>")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user