Commit Graph

88 Commits

Author SHA1 Message Date
Jay (OpenERP) 8234754761 [REF] Document_ftp
bzr revid: jvo@tinyerp.com-20100927170856-cm4lt3ykxdrldmzs
2010-09-27 22:38:56 +05:30
RHA(OpenERP) 4def2f930b [IMP]: Usability imporvements in project_* and document_* modules
bzr revid: rvo@tinyerp.co.in-20100920061101-qizxmc2hyxcj2a9s
2010-09-20 11:41:01 +05:30
Rvo (Open ERP) fd65fd6ed0 [IMP]: Usability improvements in project, project_scrum, project_long_term, project_messages + removed conflicts in base_setup/base_setup_installer.xml and document_ftp/wizard/ftp_configuration_view.xml after merge
bzr revid: rvo@tinyerp.co.in-20100915133935-i7atai99kmhep1k5
2010-09-15 19:09:35 +05:30
Rvo (Open ERP) cd26d7bf6b [MERGE]: lp:trunk-dev-addons2
bzr revid: rvo@tinyerp.co.in-20100915065845-dpo6qn1xyx6pjq3c
2010-09-15 12:28:45 +05:30
Harry (OpenERP) 05d730f7bd [IMP] configuration wizard
bzr revid: hmo@tinyerp.com-20100914135912-ol6d5fxj1q7oq2t2
2010-09-14 19:29:12 +05:30
Harry (OpenERP) 58cfff7027 [MERGE] Merged after remove conflicts
bzr revid: hmo@tinyerp.com-20100914095441-8y5erodnlhpka4cx
2010-09-14 15:24:41 +05:30
P. Christeas 8ed519b800 Doc ftp: Fix yaml test to follow expected behaviour
The document.directory has the "resource_find_all" flag, which now
defaults to True and means that a new doc in a resource folder will
have the *root* Documents as a parent. Fix the test to expect that
behaviour.

bzr revid: p_christ@hol.gr-20100828141852-pyvd24rh1rptqf5f
2010-08-28 17:18:52 +03:00
P. Christeas 6b70730393 Doc ftp: improve yaml tests, assert messages
bzr revid: p_christ@hol.gr-20100827073952-j8eg9p1dndviwknn
2010-08-27 10:39:52 +03:00
P. Christeas 7098bbcae1 doc ftp: Fix bdf1f16b77c60, typo at keyword string.
bzr revid: p_christ@hol.gr-20100827073950-j95wl8ojuav8s1ej
2010-08-27 10:39:50 +03:00
P. Christeas 283ea41e47 doc ftp: enable ftp even before the module is fully installed.
This is marginally correct, but the document_ftp module would cause
its own tests to fail (because it's not installed yet) and thus won't
allow access to the db. Then, a 'tests.fatal' setting means that the
module will never install successfully!

Ideally, the tests should be performed *after* the db is inited and
module is fully loaded. But the yaml mechanism performs them too early
for us.

bzr revid: p_christ@hol.gr-20100827073917-g6jwwskgpnnwl855
2010-08-27 10:39:17 +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 97f6f059e1 Document_ftp: second round of lint checks
These are the functional ones. Don't mess with the real os, because
we're just an abstraction layer of nodes, drop support for
Python < 2.4, because the server wouldn't work anyway.

bzr revid: p_christ@hol.gr-20100810122957-41n7lq0o287j62vw
2010-08-10 15:29:57 +03:00
P. Christeas 559df13770 Document_ftp: cleanup code for lint
bzr revid: p_christ@hol.gr-20100810122957-y0wqscm0xcfppbqd
2010-08-10 15:29:57 +03:00
DHS(OpenERP) 092d59adff [REF] Corrections of OpenERP instead of Open ERP
bzr revid: jvo@tinyerp.com-20100810113506-hm4ocvh4rd68dmu2
2010-08-10 17:05:06 +05:30
dbr(Open ERP) c860708a9c [RENAME] Tiny ERP to OpenERP SA in all places
bzr revid: vir@tinyerp.com-20100728114344-u2cm97mk6gnfpp13
2010-07-28 17:13:44 +05:30
P. Christeas 6cb5fa01ed Document, FTP: handle case of move into existing name.
Unlike unix 'mv', we do not allow move to point to an existing 'new_name'.

bzr revid: p_christ@hol.gr-20100714125232-fmm9sm1nc30nz92k
2010-07-14 15:52:32 +03:00
P. Christeas 5a5608d71b Document FTP: restructure the function calling, more consistent exceptions.
Hopefully, FTP now will behave better to clients like Firefox. It is better
to pass the node-API messages to the FTP layer, than always return 550.

Conflicts:

	document_ftp/ftpserver/ftpserver.py

bzr revid: p_christ@hol.gr-20100714125228-7xs3zbi72may4198
2010-07-14 15:52:28 +03:00
P. Christeas 9e390e4d17 Document FTP: avoid operations at "/"
bzr revid: p_christ@hol.gr-20100714090243-1ob78zjmfbtjsg2a
2010-07-14 12:02:43 +03:00
P. Christeas 10eea23109 Document tests: remove last, empty block
This just suppresses a warning.

bzr revid: p_christ@hol.gr-20100713205421-th0c0vuohsum3vj8
2010-07-13 23:54:21 +03:00
P. Christeas a47be2ef0d Document ftp: improve exception handling, size may return 404
bzr revid: p_christ@hol.gr-20100713205418-8oe6svsdvw2yy4jn
2010-07-13 23:54:18 +03:00
P. Christeas d3ae0b0083 Document FTP: after nodefd.open_data(), cursor must commit
Because open_data, at the create case, updates the store_fname.

bzr revid: p_christ@hol.gr-20100713205336-jodj31v722x81grb
2010-07-13 23:53:36 +03:00
P. Christeas bbbf42c6ba Document FTP: try to get meaningful length from files.
This improves response from kio_ftp, because the SIZE request will no longer
report 0 length. However, LIST etc may still report 0, which will confuse
some clients. Solution is non-trivial, because the length can only be
computed after the content is generated.

bzr revid: p_christ@hol.gr-20100713103102-v5uou8uuqvqxm6yc
2010-07-13 13:31:02 +03:00
P. Christeas 8cd367f9ed Document FTP: fix open_data after 1e1118a2bd7ae
After the revert, the node exception is TypeError (so that it is clearly
distinguishable from any others).

bzr revid: p_christ@hol.gr-20100713103035-usb1dbnma2l9c4ju
2010-07-13 13:30:35 +03:00
P. Christeas 0e8b07f490 Document ftp: have timeout at tests, skip if server is not available.
At trunk-xrg, the FTP daemon is only started *after* the db is loaded,
which means that it will not be available for tests on a server upgrade.
(still, tests can be performed through the base_module_record's importer)

Anyway, it is not wise to block the server startup if FTP doesn't
respond.

bzr revid: p_christ@hol.gr-20100713103016-33gu4o7yvkn7hmnd
2010-07-13 13:30:16 +03:00
P. Christeas 0dedf035f9 Document ftp: allow non-latin user, group.
bzr revid: p_christ@hol.gr-20100711142548-6uzoxs4224u8n2cf
2010-07-11 17:25:48 +03:00
P. Christeas 74b2dcfd80 Document ftp: Only test with 200 files, todo comment.
bzr revid: p_christ@hol.gr-20100709082356-p6xij5d22spqxrrx
2010-07-09 11:23:56 +03:00
P. Christeas 173be44150 Document ftp: fix unicode in NLST
At the nlst command, the paths from the API could have been unicode, in
which case the '\r\n' separator would be sent as '\00\r\00\n' over the
wire (that's utf-16 encoding).
For that, bring the utf-8 conversion functions inside ftpserver.

bzr revid: p_christ@hol.gr-20100708225433-fqpl911kqfsrm1ff
2010-07-09 01:54:33 +03:00
P. Christeas 796ed8e598 Document FTP: fix typo inside error message.
bzr revid: p_christ@hol.gr-20100708225217-ui4z1rc8gkuyynnl
2010-07-09 01:52:17 +03:00
P. Christeas e7d01ae1e3 Document FTP: fix walking utf8 paths.
Also fix the error message when rename fails for utf8 filenames.

bzr revid: p_christ@hol.gr-20100708225213-fcq2nbgectztjycq
2010-07-09 01:52:13 +03:00
P. Christeas 819eed88a2 Document FTP: tests for utf8 chars in document names.
bzr revid: p_christ@hol.gr-20100708225202-wbgmrf141j5g1501
2010-07-09 01:52:02 +03:00
P. Christeas 7dd8a1a885 Document FTP: minor clean of the description file.
bzr revid: p_christ@hol.gr-20100708225158-97wvwp1mt0fp37dm
2010-07-09 01:51:58 +03:00
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 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 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 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 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 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 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 d130db349e Document FTP: use pythonic logging in abstract_fs
bzr revid: p_christ@hol.gr-20100629140515-u73gs9ks4tiylhuo
2010-06-29 17:05:15 +03:00
P. Christeas d835a1419b Document FTP: don't touch the databases, on db_list
Trying a login on each db listed would result in the database loaded by
the pooler. This behaviour is not really welcome.
However, some clients (like kio_ftp) may still want to descend into the
databases listed, in which case we cannot avoid to load the db(s).

bzr revid: p_christ@hol.gr-20100629140328-2kqlfpo3oyhu0ufi
2010-06-29 17:03:28 +03:00