Commit Graph
421 Commits
Author SHA1 Message Date
P. Christeas 2c5082001e Document: use the new move_to() api, protect setting of file_size.
bzr revid: p_christ@hol.gr-20100701175133-9prni6r0kspt27ku
2010-07-01 20:51:33 +03:00
P. Christeas 0153d03c82 Document storage: support more file open modes.
We may be called with 'w+', 'r+' modes, support them. However, we still
don't support the 'a+' mode.

bzr revid: p_christ@hol.gr-20100701175132-v21yzk2h335emum1
2010-07-01 20:51:32 +03:00
P. Christeas a286f1ae6d Document API: fns to get nodes from orm objects.
ORM objects should not directly create nodes, but instead ask the context
to provide them (because they could be cached).

bzr revid: p_christ@hol.gr-20100701175132-hfnvj5czdwuaswwg
2010-07-01 20:51:32 +03:00
P. Christeas 493fe42f13 Document: improve the API of move_to()
bzr revid: p_christ@hol.gr-20100701175132-s9y160v1etxt1ugp
2010-07-01 20:51:32 +03:00
P. Christeas d52f451bca Document: tests improvements.
bzr revid: p_christ@hol.gr-20100701175132-ojsjqidcfegz9py8
2010-07-01 20:51:32 +03:00
P. Christeas 4913a2f0db Document: fix nodefd_db.close()
Some vars were missing/inaccessible, put the queries in a try block.

bzr revid: p_christ@hol.gr-20100701175132-389l8frlqqg7hgr3
2010-07-01 20:51:32 +03:00
P. Christeas 4052a14c95 Document: amend the API for the move_to(), allow rename
It is better to have the same API for both move and rename.

bzr revid: p_christ@hol.gr-20100701175132-qgbf7p4izkh844vg
2010-07-01 20:51:32 +03:00
P. Christeas 530932640b Document: fix setting parent of document_file.
There is some code that calls the 'move_to()' in case the document's
parent (aka. directory) is changed. Fix notation there.

bzr revid: p_christ@hol.gr-20100701175132-8ex94b3pdwkz4lq6
2010-07-01 20:51:32 +03:00
P. Christeas 11c5171326 Draft api for document.write(parent_id: ...)
If the parent directory for some document node changes, we may
have a major change in the stored content, so an API is needed
for that.

Conflicts:

	document/nodes.py

bzr revid: p_christ@hol.gr-20100701175131-ldt3b0er5a7tja0u
2010-07-01 20:51:31 +03:00
P. Christeas 28464cb07c Document tests: need to remove each document created in tests
There is commit commands inside document, to prevent from partially
writting data (eg. filestore and the db). Thus, the atomicity of the
transaction is broken.

bzr revid: p_christ@hol.gr-20100701175131-8v8xyosvz8nly0pi
2010-07-01 20:51:31 +03:00
P. Christeas 1e99bfc52c Document: test cases
bzr revid: p_christ@hol.gr-20100701175131-jltfosk4l5uvzo5l
2010-07-01 20:51:31 +03:00
P. Christeas 8307ff0139 Document: workaround case when text file consists of non-unicode.
The content indexer would be trying to process the garbage of the
file and fail.

bzr revid: p_christ@hol.gr-20100701175131-b83jg498xjuosmd9
2010-07-01 20:51:31 +03:00
P. Christeas 6aef03991d Document: tests
bzr revid: p_christ@hol.gr-20100701175131-5acgsuetw1qx0juu
2010-07-01 20:51:31 +03:00
P. Christeas 6d64f88d55 Document: fix content indexer, where no filename is supplied
bzr revid: p_christ@hol.gr-20100701175131-pbp7lsswuh8muyou
2010-07-01 20:51:31 +03:00
P. Christeas ad1253c96b Document: start some trivial tests.
bzr revid: p_christ@hol.gr-20100701175130-bs2rx4w81ck6gh9l
2010-07-01 20:51:30 +03:00
P. Christeas 3f4d6dd95d Document: fix menu parents (after root moved to knowledge)
bzr revid: p_christ@hol.gr-20100701175130-5ya6cxp5s4xb3gyi
2010-07-01 20:51:30 +03:00
P. Christeas ab4ef97a7d Merge commit 'bd063948343552f' into trunk-doc2-api2
bzr revid: p_christ@hol.gr-20100701175018-l2qerpd8mzan894i
2010-07-01 20:50:18 +03:00
P. Christeas f3cb7cd415 Document storage: implement node_descriptors.
bzr revid: p_christ@hol.gr-20100629140530-btusqmlz2lyadfbx
2010-06-29 17:05:30 +03:00
P. Christeas 54f9817335 Document API: don't accept extra args in node_descriptor.
bzr revid: p_christ@hol.gr-20100629140527-sz2sjgrv4cjw18uk
2010-06-29 17:05:27 +03:00
P. Christeas 075affaccc Document API: implement the node_file.open_data()
bzr revid: p_christ@hol.gr-20100629140525-a54b2p51b8co2zsf
2010-06-29 17:05:25 +03:00
P. Christeas 2406e4a93d Document API: descriptors for data access.
Trying to pass the full data of a node through get_data()/set_data()
is sub-optimal and partially incompatible with some protocols. Instead,
define a way to use transparent descriptors of the data.

bzr revid: p_christ@hol.gr-20100629140522-8lot7kk0mm83u5c2
2010-06-29 17:05:22 +03:00
P. Christeas 74d60c861f Document: the node context shouldn't contain 'lang'
Node context should be as neutral as possible, in order to help caching.

bzr revid: p_christ@hol.gr-20100629140519-fgxcr2wm5ctg8ywl
2010-06-29 17:05:19 +03:00
P. Christeas 60283953f8 Document: deprecate the node.open() functions
These had been erroneously used by doc_ftp. The get_data() must be called
instead. However, one day, a seekable object for the data should be returned.

Conflicts:

	document/nodes.py

bzr revid: p_christ@hol.gr-20100629140303-6lkfcz8lmvde79dt
2010-06-29 17:03:03 +03:00
P. Christeas 4d99b09045 Document, FTP: text skeleton of trivial yaml tests.
bzr revid: p_christ@hol.gr-20100629140049-dowvybyjh6bncyrb
2010-06-29 17:00:49 +03:00
P. Christeas 514f433c59 Document: ir.attachment.res_model and res_id should be readonly for UI
Changing them would require a wizard or something.

bzr revid: p_christ@hol.gr-20100629140040-am61qng5pxfz2dxs
2010-06-29 17:00:40 +03:00
P. Christeas cf0e7cbfc6 Document UI: Revise document, directory forms as reviewed
bzr revid: p_christ@hol.gr-20100629140032-kq39g7q5ef27xdty
2010-06-29 17:00:32 +03:00
P. Christeas e068962cca Document UI: rename the parent_id of a dir .
bzr revid: p_christ@hol.gr-20100629140029-fnx876jkkezchc3j
2010-06-29 17:00:29 +03:00
P. Christeas 694753824b Document UI: rename the default storage entry.
bzr revid: p_christ@hol.gr-20100629140026-01pahx5ue1ycaf3g
2010-06-29 17:00:26 +03:00
P. Christeas bba02abfdd Document: fix the storage_id of node_file.
Not all directories have a storage_id. Instead, we have to traverse the
hierarchy up until we find one that has storage.

bzr revid: p_christ@hol.gr-20100629135841-5myx5hyuijwv95si
2010-06-29 16:58:41 +03:00
P. Christeas 4fd7b06c30 Document: fix domain passing in node_res_dir
Conflicts:

	document/nodes.py

bzr revid: p_christ@hol.gr-20100629135632-8d5cp645woc8g3l5
2010-06-29 16:56:32 +03:00
Fabien Pinckaers 0589af4d6b merge
bzr revid: fp@tinyerp.com-20100629095747-svyjt9e9qak74y3c
2010-06-29 11:57:47 +02:00
UCO (OpenERP) 3217cf7e4c [REM]: Removed access rules for OSV memory objects
bzr revid: rpa@tinyerp.com-20100628134938-23kiccr4355jfhmg
2010-06-28 19:19:38 +05:30
P. Christeas 0e5dbb787c Merge remote branch 'origin/dms-bugfix' into trunk-fix-webdav
bzr revid: p_christ@hol.gr-20100628074745-dj2ly9gsfvs6pifw
2010-06-28 10:47:45 +03:00
P. Christeas e908e8cd75 Document board: bring the menus inside the 'knowledge'
They should not be under the general 'Dashboards' menu.

bzr revid: p_christ@hol.gr-20100627210904-1397ab657saukag9
2010-06-28 00:09:04 +03:00
P. Christeas 38a7613cb3 Document: expand tabs at board xml.
bzr revid: p_christ@hol.gr-20100627210901-klb7bu4ojnhrpzbx
2010-06-28 00:09:01 +03:00
P. Christeas ef0272dd24 Document: fix context expr. that broke the Dashboard
bzr revid: p_christ@hol.gr-20100627210858-9y9ncl76g1e4wjyy
2010-06-28 00:08:58 +03:00
P. Christeas e91d089e5b Document UI: revise the ir.attachment search, tree forms
bzr revid: p_christ@hol.gr-20100627201901-op4tjd1vknnuq3el
2010-06-27 23:19:01 +03:00
P. Christeas 85dc0b2fc6 Document: remove the ir.attachment.group_ids column
At the review, it was decided that per document permissions is too much.

bzr revid: p_christ@hol.gr-20100627201857-e0sw2sun1ttvnj32
2010-06-27 23:18:57 +03:00
P. Christeas daee2860fc Document: set the storage only for the root folder
It is not needed to set the default storage for children folders, and that
would break setups where the admin has overriden that storage.

bzr revid: p_christ@hol.gr-20100627201849-uzemo5lcgytzmbnu
2010-06-27 23:18:49 +03:00
P. Christeas 653ed555b2 Document UI: improve the ir.attachment view for docs.
Try to respect the layout of the bare ir.attachment view, simplify.

bzr revid: p_christ@hol.gr-20100627201846-99a2ptcmnl6e1o62
2010-06-27 23:18:46 +03:00
P. Christeas d885f0c851 Document: expand tabs at view, one wording improvement.
bzr revid: p_christ@hol.gr-20100627201835-c3qzi1w0e8yxcc07
2010-06-27 23:18:35 +03:00
P. Christeas 07d395df15 Document: cleanup the view (and help) of directory.
bzr revid: p_christ@hol.gr-20100627201826-1873sa0et2q8vx62
2010-06-27 23:18:26 +03:00
P. Christeas 823dc6d50d Document directory: cleanup fields, type, constraints.
bzr revid: p_christ@hol.gr-20100627201818-wjlumw10u8g28g27
2010-06-27 23:18:18 +03:00
P. Christeas c11ad0047d Document: files are required to have a parent directory
Or else, there is no storage for them.

bzr revid: p_christ@hol.gr-20100627201813-y5gatb8w39jnxeux
2010-06-27 23:18:13 +03:00
P. Christeas 6eef5d7e36 Document: rearrange columns definition of document.file
Note: *must* use the server as patched, for the 'url' and 'type' columns.

bzr revid: p_christ@hol.gr-20100627201809-p5wy2w368gqoyy3h
2010-06-27 23:18:09 +03:00
Harry (OpenERP) 1c81281413 [MERGE]
bzr revid: hmo@tinyerp.com-20100627172019-7abzqpe092kdy31w
2010-06-27 22:50:19 +05:30
Launchpad Code Hosting 9be835d632 Launchpad automatic translations update.
bzr revid: codehost@crowberry-20100626035831-n0mmsbylbslbeotl
2010-06-26 04:58:31 +01:00
Fabien Pinckaers 9e08565c10 [IMP] misc access rights fix and imprivements
bzr revid: fp@tinyerp.com-20100625215226-3hfclouyg6uwt0yb
2010-06-25 23:52:26 +02:00
Fabien Pinckaers ceb831a4f4 fix
bzr revid: fp@tinyerp.com-20100625141959-58406ngp132sx2l2
2010-06-25 16:19:59 +02:00
P. Christeas a95319ace3 Document: do not allow nodes without storage.
Every file must be linked to a storage, through its parent directory. If
not, it is just a programming error.

bzr revid: p_christ@hol.gr-20100625135139-u5r0y4fouz2i1av6
2010-06-25 16:51:39 +03:00