P. Christeas
eb96e0f256
Document ftp: solve the tests paradox
...
the FTP server has been limited to only serve databases that have the
document_ftp module "installed". However, this would break running the
tests, because the module would be marked as "to upgrade".
bzr revid: p_christ@hol.gr-20100706232928-5ckj97p61nfrq3rn
2010-07-07 02:29:28 +03:00
P. Christeas
1927431e0b
Document: remove debug calls from trunk code.
...
That code would only work in trunk-xrg.
bzr revid: p_christ@hol.gr-20100706232700-x56f57gqhzupfphq
2010-07-07 02:27:00 +03:00
P. Christeas
950058dae3
Document FTP: fix yaml tests.
...
bzr revid: p_christ@hol.gr-20100706121053-5a9z29ub8hrnpqo9
2010-07-06 15:10:53 +03:00
P. Christeas
61b09c7fc9
Document ftp: fix NLST, path resolution.
...
bzr revid: p_christ@hol.gr-20100706121050-5u0i2hsm2phz0i30
2010-07-06 15:10:50 +03:00
P. Christeas
67386ec78b
Document: fix typo in test.yml
...
bzr revid: p_christ@hol.gr-20100706121047-p2nex1m3g86nirt6
2010-07-06 15:10:47 +03:00
P. Christeas
e8bf4a4f18
Document: fix the get_partner_id functionality
...
Was blocking document.create()
bzr revid: p_christ@hol.gr-20100706121045-mblekyw8nlkiy1r0
2010-07-06 15:10:45 +03:00
P. Christeas
606df7368c
Document ftp: better handling of wrong paths.
...
bzr revid: p_christ@hol.gr-20100706060155-nyljhua59ahax7sx
2010-07-06 09:01:55 +03:00
P. Christeas
45b7a3adc3
Document FTP: improve the tests
...
Now, a non-existing path will return 550, an exception.
bzr revid: p_christ@hol.gr-20100702215304-7l2pit3ceih3wvo9
2010-07-03 00:53:04 +03:00
P. Christeas
0828a06de4
Document ftp: don't close the cursor at the abstract_fs
...
Since the get_crdata() has created cursors outside the scope of this
function, it is not wise to close them inside.
bzr revid: p_christ@hol.gr-20100702215302-y6fsu4kz05g1a9v7
2010-07-03 00:53:02 +03:00
P. Christeas
e29f5bef65
Document FTP: rewrite the code, resolve nodes only once.
...
A big patch: nodes should not be calculated multiple times from the path
string, within an operation. Instead, they are resolved only once in a
node object (may reuse the cwd_node, if possible) and then op relative
to that node.
bzr revid: p_christ@hol.gr-20100702215249-kzucr3i1p5f6vvnt
2010-07-03 00:52:49 +03:00
P. Christeas
50070dfa13
Document API: have node.get_uri(), unix permissions and user/group
...
These attributes will help the FTP display the files correctly.
bzr revid: p_christ@hol.gr-20100702215102-0yx9y2psp32ha33u
2010-07-03 00:51:02 +03:00
Harry (OpenERP)
3f4c75919c
Document: fix creating of node_res_obj without data .
...
bzr revid: p_christ@hol.gr-20100702215058-5h49fw2dzox3022h
2010-07-03 00:50:58 +03:00
P. Christeas
dce6c87084
Document ftp: stop early if not in a node.
...
This will rather help debug some cases, where we try operations on the
"/" path.
bzr revid: p_christ@hol.gr-20100702103858-8jrqfzkd8g65vrzr
2010-07-02 13:38:58 +03:00
P. Christeas
6ebec0292d
Document API: fix node_dir._file_get()
...
Directory _file_get was in the wrong place, causing the root folder to fail,
once it was associated with dynamic context.
bzr revid: p_christ@hol.gr-20100702092732-jx8tisemq7iqxtb3
2010-07-02 12:27:32 +03:00
P. Christeas
a72a73acdd
Document: remove trailing whitespace
...
bzr revid: p_christ@hol.gr-20100702085401-8c8hwv9831jcwzts
2010-07-02 11:54:01 +03:00
P. Christeas
be2f5723c9
Document, ftp: switch to new series of tests.
...
bzr revid: p_christ@hol.gr-20100702084535-6yz0f5xfsvh4jl9b
2010-07-02 11:45:35 +03:00
P. Christeas
24fa87a6ae
Document ftp: tests for dynamic folders.
...
We pass a few of them, but some functional issues are apparent.
bzr revid: p_christ@hol.gr-20100702081109-p6zl07eayj65rqs8
2010-07-02 11:11:09 +03:00
P. Christeas
88b0420b3e
Document ftp: do commit the cursors, at mkdir and rename
...
cr.close() is not enough for data to go to db.
bzr revid: p_christ@hol.gr-20100701224311-ef8q4qbmb8b9j6p1
2010-07-02 01:43:11 +03:00
P. Christeas
5da9c26605
Document FTP: fix syntax error in mkdir.
...
bzr revid: p_christ@hol.gr-20100701224308-g95nx5ckh8mgjgsb
2010-07-02 01:43:08 +03:00
P. Christeas
35c932d76a
Document FTP: write Yaml tests, have special helper module.
...
bzr revid: p_christ@hol.gr-20100701224249-fmble80t8nlg2azq
2010-07-02 01:42:49 +03:00
P. Christeas
fb3f520268
Document ftp: use create, coll_create, rename from node API
...
bzr revid: p_christ@hol.gr-20100701175134-g5wkaweznslhajgm
2010-07-01 20:51:34 +03:00
P. Christeas
49bf479c18
Document storage: implementation of simple rename
...
Conflicts:
document/document_storage.py
bzr revid: p_christ@hol.gr-20100701175133-ti0itn58w9az88w6
2010-07-01 20:51:33 +03:00
P. Christeas
54b9e746ac
Document API: trivial implementation of simple file rename
...
bzr revid: p_christ@hol.gr-20100701175133-k0gnyan62wo2gs7n
2010-07-01 20:51:33 +03:00
P. Christeas
9cdbcbfee1
Document API: fix equality operators
...
They must first check for the type of the 'other' side, or attribute
errors may occur.
bzr revid: p_christ@hol.gr-20100701175133-mjauo28qv6vkqfuq
2010-07-01 20:51:33 +03:00
P. Christeas
1819f137e9
Document: storage must be set before _set_data
...
No attempt to use a default one.
Conflicts:
document/nodes.py
bzr revid: p_christ@hol.gr-20100701175133-783ril5hg7rls246
2010-07-01 20:51:33 +03:00
P. Christeas
575889d33e
Document API: have equality operators for nodes, context
...
These will be used for advanced operations (eg. move) of nodes.
Conflicts:
document/nodes.py
bzr revid: p_christ@hol.gr-20100701175133-gbsdly2fwcwtr0dy
2010-07-01 20:51:33 +03:00
P. Christeas
c9f313dc21
Document: isolate the partner_id auto-detection in a fn()
...
When a document is created, some code tries to auto-detect the related
partner_id from res_model. This should better be put in a function, and
reused in other places.
bzr revid: p_christ@hol.gr-20100701175133-6aq2tx9lkuskvedh
2010-07-01 20:51:33 +03:00
P. Christeas
7c26eb67fb
Document storage: the default db encoding is base64 in bytea
...
The storage class has to consider that. Also, prepare a class for raw bytea
storage.
bzr revid: p_christ@hol.gr-20100701175133-xxgu3cdlff0u7086
2010-07-01 20:51:33 +03:00
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
abebb5c311
Document_ftp: *only* serve databases that have the module installed.
...
The document_ftp is not really a database-specific server, but a
server-wide implementation. So, it could normally serve all the databases
of the server, once one of them has it installed. Limit that and instead
only serve the dbs that have the module marked as installed.
bzr revid: p_christ@hol.gr-20100701175132-dydehiw5m6nnvcwy
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
b2a10c1b20
Document FTP: adapt to node_descriptors API
...
bzr revid: p_christ@hol.gr-20100629140532-xgpjex7h0q1g0cff
2010-06-29 17:05:32 +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