From 770dc652aff43e9fc3f021f66e8bd7cf7af3496e Mon Sep 17 00:00:00 2001 From: Hardik Date: Fri, 13 Jul 2012 10:59:57 +0530 Subject: [IMP]Document (ftp,webdev) : Warning Messages are changed bzr revid: hsa@tinyerp.com-20120713052957-iie8hdqbde1g3qz9 --- addons/document_webdav/document_webdav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/document_webdav/document_webdav.py') diff --git a/addons/document_webdav/document_webdav.py b/addons/document_webdav/document_webdav.py index da463c9eb1b..4388c92b004 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 -- cgit v1.2.3 From a52eeef5194b5fdab2b1d659f383c7589a2ebb98 Mon Sep 17 00:00:00 2001 From: Antonin Bourguignon Date: Mon, 6 Aug 2012 19:08:41 +0200 Subject: [IMP] rephrase some error and warning messages in document, edi, google_base_account, mrp and mrp_repair remove exclamation marks at the end of messages remove unjustified capital letters bzr revid: abo@openerp.com-20120806170841-cx9vuend1vglmsqk --- addons/document_webdav/document_webdav.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'addons/document_webdav/document_webdav.py') diff --git a/addons/document_webdav/document_webdav.py b/addons/document_webdav/document_webdav.py index 4388c92b004..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("Directory 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 -- cgit v1.2.3