Commit Graph

30 Commits

Author SHA1 Message Date
Cecile Tonglet 331fdf8675 [MERGE] From trunk (second time)
bzr revid: cto@openerp.com-20121217145921-6pk1jrktppezuq13
2012-12-17 15:59:21 +01:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
dle@openerp.com 0d168ae647 [FIX] Wrong pywebdav lib import
bzr revid: dle@openerp.com-20121212174232-5pnme7whe9yskrj7
2012-12-12 18:42:32 +01:00
Antony Lesuisse a03988e353 [FIX] document_webdav graceful import
bzr revid: al@openerp.com-20121210151725-t4bc08hyitf54y3u
2012-12-10 16:17:25 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Antonin Bourguignon 1653332080 [MERGE] trunk
bzr revid: abo@openerp.com-20121002102915-424prxd74izb1szw
2012-10-02 12:29:15 +02:00
Hardik 770dc652af [IMP]Document (ftp,webdev) : Warning Messages are changed
bzr revid: hsa@tinyerp.com-20120713052957-iie8hdqbde1g3qz9
2012-07-13 10:59:57 +05:30
Numerigraphe - Lionel Sausin 2d2a44dcf2 [FIX] unmutable default in the remaining modules
[REF] coding style consistency

lp bug: https://launchpad.net/bugs/525808 fixed

bzr revid: ls@numerigraphe.fr-20120305184003-er00xtj9vtcw7gna
2012-03-05 19:40:03 +01:00
Numerigraphe - Lionel Sausin 779fa653c1 [IMP] Added missing vim mode lines
lp bug: https://launchpad.net/bugs/524279 fixed

bzr revid: ls@numerigraphe.fr-20111122085138-x6u2lcl6vrpyybp9
2011-11-22 09:51:38 +01:00
P. Christeas 9b0993e74c webdav: ';' in name not handled correctly [Bug 704444]
Reported by: Dr. Ferdinand Gassauer

Locations that contain a semicolon are split by the urlparse.urlparse(),
thus setting their 'path' and 'params' return fields (rather than just
the 'path'). In our syntax, there is no params, so the part after the
semicolon needs to be appended back to the patch.

bzr revid: p_christ@hol.gr-20110118165021-4knt76njdqnt1eln
2011-01-18 18:50:21 +02:00
P. Christeas 98ab6360ed Merge branch11 into patch18
Branch patch11 had somewhere been lost in bzr hell.

Conflicts:
	account/account_move_line.py
	document_webdav/nodes.py
	document_webdav/webdav_server.py
	event_project/__init__.py
	users_ldap/users_ldap.py

bzr revid: p_christ@hol.gr-20101223155444-ym8r0g4208gm88j9
2010-12-23 17:54:44 +02:00
P. Christeas 6b2c832f5f doc webdav: Implement locking support
This replaces the pseydo-locking of python-webdav library with a real
db-based locking. Locks are stored as DAV properties, which will
effectively also be listed in the PROPFIND response of the nodes.

With locking in place, Office suites can collaborate on documents online.

bzr revid: p_christ@hol.gr-20101207134041-8negkvxrbscv7fs7
2010-12-07 15:40:41 +02:00
P. Christeas f95f47b4a9 doc webdav: refactor the mk_prop_response() for the locks
This prepares the code to be reused in the DAV lock functions.

bzr revid: p_christ@hol.gr-20101123185354-a2rjviaep3emqeez
2010-11-23 20:53:54 +02:00
rpa (Open ERP) d6ba50f386 [FIX]: Fixed translation of warning messages
lp bug: https://launchpad.net/bugs/660494 fixed

bzr revid: rpa@tinyerp.com-20101027133524-2mijip7zskzwevnh
2010-10-27 19:05:24 +05:30
P. Christeas b275fc4601 Doc Webdav: reply with relative URIs when the request was relative.
If the DAV client requests properties for a relative URI (without the
protocol:ip:port part), it means it can also understand responses with
relative notation, so don't bother calculating the prefix (non-trivial).

This fixes the REPORT responses to Mozilla Sunbird.

bzr revid: p_christ@hol.gr-20101014125118-3x5ivmrbaqwb1nsx
2010-10-14 15:51:18 +03:00
P. Christeas d697bd94e5 Doc webdav, caldav: fix support for the calendar-multiget report
This report is a request to fetch multiple calendar entries. The
request contains a range of URIs to fetch, which must be processed
at the dav_fs.Report level.
The report is being called with Depth: 0 , for which the library could
not perform an iterator. Hack over it and explictly set Depth:1 in our
case.

bzr revid: p_christ@hol.gr-20101012104103-eu156146jy4a75af
2010-10-12 13:41:03 +03:00
P. Christeas f7ce71c475 Doc webdav: hack minidom to put proper quotes at ETag. Status first.
bzr revid: p_christ@hol.gr-20101012104044-1uq9x7k93aku7ls1
2010-10-12 13:40:44 +03:00
P. Christeas f4bc837143 Doc webdav: enhance the property notation structure
When DAV-aware nodes want to return properties, they might need to
have xml attributes or single instances of sub-elements.

Example:
	return ('aprop', 'D:', ('foo', 'D:', None, { 'name': 'bar'}))
will result in xml:
	<D:prop>
	    <D:aprop><D:foo name="bar"/></D:aprop>
	</D:prop>

bzr revid: p_christ@hol.gr-20101012104029-gq6hhjki4i52n8qh
2010-10-12 13:40:29 +03:00
P. Christeas 96499ac6ce doc webdav: fix namespaces, properties
bzr revid: p_christ@hol.gr-20101012103830-0mfo4ecuu4lu78ia
2010-10-12 13:38:30 +03:00
RHA (Open ERP) d5ad0b8ff1 [CLEAN]: Removed commented codes, unnecessary spaces.
bzr revid: uco@tinyerp.com-20100819115157-sfsmbnjdgpp4wl12
2010-08-19 17:21:57 +05:30
rpa (Open ERP) a566e35d20 [IMP]: document_webdav: Raise warning when PyWebDAV is not installed
bzr revid: rpa@tinyerp.com-20100812064753-xfcxcbs726oa3qtw
2010-08-12 12:17:53 +05:30
P. Christeas 2289282c8b Doc, webdav: new API for the DAV:resourcetype property.
This property is used in DAV folders, CalDAV, GroupDAV and CardDAV, with
different extensions at each one. So, it needs an extensible API for the
value it may return.

Typical response in a calendar dir:
	<D:resourcetype>
	    <D:collection>
	    <ns0:vevent-collection xmlns:ns0="http://groupdav.org"/>
	    <ns1:calendar xmlns:ns1="urn:ietf:params:xml:ns:caldav" />
	</D:resourcetype>

The last two elements have to be added by subclassing the node in the
caldav module.

Conflicts:

	document_webdav/dav_fs.py

bzr revid: p_christ@hol.gr-20100801083722-nh4ty58fy0hobrgk
2010-08-01 11:37:22 +03:00
P. Christeas 313ffd1550 Doc Webdav: fix whitespace.
bzr revid: p_christ@hol.gr-20100729133938-hk90sqo6zuzvzbks
2010-07-29 16:39:38 +03:00
P. Christeas 9e7431ba41 Doc Webdav: compact xml namespaces.
There is no reason to repeat the "DAV:" namespace as "ns0:"

bzr revid: p_christ@hol.gr-20100729133938-1gquxi4owv1r1wze
2010-07-29 16:39:38 +03:00
P. Christeas e78571ac67 Document, DAV: fix propfind/propname code
Several small fixes for the DAV responses, so that we are more conforming
to the protocol. Also fix multiple namespaces, getctag and (as always)
whitespace

bzr revid: p_christ@hol.gr-20100729133937-z6ctpn92w6mz7r9k
2010-07-29 16:39:37 +03:00
P. Christeas 6429cbe667 Doc WebDAV: fix for unicode names in paths.
example, when exporiting dynamic folders with unicode names.

bzr revid: p_christ@hol.gr-20100627201842-bor8tt5jk4vtgv6s
2010-06-27 23:18:42 +03:00
P. Christeas a26e8ae2ee Doc Webdav: Cleanup code, fix db listing, children paths.
This is a reshape of the code, since the porting. While the MultiHttpHandler
will strip the '/webdav' part of the path, the DAV code will try to
generate more paths without it. So, there must be consinstent functions
that will convert (at mk_prop_response and mk_propname_response) to the
full path or back. Also, only have one function that will strip the
db name from the path, so that we control the auth requirements (for the
purpose of database listings, which shouldn't require authentication).

bzr revid: p_christ@hol.gr-20100623105437-kmy0ccqihu5h9ydp
2010-06-23 13:54:37 +03:00
vra bf8d2a73c0 [IMP][REF] Sql-injection changes, remove print statement, some space improvement.
bzr revid: vra@tinyerp.com-20100616115139-cql5oiqf622spa6p
2010-06-16 17:21:39 +05:30
Harry (Open ERP) 37a0b05a17 [REF] caldav
bzr revid: hmo@tinyerp.com-20100412114551-pkrd135oxul8pw1u
2010-04-12 17:15:51 +05:30
Harry (Open ERP) 565d1a18c7 [REF+IMP] caldav
bzr revid: hmo@tinyerp.com-20100412105200-c3kvao81ypbh8l0g
2010-04-12 16:22:00 +05:30