Commit Graph

73 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
dle@openerp.com 8efb6d3ea3 [ADD]filter db
bzr revid: dle@openerp.com-20121213135505-fnmlrvscc6upliiv
2012-12-13 14:55:05 +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
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 a97687a420 [MERGE] latest trunk
also replace the error message title 'Operation Not Permitted' by 'Invalid Action'

bzr revid: abo@openerp.com-20120807120451-zdrrecilfh82obhl
2012-08-07 14:04:51 +02:00
Antonin Bourguignon a52eeef519 [IMP] rephrase some error and warning messages in document, edi, google_base_account, mrp and mrp_repair
remove exclamation marks at the end of messages
remove unjustified capital letters

bzr revid: abo@openerp.com-20120806170841-cx9vuend1vglmsqk
2012-08-06 19:08:41 +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 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 ddef5bfbe2 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110909114941-wsf62um84k6fnak7
2011-09-09 13:49:41 +02:00
Vo Minh Thu 28f900202b [FIX] document_ftp/document_webdav: correctly fix what was incorrectly fixed in
revno 4821, revision-id tfr@openerp.com-20110628141309-oag99snygj3vuqwn :
pooler.get_db_only was removed from the server but not from the addons.
It seems the commit 4821 tried to solved the situation by using get_db
instead, which is wrong and it will load the db instead of just trying
to get a cursor. This commit solves correctly the removel of get_db_only:
by using sql_db.db_connect (for which get_db_only was an alias).

bzr revid: vmt@openerp.com-20110909113916-td9o8yct0u5bitb6
2011-09-09 13:39:16 +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
Bhumika (OpenERP) a4d1f92097 [Fix] document_webdav: rename pooler method name
bzr revid: sbh@tinyerp.com-20110624105610-874pt2oi9w641bmp
2011-06-24 16:26:10 +05:30
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
Thibault Francois bad119b71b [MERGE] lp:~xrg/openobject-addons/trunk-patch18
bzr revid: tfr@openerp.com-20110111123655-rg2vn3o836quxkbz
2011-01-11 13:36:55 +01:00
P. Christeas f25e5da787 doc webdav: fix "improvement" that totally broke WebDAV
I had long warned against that kind of "improvements".

bzr revid: p_christ@hol.gr-20101230095405-61ooshitgoo4ysjw
2010-12-30 11:54:05 +02:00
P. Christeas 021e257c32 doc webdav: remove print lines
bzr revid: p_christ@hol.gr-20101230095359-s8sh8a60o1hfa7an
2010-12-30 11:53:59 +02:00
qdp-launchpad@tinyerp.com dc6e8e9b34 [MERGE] merged the numerigraphe branch related to common typo mistake 'childs' instead of children. Thanks for the contribution
bzr revid: qdp-launchpad@tinyerp.com-20101228170718-3r55jyvpb6m5h05u
2010-12-28 18:07:18 +01:00
Thibault Francois 6bb922492c [FIX] crm/i18n/fr.po : syntax error
bzr revid: tfr@openerp.com-20101224085408-735n9208xxiwjjjd
2010-12-24 09:54:08 +01: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 9a4c999803 doc webdav: fix responses with Host for DNAT'ed hosts
If you are trying to expose your OpenERP server through a DNAT box,
the propfind (aka. folders listing in WebDAV) must reference the external
IP/host that the client asked for. Use the more expensive "get_baseuri()"
of the interface class for that.

bzr revid: p_christ@hol.gr-20101207134005-v3oxr7zwbheiylxv
2010-12-07 15:40:05 +02:00
P. Christeas 91a0bbf1c5 doc webdav: Fix putting of utf-8 names
We had a mix of unicode and utf-8 encoded strings, which broke the join
at line 700.

bzr revid: p_christ@hol.gr-20101123184905-9t7v1jrx257oog27
2010-11-23 20:49:05 +02:00
P. Christeas 2645423e54 doc webdav: Enable yaml test, lint fixes
bzr revid: p_christ@hol.gr-20101103112604-qbrkbmg81aj1d2vx
2010-11-03 13:26:04 +02:00
P. Christeas 1c5c26a8af doc webdav: move to the node_descriptor API
We need to support chunked transfers, as well as Ranges, so we should no
longer use the node.get_data() but node.open_data('r').

bzr revid: p_christ@hol.gr-20101103112535-34sr4dhd3neunfv1
2010-11-03 13:25:35 +02:00
Numerigraphe - Lionel Sausin c1cb4b70d0 [IMP] wording: children intead of childs (again)
bzr revid: ls@numerigraphe.fr-20101025084851-3ri17e8ct5x7lue0
2010-10-25 10:48:51 +02:00
Numerigraphe - Lionel Sausin ae6b790237 [MERGE] upgraded to v6.0.0-RC1
bzr revid: ls@numerigraphe.fr-20101025084446-w4pv2twvms9zlyxx
2010-10-25 10:44:46 +02:00
P. Christeas 5dcc42aa37 Doc webdav: fix Report for rel+abs URIs
At Evolution, the request is absolute, so make sure it matches our
relative representation of the URL.

bzr revid: p_christ@hol.gr-20101015092759-ahhiygd1u9dcny8s
2010-10-15 12:27:59 +03:00
P. Christeas d690bec1cb Doc Webdav: close cursor when dav_get_eprop raises Exceptions.
bzr revid: p_christ@hol.gr-20101014114159-ek4fp05fvjygobr2
2010-10-14 14:41:59 +03:00
P. Christeas 732ca8b5cf Doc webdav: fix typo in case of exception.
If user rights are not setup for the user that connects to WebDAV, this
exception will occur and the typo would not help debug the problem.
(still, the user won't see the items at either case)

bzr revid: p_christ@hol.gr-20101014110323-zxj5oha0u96e2l1t
2010-10-14 14:03:23 +03:00
P. Christeas 60f2488feb Document, caldav: inhibit features not found on trunk server.
bzr revid: p_christ@hol.gr-20101012112733-sqcnvobi5q8ztj3l
2010-10-12 14:27:33 +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 51bf88f478 Doc WebDAV: pass the user-agent as a context to the nodes.
It is unavoidable. Some user agents (i-#$^%) have serious trouble with
protocol extensions they don't support. So, we have to hide a few of
our capabilities with quirk code.

bzr revid: p_christ@hol.gr-20101012104102-xakiyykjqsu16q2o
2010-10-12 13:41:02 +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 c52b73b587 doc webdav: initial override of nodes.py
bzr revid: p_christ@hol.gr-20101012103858-hykw2g2ezbwaobmn
2010-10-12 13:38:58 +03:00
P. Christeas 2655d0e091 Doc Webdav: when scanning children, protect the cursor against exceptions.
bzr revid: p_christ@hol.gr-20101012103831-36qutrtz7avzb2ny
2010-10-12 13:38:31 +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
XRG 2743ee0b97 [FIX] WebDAV: fix the displayname property, for /webdav and /webdav/dbname
bzr revid: hmo@tinyerp.com-20100818060048-eg5d58e30ey0tir6
2010-08-18 11:30:48 +05:30
P. Christeas 2777bd4d5c Doc Webdav: close cursor on misc exceptions
bzr revid: p_christ@hol.gr-20100812162120-q6q2z3tqqy1nsr95
2010-08-12 19:21:20 +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 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 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 f536feba96 Doc WebDAV: fix match_prop() to work like get_prop()
Some properties (like the getetag) are handled in the interface, so
match_prop has to use that algorithm.

bzr revid: p_christ@hol.gr-20100729133938-1frjiz3kqqc12hjz
2010-07-29 16:39:38 +03:00
P. Christeas 6987e89efe Doc Webdav, caldav: get the create/write dates w. perm_read(). convert.
create_date, write_date may not be specified as object fields, so we
cannot always call them. Use the perm_read() instead (which works for
all objects). However, the datetime returned may have fractional secs,
in which case a better conversion function shall be used.

bzr revid: p_christ@hol.gr-20100729133937-fslzb5xba2pq5grj
2010-07-29 16:39:37 +03:00
P. Christeas 080e951518 Doc WebDAV: fix http options re-occurring
bzr revid: p_christ@hol.gr-20100729133937-uic42ifltpq0yp8r
2010-07-29 16:39:37 +03:00
P. Christeas 628651c6aa Doc WebDAV: modified date should be in en_US
I guess most clients would bork if we try to send them localized time
strings.

bzr revid: p_christ@hol.gr-20100729133937-fcbxam1i05zbx5du
2010-07-29 16:39:37 +03:00
P. Christeas 449da75e4e Doc Webdav: fix bug with DAV propname namespaces
Since the self.PROPS hadn't been copied, subsequent propname requests
would try to fetch all the properties of previous ones.

bzr revid: p_christ@hol.gr-20100729133937-yyfm1wb33vxh96ew
2010-07-29 16:39:37 +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
Harry (OpenERP) fa3e08b9df [MERGE]
bzr revid: hmo@tinyerp.com-20100717051300-ljwadjoh4jy6m1r1
2010-07-17 10:43:00 +05:30