sbh (Open ERP)
3389c99ee6
[Fix] caldav,document,document_ftp,document_webdav: fix buildbot warnings
...
bzr revid: sbh@tinyerp.com-20101112114946-u19wkxzh1vj33sol
2010-11-12 17:19:46 +05:30
P. Christeas
a21dcd7e1c
document: fix regressions at storage and node_descriptor
...
Since the introduction of __len__, the descriptors were broken for the
ftp module. Fix.
bzr revid: p_christ@hol.gr-20101103112605-tu6n6529mbdc18ve
2010-11-03 13:26:05 +02:00
P. Christeas
5d6eb5dea1
document: more reasonable Unix permission bits
...
For display purposes only, but helps us understand group-write logic.
bzr revid: p_christ@hol.gr-20101103112604-vi0wy1duifni2clv
2010-11-03 13:26:04 +02:00
P. Christeas
0c13466702
document: fixes for lint checks
...
bzr revid: p_christ@hol.gr-20101103112604-nh7xqcx5e17h3wjo
2010-11-03 13:26:04 +02:00
P. Christeas
169b716aa4
document: a class of static content node_descriptor, API
...
bzr revid: p_christ@hol.gr-20101103112535-e24cqzamf1w42219
2010-11-03 13:25:35 +02:00
P. Christeas
7f882e14cf
document: enhance API for iter() on node_descriptors
...
Starting from WebDAV, the node_descriptors will need to act as stream
objects, iterable. This way, we hope to minimize copies of the huge
chunks of data each descriptor may contain (still, pywebdav will use a
single large buffer).
bzr revid: p_christ@hol.gr-20101103112534-go57aeaw946utfc5
2010-11-03 13:25:34 +02:00
P. Christeas
4dae4d0dbf
document: base the dir permissions on ir.rule, not on sql call.
...
bzr revid: p_christ@hol.gr-20101027102428-6n2huvvv2o1tiyh6
2010-10-27 13:24:28 +03:00
P. Christeas
d0b6bf1181
document: richer eval() context for res_dirs.
...
We need to provide 'ctx' to the eval(), so that "uid" is defined in the
expression. Covers the case of user directories.
bzr revid: p_christ@hol.gr-20101027102324-ujy2293kpdzouna2
2010-10-27 13:23:24 +03:00
P. Christeas
da5aaac52c
document: minor improvement at nodes.
...
bzr revid: p_christ@hol.gr-20101027102323-dmy92wbks216awe6
2010-10-27 13:23:23 +03:00
P. Christeas
c3b4dba671
Document: by default N/I functions raise IO error.
...
Attempting to create a file or folder at nodes that don't support it,
should be reported as a permission error.
bzr revid: p_christ@hol.gr-20101027102323-3l15biqitaryqelb
2010-10-27 13:23:23 +03:00
P. Christeas
7628e1e433
document: Hide resource attachments/folders from static dirs.
...
If some attachment or folder references a res_model/res_id, it should
NOT be visible in the root directory (where it's parent_id points to).
This solves functional problems for the root folder, as well as the
privacy of those attachments.
bzr revid: p_christ@hol.gr-20101027102323-x4h20skrfjger9z7
2010-10-27 13:23:23 +03:00
P. Christeas
6e7fab049d
Document: set the uid as a part of the node_context context.
...
This means that a 'uid' variable will be available to all dynamic context
or domain expressions calculated on nodes.
bzr revid: p_christ@hol.gr-20101014114206-3mpsxcsei1mlafqb
2010-10-14 14:42:06 +03:00
P. Christeas
305b48abe3
Document, calendar: Patch code from trunk-xrg branch
...
several fixes that hadn't been backported or applied correctly.
bzr revid: p_christ@hol.gr-20101012112030-snnb4fjkya4ndqkm
2010-10-12 14:20:30 +03:00
P. Christeas
04aab94958
Doc nodes: Docstring and a node_context.get() convenience fn.
...
bzr revid: p_christ@hol.gr-20101012104100-2y269ne3v7s03xnh
2010-10-12 13:41:00 +03:00
P. Christeas
371ceab425
Document: conformant ETag, avoid special chars.
...
bzr revid: p_christ@hol.gr-20101012104042-75xq12yk2wrj66ol
2010-10-12 13:40:42 +03:00
P. Christeas
1fe7eb3e8f
Doc: allow override of dynamic foleders' class
...
bzr revid: p_christ@hol.gr-20101012104019-ci6z0vb9fce7tfiw
2010-10-12 13:40:19 +03:00
P. Christeas
4eab25baf3
Document: cleanup nodes.py, let node_res_dir be overriden.
...
bzr revid: p_christ@hol.gr-20101012103945-1ziw8331h4wpvp6t
2010-10-12 13:39:45 +03:00
P. Christeas
402d407b2c
Document: make node classes pluggable (part 1)
...
Refactor and put hooks in document/nodes so that addons can override
the classes and enhance the node behaviour, per database.
bzr revid: p_christ@hol.gr-20101012103856-j115po98jqff6j02
2010-10-12 13:38:56 +03:00
P. Christeas
2c1349111b
Document: fixes from the old branch
...
A context={} arg, get_file_node() improvement.
Conflicts:
document/nodes.py
bzr revid: p_christ@hol.gr-20100827073858-x364kctd048dzmva
2010-08-27 10:38:58 +03:00
P. Christeas
9dec9c2863
Document: fix trivial errors.
...
Seems that some patches have been mis-applied and some bugs re-appeared.
Conflicts:
document/nodes.py
bzr revid: p_christ@hol.gr-20100827073809-vjhkiwagurpnn3id
2010-08-27 10:38:09 +03:00
P. Christeas
f2f6ec0423
Document: cleanup code for lint checking
...
After pyflakes output, cleanup some unused imports, old code, fix
names for undefined vars.
bzr revid: p_christ@hol.gr-20100810122957-v01nqfq9omzdcs6e
2010-08-10 15:29:57 +03:00
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
780258d567
Document API: fix DAV handlers that contain "-"
...
Many DAV properties are like "calendar-data", which has to be translated
to _prefix_"calendar_data" for a pythonic function.
bzr revid: p_christ@hol.gr-20100729133938-hqshcsqtdrm6n2yc
2010-07-29 16:39:38 +03:00
P. Christeas
99087be2b5
Doc API, caldav: move the get_wtag code into document module.
...
It is the same case, that we want node.write_date to be used in the wtag
all over.
bzr revid: p_christ@hol.gr-20100729133937-4sgseg4keexeamd4
2010-07-29 16:39:37 +03:00
P. Christeas
8c4fccfca4
Document: shorten debug message.
...
It /will/ appear all the time in multi-location requests.
bzr revid: p_christ@hol.gr-20100729133937-e2tiez9z40iwtiby
2010-07-29 16:39:37 +03:00
P. Christeas
e78571ac67
Document, DAV: fix propfind/propname code
...
Several small fixes for the DAV responses, so that we are more conforming
to the protocol. Also fix multiple namespaces, getctag and (as always)
whitespace
bzr revid: p_christ@hol.gr-20100729133937-z6ctpn92w6mz7r9k
2010-07-29 16:39:37 +03:00
P. Christeas
7fdf26ed50
Document API: more code for DAV properties.
...
Support those properties in the node_class itself, not need for specific
implementations at each node subclass.
bzr revid: p_christ@hol.gr-20100729133936-ab1jglsr1rrp5lww
2010-07-29 16:39:36 +03:00
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
766fd336d4
Document: fix realstore with open/close, rename.
...
Put the path computation of realstore in a helper function, and use that
in all places where a file is opened/created/moved.
bzr revid: p_christ@hol.gr-20100713205359-jn0bo6fcw9lwdyge
2010-07-13 23:53:59 +03:00
P. Christeas
6eebca04d6
Document API: node_content.open_data(), for FTP
...
A crude way to get the data of a content node, using StringIO.
bzr revid: p_christ@hol.gr-20100713103053-hklth9rugddm6ajl
2010-07-13 13:30:53 +03:00
P. Christeas
a7eaf3bfc9
Document: fix the context logic of content nodes
...
Content nodes should have meaningful context and perhaps an active id
'act_id', which will be used in the report or other generation fn().
The dctx mechanism of nodes was built for that, use it.
bzr revid: p_christ@hol.gr-20100713103030-irueg85zizlp42ju
2010-07-13 13:30:30 +03:00
P. Christeas
2d3d861a3e
Document directory: "find_all" field for resource dirs.
...
A (mis-)feature of the previous code was that in resource directories, it
would only list attachments that would have those dirs as parents. This
means that we couldn't have another categorisation, that would yield some
of the same attachments.
bzr revid: p_christ@hol.gr-20100713102958-nk40nckc41uxyzri
2010-07-13 13:29:58 +03:00
P. Christeas
6586f41062
Document nodes: import the errno, as in 9e6e98fbf132f1
...
bzr revid: p_christ@hol.gr-20100713102800-kfdmkfnvj0uxduo0
2010-07-13 13:28:00 +03:00
P. Christeas
e6cb0e4cf5
Revert "Document API: meaningful error, when asking for directory data content."
...
This reverts commit 9e6e98fbf132f1c7ef795dee9d0eb3193332a5ee.
bzr revid: p_christ@hol.gr-20100713102744-rnu3vq3a2wjqmbyf
2010-07-13 13:27:44 +03:00
P. Christeas
8dc0cc8a32
Document API: a little better messages, allow create_child() w/o data.
...
bzr revid: p_christ@hol.gr-20100712192949-nre9wzvx6utz3b3l
2010-07-12 22:29:49 +03:00
P. Christeas
385aaa2467
Document API: define node_class.create_child() and collection
...
Allow clients to call those fn()s for the wrong nodes, just to get an
NotImplementedError.
bzr revid: p_christ@hol.gr-20100712192808-d0x2qud1p5q26fb8
2010-07-12 22:28:08 +03:00
P. Christeas
a6010e22a2
Document: implement permission checks based on group_ids.
...
Conflicts:
document/nodes.py
bzr revid: p_christ@hol.gr-20100711142612-2erl7ia2j9fke1e0
2010-07-11 17:26:12 +03:00
P. Christeas
661a6818d8
Document API: framework for permisssion bits.
...
The nodes may have extra permission attributes, rather than the ir.rule
system. Store those bits in a 'uidperms' attribute of each node.
bzr revid: p_christ@hol.gr-20100711142527-5o4v68yeuhgqvog4
2010-07-11 17:25:27 +03:00
P. Christeas
d6f1e1f29f
Document API: fix typo from last commit.
...
bzr revid: p_christ@hol.gr-20100709082645-nlkq6j9tadhnj1xy
2010-07-09 11:26:45 +03:00
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