summaryrefslogtreecommitdiff
path: root/addons/document_webdav/document_webdav.py
diff options
context:
space:
mode:
authorAntonin Bourguignon <abo@openerp.com>2012-10-02 12:29:15 +0200
committerAntonin Bourguignon <abo@openerp.com>2012-10-02 12:29:15 +0200
commit165333208000e7f8b2a61fd99c0a5b1f1d242976 (patch)
tree150c1a7d2f30b4043b1cd565c40324b773fec3d5 /addons/document_webdav/document_webdav.py
parent2d2a44dcf2e3b29e4fef4000792a064862967769 (diff)
parentf285c0e481d12edfc2aa9aa1fd3baeb334bc39c6 (diff)
[MERGE] trunk
bzr revid: abo@openerp.com-20121002102915-424prxd74izb1szw
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 0cc4c919ff2..3b604d6cffb 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