Commit Graph

44 Commits

Author SHA1 Message Date
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
Atul Patel (OpenERP) 7f7c2d2b66 [FIX]Document_webdav: Change logger method as per server changes in logger system for caldav synchronization
bzr revid: atp@tinyerp.com-20120209090622-qoo0zfr9vjr4q0ak
2012-02-09 14:36:22 +05:30
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
Vo Minh Thu 6ba60770b8 [FIX] websrv_lib: commit associated to a change in the server:
revno 3548, revid vmt@openerp.com-20110909122856-29uhsjfe193fqdi8

bzr revid: vmt@openerp.com-20110909123005-aqbixbe7xj0nwlc9
2011-09-09 14:30:05 +02:00
Vo Minh Thu 1a40e51294 [REF] document_webdav: reg_http_service accepts the HTTPDir arguments,
renamed auth_proxy to auth_provider.

bzr revid: vmt@openerp.com-20110908123115-meorb9rnc2j0rb40
2011-09-08 14:31:15 +02:00
Vo Minh Thu be827a813a [FIX] document_webdav: make sure the headers is a dict.
bzr revid: vmt@openerp.com-20110908094438-rpqz2k5xn0pmhigx
2011-09-08 11:44:38 +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 6d38e064e2 doc webdav: revert changes, that would break https
See commit 848c3f9ad2df3. Again, read it a few times.

bzr revid: p_christ@hol.gr-20101223141403-6qbj4ysz06mmvuih
2010-12-23 16:14:03 +02:00
atp (Open ERP) 40201bfea2 [MERGE]: Merge with lp:~openerp-dev/openobject-addons/trunk-dev-addons1
bzr revid: atp@tinyerp.co.in-20101223105705-xyo4vu424j3lhqlt
2010-12-23 16:27:05 +05:30
P. Christeas 03b7cb90c4 doc webdav: update copyright header, add disclaimer about python-webdav
Yes, I have been subclassing the DAV module and improving on the existing
code, regarding that we couldn't ship our own version of the whole
python-webdav library (as in v5.x).
At commit b2a2c3f95416788, on 2010-04-06, we explicitly deleted our custom
copies of the DAV module and linked to the upstream project, in fact.

bzr revid: p_christ@hol.gr-20101209095950-qf2ppgdxw8y2lake
2010-12-09 11:59:50 +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
atp (Open ERP) 854a579f13 [MERGE]: Merge with lp:~openerp-dev/openobject-addons/trunk-xrg-patch5
bzr revid: atp@tinyerp.co.in-20101125073131-zicpd0nvq7p6p635
2010-11-25 13:01:31 +05:30
P. Christeas 369d1d110b Doc_webdav: port logging to pythonic, not netsvc
Having an allocated logging object may even speed up things.

bzr revid: p_christ@hol.gr-20101123190125-0l951ev1h9dsu6lw
2010-11-23 21:01:25 +02:00
P. Christeas 2bdc61232e doc webdav: principals redirect feature, for i-things
iPhones etc. are preset to look into /principals/users/xx , so let's
provide that path to them.

bzr revid: p_christ@hol.gr-20101123185343-n1k1szxojdmcpekz
2010-11-23 20:53:43 +02:00
P. Christeas 8f2e8ff36f http-well-known: merge into the document_webdav module
Since both "well-known" urls are about webdav[1], we can safely assume
that the webdav module is needed when well-known uris are used. The code
is much similar, too.

http://www.iana.org/assignments/well-known-uris/well-known-uris.xhtml

bzr revid: p_christ@hol.gr-20101123185338-az85yl7pbc9gf76z
2010-11-23 20:53:38 +02:00
P. Christeas ecf7b56a86 doc webdav: install a dummy DAV handler at / , for Nautilus
The gnome gvfs component falsely requires that / will serve PROPFIND
requests. We reuse the static-http capability of the server (force
activation rather than opt-in default behavior) and serve pseudo-DAV
properties for the root.

Conflicts:

	document_webdav/webdav_server.py

bzr revid: p_christ@hol.gr-20101123185011-besih03q4gt2atps
2010-11-23 20:50:11 +02:00
sbh (Open ERP) 3389c99ee6 [Fix] caldav,document,document_ftp,document_webdav: fix buildbot warnings
bzr revid: sbh@tinyerp.com-20101112114946-u19wkxzh1vj33sol
2010-11-12 17:19:46 +05:30
Harry (OpenERP) ca33cf5313 [MERGE]
bzr revid: hmo@tinyerp.com-20101112094836-qy4536d3tjvw04xc
2010-11-12 15:18:36 +05:30
P. Christeas 21847b3864 doc webdav: workaround bug in KHTML's PUT method.
This isn't our fault, but KDE is bound to remain broken for quite some
time, we'd better support it.

bzr revid: p_christ@hol.gr-20101103112604-78mdkva38dx1vm9k
2010-11-03 13:26:04 +02:00
P. Christeas 788ed06b80 doc webdav: match the quotes around ETags
In commit e7eede397c8a84, quotes were re-introduced around ETags. At the
http "If-Match" header, we have to follow that.

bzr revid: p_christ@hol.gr-20101015092758-3wajkzjo0bm5z60g
2010-10-15 12:27:58 +03:00
P. Christeas 8ce30bcea6 doc webdav: fix against older websrv_lib that has no getsockname()
bzr revid: p_christ@hol.gr-20101012115534-0un3ip9jpw8hia4g
2010-10-12 14:55:34 +03:00
P. Christeas 305b48abe3 Document, calendar: Patch code from trunk-xrg branch
several fixes that hadn't been backported or applied correctly.

bzr revid: p_christ@hol.gr-20101012112030-snnb4fjkya4ndqkm
2010-10-12 14:20:30 +03:00
P. Christeas 1b30170525 doc webdav: switch on the DAV v2 features
The underlying python-webdav supports some emulation for lock/unlock, so
try to use that.

bzr revid: p_christ@hol.gr-20101012104035-jffog0w1dco2lo9i
2010-10-12 13:40:35 +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
P. Christeas 329c9a003c Doc WebDAV: reuse address from the socket, not the bind server.
This should solve the following: When we reply to PROPFIND requests etc,
we provide the absolute url of ourselves like:
<D:href>http://our.server:8069/webdav/mydb/Documents</D:href>
The problem is that if we bind to 0.0.0.0 and the interface, which the
client connects through, doesn't resolve from "our.server", then we are
practically redirecting the client to the wrong address.
This is expected to happen at openerp servers w/o full qualified names and
reverse resolution of their interfaces.

Requires server patch (at websrv_lib) to function, fallbacks to old code
on trouble.

bzr revid: p_christ@hol.gr-20100926163210-v8scuvhg991jbbzc
2010-09-26 19:32:10 +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
P. Christeas bcba71f779 Doc Webdav: Don't send both ETag and Location after PUT
An ETag should refer to the requested uri, so a Location header will
render it invalid anyway. Gnome's evolution has an if-else block that
first checks ETag and then Location.

bzr revid: p_christ@hol.gr-20100812111025-xoilqlb956moovgv
2010-08-12 14:10:25 +03:00
P. Christeas 5df0b8cf8c Doc Webdav: at PUT, return feedback about created node.
Used in caldav, the final location of the node and its ETag must be
returned after creation.

bzr revid: p_christ@hol.gr-20100812111023-s6dv0g24enfghki9
2010-08-12 14:10:23 +03:00
P. Christeas c02cd022e4 WebDAV: Add keep-alive in headers, fix If-Match
We must check the "If-Match" header. Its value is quoted, so try to
remove quotes (crude way), and also consume any body before we respond
with 4xx.

Conflicts:

	document_webdav/webdav_server.py

bzr revid: p_christ@hol.gr-20100801083828-lh9htiqlwewvhloh
2010-08-01 11:38:28 +03:00
P. Christeas 71ae841d45 Doc Webdav: better exceptions, close cursors.
bzr revid: p_christ@hol.gr-20100729133938-fo37j2dftn7755gg
2010-07-29 16:39:38 +03:00
P. Christeas 4ab6bf860c Doc webdav: use the new server API for http OPTIONS
Since a063f7e441f910f, server has a better API for the http options,
use that instead of the ill-written do_OPTIONS handler.'

bzr revid: p_christ@hol.gr-20100729133936-e0laz7p3j1l2zodo
2010-07-29 16:39:36 +03:00
P. Christeas 83ff0d6757 Document webdav: fix mkcol, rename, get_data (temp)
Conflicts:

	document_webdav/dav_fs.py
	document_webdav/webdav_server.py

bzr revid: p_christ@hol.gr-20100712193236-8xde2tpmmxfp004n
2010-07-12 22:32:36 +03:00
P. Christeas 136398f175 Doc Webdav: One more workaround for python-webdav.
bzr revid: p_christ@hol.gr-20100712192819-7lr9zfogs6jjqq74
2010-07-12 22:28:19 +03:00
P. Christeas 4b30a47879 Doc WebDAV: allow auth of False db, even with user set
This is another workaround for nautilus, that descends into the db (=does
authorization) and then requests info for the parent again
(causing db=False later).

bzr revid: p_christ@hol.gr-20100624150122-tntum07kgth2ogup
2010-06-24 18:01:22 +03:00
P. Christeas 665103115d Doc WebDAV: workaround py-webdav for persistent connections.
Python-webdav does not follow the http protocol for persistent connections,
nor does it accept patches. So, override their functions.

bzr revid: p_christ@hol.gr-20100624150054-iwuvgehsyjr7qghv
2010-06-24 18:00:54 +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
P. Christeas 4fd5e6b514 Doc webdav: temp fixes
Including a meaningful exception when range of data (chunked transfer)
is requested.

bzr revid: p_christ@hol.gr-20100622150339-e93xs3dw0kw1ni3y
2010-06-22 18:03:39 +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) 5c3cf27f2f [IMP] caldav
bzr revid: hmo@tinyerp.com-20100421133402-191nwwj3nohx6zas
2010-04-21 19:04:02 +05:30
Harry (Open ERP) 565d1a18c7 [REF+IMP] caldav
bzr revid: hmo@tinyerp.com-20100412105200-c3kvao81ypbh8l0g
2010-04-12 16:22:00 +05:30
Harry (Open ERP) aa70854c09 [IMP] document_webdav: removed DAV and refactore code
bzr revid: hmo@tinyerp.com-20100406111132-9bscvnb6aojdvioo
2010-04-06 16:41:32 +05:30
Harry (Open ERP) 892e40f0c9 [IMP] document_webdav : webdav enable true if not specified in configuration file
bzr revid: hmo@tinyerp.com-20091229093655-vohg3lxkzfs7zwka
2009-12-29 15:06:55 +05:30
Harry (Open ERP) 6082127d5d [FIX] document_webdav : Replace <TAB> with four <WHITE SPACE>
bzr revid: hmo@tinyerp.com-20091215143105-3m1zuyf0fas65opf
2009-12-15 20:01:05 +05:30
Panos Christeas 8d0b4a7418 [MERGE] merge from lp:~xrg/openobject-addons/doc2-5.2
bzr revid: hmo@tinyerp.com-20091126135400-z32iycvadbt9so8n
2009-11-26 19:24:00 +05:30