summaryrefslogtreecommitdiff
path: root/addons/document_webdav/document_webdav.py
diff options
context:
space:
mode:
authorpso (OpenERP) <pso@tinyerp.com>2012-08-09 17:53:58 +0530
committerpso (OpenERP) <pso@tinyerp.com>2012-08-09 17:53:58 +0530
commitb08b3c64d1928ff4fef6c5cf94bcd1fd3467d0b7 (patch)
tree8fb822fc555df08422d1db5764bc0ae718558f07 /addons/document_webdav/document_webdav.py
parente350501add726e85d9b51b8b7d5d9f83e3e80089 (diff)
parenta59933de2cd15f24b39f73fe49494de2345fb4cb (diff)
[MERGE] Merged with main branch
bzr revid: pso@tinyerp.com-20120809122358-031mjff70sgr62rb
Diffstat (limited to 'addons/document_webdav/document_webdav.py')
-rw-r--r--addons/document_webdav/document_webdav.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/addons/document_webdav/document_webdav.py b/addons/document_webdav/document_webdav.py
index da463c9eb1b..f53353dd43c 100644
--- a/addons/document_webdav/document_webdav.py
+++ b/addons/document_webdav/document_webdav.py
@@ -43,7 +43,7 @@ class document_davdir(osv.osv):
elif dbro.type == 'ressource':
return nodes.node_res_dir
else:
- raise ValueError("dir node for %s type", dbro.type)
+ raise ValueError("Directory node for %s type.", dbro.type)
def _prepare_context(self, cr, uid, nctx, context=None):
nctx.node_file_class = nodes.node_file
@@ -67,18 +67,18 @@ document_davdir()
class dav_dir_property(osv.osv):
""" Arbitrary WebDAV properties, attached to document.directories.
-
+
Some DAV properties have to be settable at directories, depending
on the database directory structure.
-
+
Example would be the principal-URL.
-
+
There _can_ be properties without a directory, which means that they
globally apply to all the directories (aka. collections) of the
present database.
"""
_name = 'document.webdav.dir.property'
-
+
_columns = {
'create_date': fields.datetime('Date Created', readonly=True),
'create_uid': fields.many2one('res.users', 'Creator', readonly=True),
@@ -90,25 +90,25 @@ class dav_dir_property(osv.osv):
'value': fields.text('Value'),
'do_subst': fields.boolean('Substitute', required=True),
}
-
+
_defaults = {
'do_subst': False,
}
-
+
dav_dir_property()
class dav_file_property(osv.osv):
""" Arbitrary WebDAV properties, attached to ir.attachments.
-
+
A special case is the locks that can be applied on file nodes.
-
+
There _can_ be properties without a file (RFC?), which means that they
globally apply to all the attachments of the present database.
-
+
TODO access permissions, per property.
"""
_name = 'document.webdav.file.property'
-
+
_columns = {
'create_date': fields.datetime('Date Created', readonly=True),
'create_uid': fields.many2one('res.users', 'Creator', readonly=True),
@@ -120,11 +120,11 @@ class dav_file_property(osv.osv):
'value': fields.text('Value'),
'do_subst': fields.boolean('Substitute', required=True),
}
-
+
_defaults = {
'do_subst': False,
}
-
+
dav_file_property()
#eof