Commit Graph
32 Commits
Author SHA1 Message Date
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
P. Christeas 403a71fbaa Document webdav: fix errors for get_data, mkcol
bzr revid: p_christ@hol.gr-20100713102946-peksq27q3bxzgtnx
2010-07-13 13:29:46 +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 3fe8bf10a8 Doc WebDAV: More consistent exceptions
The NotFound one should properly parse the list uri2. Define a helper
function that will wrap around usual calls and handle their exceptions.

bzr revid: p_christ@hol.gr-20100712192930-necdd0z9d2j6w4ut
2010-07-12 22:29:30 +03:00
P. Christeas c6e0309c9b Document: fix unicode passed as content-type header
Py-webdav will not allow us to have unicode in the mimetype. And that's
not in the protocol, anyway. So, ensure we are only sending a string (was
broken since the db query would convert to unicode).

bzr revid: p_christ@hol.gr-20100623140720-nzst9y9hmarfo7qv
2010-06-23 17:07:20 +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 0be3a0757c Doc webdav: fix at listing of dbs
This is not a complete fix yet, but handles the case when one of the
scanned db's is not a proper OpenERP one (happens if a db has same user
as in the openerp conf, or if openerp db is not initialized properly).

bzr revid: p_christ@hol.gr-20100623104956-w5r3n035ozvz0h0v
2010-06-23 13:49:56 +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) 199ac22a96 [FIX] caldav: remove calendar problem
bzr revid: hmo@tinyerp.com-20100423120544-axml2owg03rwwvv0
2010-04-23 17:35:44 +05:30
Harry (Open ERP) e246a6bfe0 [IMP+REF] caldav
bzr revid: hmo@tinyerp.com-20100422125041-2x1fkswvf2gab05p
2010-04-22 18:20:41 +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) 7558802e88 [IMP] caldav
bzr revid: hmo@tinyerp.com-20100415105605-18h6tgny6lu21j85
2010-04-15 16:26:05 +05:30
Harry (Open ERP) 7aea663bb6 [IMP] caldav: supporting caldav protocall
bzr revid: hmo@tinyerp.com-20100415075809-edzwop5gzzdi80jj
2010-04-15 13:28:09 +05:30
Harry (Open ERP) 013abc7709 [FIX] document: MKCOL
bzr revid: hmo@tinyerp.com-20100414114940-jkhi3ds5eskjxhej
2010-04-14 17:19:40 +05:30
Harry (Open ERP) f2311d256f [REF+IMP] caldav
bzr revid: hmo@tinyerp.com-20100414073616-i84h1e197yswuv0v
2010-04-14 13:06:16 +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
rpa (Open ERP) 7f105c97c5 [IMP]: caldav modules, document_webdav: Minor improvement in wizard
bzr revid: rpa@openerp.co.in-20100127050704-440o05f3n924kij5
2010-01-27 10:37:04 +05:30
Harry (Open ERP) 1b8c310a0a [FIX] document_webdav: fixed regration in mkcol, rmcol, rm
bzr revid: hmo@tinyerp.com-20091217115604-g5h8vr9zmcaam4dv
2009-12-17 17:26:04 +05:30
P. Christeas 33f9180c0c [FIX] document_webdav: close another 2 cursors, avoid deadlock. taken from xrg git branch:fc70e930c1e89c868c613fdc83534e9f853dcfa2
bzr revid: hmo@tinyerp.com-20091217090252-f9thyune5j2dcxa6
2009-12-17 14:32:52 +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