Commit Graph

104 Commits

Author SHA1 Message Date
P. Christeas 0d6e0a9a02 Document: support Moving of files.
bzr revid: p_christ@hol.gr-20100709082316-d8qedrjabckypt88
2010-07-09 11:23:16 +03:00
P. Christeas 3580708a49 Document API: minor cleanup, better debugging of nodes.
Conflicts:

	document/nodes.py

bzr revid: p_christ@hol.gr-20100708225327-v1j77d8yh348dv4s
2010-07-09 01:53:27 +03:00
P. Christeas 7cd4d1db7a Document API: support for simple directory rename
bzr revid: p_christ@hol.gr-20100708225229-tzodkbf0h0ma080d
2010-07-09 01:52:29 +03:00
P. Christeas e55d772ed1 Document API: meaningful error, when asking for directory data content.
Instead of the TypeError, which would be ignored by the FTP implementation,
raise an IOError.

Conflicts:

	document/nodes.py

bzr revid: p_christ@hol.gr-20100708225141-opsfz22wx6c762nh
2010-07-09 01:51:41 +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 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 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 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 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 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 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 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 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
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
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 df40ff60dc Document: fix creating of empty files.
For an empty file, the interface (eg. webdav) could ask to create with
data=None. Allow that.

bzr revid: p_christ@hol.gr-20100623140709-m11r40kk2dl9okvo
2010-06-23 17:07:09 +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) 5c3cf27f2f [IMP] caldav
bzr revid: hmo@tinyerp.com-20100421133402-191nwwj3nohx6zas
2010-04-21 19:04:02 +05:30
Harry (Open ERP) d8994f04d0 [MERGE]
bzr revid: hmo@tinyerp.com-20100420055117-faxraazs6238y8yo
2010-04-20 11:21:17 +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) a3dab7abb8 [IMP] caldav
bzr revid: hmo@tinyerp.com-20100413140404-bku8u3agsv79evyx
2010-04-13 19:34:04 +05:30
Harry (Open ERP) 6a94de909b [REF+IMP] document
bzr revid: hmo@tinyerp.com-20100413110320-9x1fy7l432sinxvd
2010-04-13 16:33:20 +05:30
rpa (Open ERP) 29f79a6e65 [IMP]: document: Improvement in name field for resource directory, made it m2o for better usability
bzr revid: rpa@tinyerp.com-20100408062316-gubx9qin3p9r66in
2010-04-08 11:53:16 +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
Harry (Open ERP) 586a4ef79a [MERGE] from lp:~openerp/openobject-addons/trunk/
bzr revid: hmo@tinyerp.com-20100317060145-grxjqr8b90u4nn5d
2010-03-17 11:31:45 +05:30
Harry (Open ERP) d142e52854 [FIX] document: root dir is not set proper
bzr revid: hmo@tinyerp.com-20100316100337-yc15u8t4rxic2k8q
2010-03-16 15:33:37 +05:30
Ysa (Open ERP) f530cd9f35 [IMP] document :- add 'realstore' storage type
bzr revid: ysa@tinyerp.co.in-20100316085340-uggcnnlhpsterwko
2010-03-16 14:23:40 +05:30
Ysa (Open ERP) 65ae507923 [IMP] document :- docuemnt parent_id retrun False instead of None, and improvement in content_index file
bzr revid: ysa@tinyerp.co.in-20100310105334-arawdstqdjeiqmtf
2010-03-10 16:23:34 +05:30
Harry (Open ERP) 4741259d14 [IMP] document: if storage media is not specify in file , it should take db storage on get datas
bzr revid: hmo@tinyerp.com-20100210085533-54502lynruy569pn
2010-02-10 14:25:33 +05:30
Harry (Open ERP) 7650fdaed1 [FIX] document: root dir is not display
bzr revid: hmo@tinyerp.com-20100127073503-c7lslmbx1b8kv6tn
2010-01-27 13:05:03 +05:30
Stephane Wirtel fb3ef7a2f4 [FIX] Change the year of the copyright
bzr revid: stephane@openerp.com-20100112091839-a6p7tenhb4e4zxyx
2010-01-12 10:18:39 +01:00
Harry (Open ERP) ad5882ec42 [IMP] document: remove ftp Integration from document and make seperate module for FTP Integration
bzr revid: hmo@tinyerp.com-20091217084214-6mve0dt68u8jdded
2009-12-17 14:12:14 +05:30
Harry (Open ERP) 67dbab9d33 [IMP+FIX] document_ics: fixed regression on open, read ics files
bzr revid: hmo@tinyerp.com-20091215140250-aw7z7jsd90fxy85b
2009-12-15 19:32:50 +05:30
Harry (Open ERP) 7c11b0e8fe [FIX+IMP] document: fixed problem on rename file and directory of sub-directory of ressource directory
bzr revid: hmo@tinyerp.com-20091215104810-vi711k1ny28a55uc
2009-12-15 16:18:10 +05:30
Harry (Open ERP) 4a6d0a4a51 [FIX] document : child resources display now
bzr revid: hmo@tinyerp.com-20091210090305-nqg64404mn367nz5
2009-12-10 14:33:05 +05:30
Harry (Open ERP) 51d35e7dd6 [FIX] document : fixed small problem
bzr revid: hmo@tinyerp.com-20091210063255-492nlwzb80lwb3tc
2009-12-10 12:02:55 +05:30
Harry (Open ERP) 21b45c94bc [FIX] document : fix problem to get files of res obj node
bzr revid: hmo@tinyerp.com-20091209131851-07u1bp2gqwxv1ady
2009-12-09 18:48:51 +05:30
Harry (Open ERP) 8777bb210a [FIX] document :directory tree structure is work fine now
bzr revid: hmo@tinyerp.com-20091209114028-wulu72g9qfd9e2rj
2009-12-09 17:10:28 +05:30
Harry (Open ERP) 307898c2a8 [FIX] document: fixed problem on mkdir, remove, create file, rename
bzr revid: hmo@tinyerp.com-20091208133041-ikpo3by8r8xbrthb
2009-12-08 19:00:41 +05:30
Harry (Open ERP) 8489832803 [IMP] document: remove <TAB> with four <white space>
bzr revid: hmo@tinyerp.com-20091207131111-x11rq6p0ixsgenq4
2009-12-07 18:41:11 +05:30
p_christeas d5a68a7b69 [IMP]document : get improvement of document from xrg-addons branch who made nice improvement in document
bzr revid: hmo@tinyerp.com-20091202053657-4oflezyhbolu3xvo
2009-12-02 11:06:57 +05:30